From 6473b166bc0c4d6e297ebf92020ace083212a0ee Mon Sep 17 00:00:00 2001 From: Drew Rowan Date: Fri, 27 Nov 2020 10:17:09 +0000 Subject: [PATCH] Release 1.2.0 --- README.md | 4 +- docs/en/documentation.html | 4 +- inc/Service/Transaction.php | 5 +- views/templates/admin/admin_help_buttons.tpl | 2 +- wallee-sdk/LICENSE | 2 +- wallee-sdk/README.md | 26 +- wallee-sdk/composer.json | 6 +- wallee-sdk/lib/ApiClient.php | 1120 ++++++++++++++++- wallee-sdk/lib/ApiException.php | 4 +- wallee-sdk/lib/ApiResponse.php | 4 +- wallee-sdk/lib/Configuration.php | 10 +- wallee-sdk/lib/HeaderSelector.php | 4 +- wallee-sdk/lib/Http/ConnectionException.php | 4 +- wallee-sdk/lib/Http/CurlHttpClient.php | 4 +- wallee-sdk/lib/Http/HttpClientFactory.php | 4 +- wallee-sdk/lib/Http/HttpRequest.php | 4 +- wallee-sdk/lib/Http/HttpResponse.php | 4 +- wallee-sdk/lib/Http/IHttpClient.php | 4 +- wallee-sdk/lib/Http/SocketHttpClient.php | 4 +- .../lib/Model/AbstractAccountUpdate.php | 51 +- .../Model/AbstractApplicationUserUpdate.php | 12 +- .../lib/Model/AbstractCustomerActive.php | 36 +- .../Model/AbstractCustomerAddressActive.php | 4 +- .../Model/AbstractCustomerCommentActive.php | 12 +- .../AbstractDebtCollectionCaseUpdate.php | 4 +- .../lib/Model/AbstractHumanUserUpdate.php | 36 +- .../lib/Model/AbstractPaymentLinkUpdate.php | 12 +- .../lib/Model/AbstractRefundCommentActive.php | 12 +- ...tractShopifySubscriptionProductUpdate.php} | 42 +- wallee-sdk/lib/Model/AbstractSpaceUpdate.php | 51 +- .../lib/Model/AbstractSubscriberUpdate.php | 28 +- .../AbstractSubscriptionAffiliateUpdate.php | 19 +- .../AbstractSubscriptionMetricUpdate.php | 4 +- .../AbstractSubscriptionProductActive.php | 12 +- wallee-sdk/lib/Model/AbstractTokenUpdate.php | 20 +- .../AbstractTransactionCommentActive.php | 12 +- ...bstractTransactionInvoiceCommentActive.php | 12 +- .../lib/Model/AbstractTransactionPending.php | 98 +- .../Model/AbstractWebhookListenerUpdate.php | 12 +- .../lib/Model/AbstractWebhookUrlUpdate.php | 27 +- wallee-sdk/lib/Model/Account.php | 179 ++- wallee-sdk/lib/Model/AccountCreate.php | 4 +- wallee-sdk/lib/Model/AccountState.php | 4 +- wallee-sdk/lib/Model/AccountType.php | 4 +- wallee-sdk/lib/Model/AccountUpdate.php | 4 +- wallee-sdk/lib/Model/Address.php | 124 +- wallee-sdk/lib/Model/AddressCreate.php | 124 +- wallee-sdk/lib/Model/ApplicationUser.php | 54 +- .../lib/Model/ApplicationUserCreate.php | 4 +- .../Model/ApplicationUserCreateWithMacKey.php | 4 +- .../lib/Model/ApplicationUserUpdate.php | 4 +- wallee-sdk/lib/Model/Charge.php | 36 +- wallee-sdk/lib/Model/ChargeAttempt.php | 76 +- .../lib/Model/ChargeAttemptEnvironment.php | 4 +- wallee-sdk/lib/Model/ChargeAttemptState.php | 4 +- wallee-sdk/lib/Model/ChargeFlow.php | 4 +- wallee-sdk/lib/Model/ChargeFlowLevel.php | 36 +- .../Model/ChargeFlowLevelConfiguration.php | 12 +- .../ChargeFlowLevelConfigurationType.php | 4 +- .../lib/Model/ChargeFlowLevelPaymentLink.php | 36 +- wallee-sdk/lib/Model/ChargeFlowLevelState.php | 4 +- wallee-sdk/lib/Model/ChargeState.php | 4 +- wallee-sdk/lib/Model/ChargeType.php | 4 +- wallee-sdk/lib/Model/ClientError.php | 4 +- wallee-sdk/lib/Model/ClientErrorType.php | 4 +- wallee-sdk/lib/Model/CompletionLineItem.php | 12 +- .../lib/Model/CompletionLineItemCreate.php | 12 +- wallee-sdk/lib/Model/Condition.php | 12 +- wallee-sdk/lib/Model/ConditionType.php | 4 +- wallee-sdk/lib/Model/ConnectorInvocation.php | 36 +- .../lib/Model/ConnectorInvocationStage.php | 4 +- wallee-sdk/lib/Model/CreationEntityState.php | 4 +- wallee-sdk/lib/Model/CriteriaOperator.php | 4 +- wallee-sdk/lib/Model/Customer.php | 36 +- wallee-sdk/lib/Model/CustomerActive.php | 4 +- wallee-sdk/lib/Model/CustomerAddress.php | 4 +- .../lib/Model/CustomerAddressActive.php | 4 +- .../lib/Model/CustomerAddressCreate.php | 4 +- wallee-sdk/lib/Model/CustomerAddressType.php | 4 +- wallee-sdk/lib/Model/CustomerComment.php | 12 +- .../lib/Model/CustomerCommentActive.php | 4 +- .../lib/Model/CustomerCommentCreate.php | 4 +- wallee-sdk/lib/Model/CustomerCreate.php | 4 +- .../lib/Model/CustomerPostalAddress.php | 124 +- .../lib/Model/CustomerPostalAddressCreate.php | 124 +- wallee-sdk/lib/Model/CustomersPresence.php | 4 +- wallee-sdk/lib/Model/DataCollectionType.php | 4 +- .../lib/Model/DatabaseTranslatedString.php | 4 +- .../Model/DatabaseTranslatedStringCreate.php | 4 +- .../Model/DatabaseTranslatedStringItem.php | 12 +- .../DatabaseTranslatedStringItemCreate.php | 12 +- wallee-sdk/lib/Model/DebtCollectionCase.php | 4 +- .../lib/Model/DebtCollectionCaseCreate.php | 4 +- .../lib/Model/DebtCollectionCaseDocument.php | 28 +- .../lib/Model/DebtCollectionCaseSource.php | 4 +- .../lib/Model/DebtCollectionCaseState.php | 4 +- .../lib/Model/DebtCollectionCaseUpdate.php | 4 +- .../lib/Model/DebtCollectionEnvironment.php | 4 +- .../lib/Model/DebtCollectionReceipt.php | 19 +- .../lib/Model/DebtCollectionReceiptSource.php | 4 +- wallee-sdk/lib/Model/DebtCollector.php | 4 +- .../lib/Model/DebtCollectorCondition.php | 12 +- .../lib/Model/DebtCollectorConditionType.php | 4 +- .../lib/Model/DebtCollectorConfiguration.php | 12 +- wallee-sdk/lib/Model/DeliveryIndication.php | 36 +- .../DeliveryIndicationDecisionReason.php | 4 +- .../lib/Model/DeliveryIndicationState.php | 4 +- wallee-sdk/lib/Model/DocumentTemplate.php | 12 +- wallee-sdk/lib/Model/DocumentTemplateType.php | 4 +- .../lib/Model/DocumentTemplateTypeGroup.php | 4 +- wallee-sdk/lib/Model/EntityExportRequest.php | 4 +- wallee-sdk/lib/Model/EntityQuery.php | 4 +- wallee-sdk/lib/Model/EntityQueryFilter.php | 4 +- .../lib/Model/EntityQueryFilterType.php | 4 +- wallee-sdk/lib/Model/EntityQueryOrderBy.php | 4 +- .../lib/Model/EntityQueryOrderByType.php | 4 +- wallee-sdk/lib/Model/Environment.php | 4 +- wallee-sdk/lib/Model/FailureCategory.php | 4 +- wallee-sdk/lib/Model/FailureReason.php | 4 +- wallee-sdk/lib/Model/Feature.php | 4 +- wallee-sdk/lib/Model/FeatureCategory.php | 4 +- wallee-sdk/lib/Model/Gender.php | 4 +- wallee-sdk/lib/Model/HumanUser.php | 36 +- wallee-sdk/lib/Model/HumanUserCreate.php | 4 +- wallee-sdk/lib/Model/HumanUserUpdate.php | 4 +- .../lib/Model/InstallmentCalculatedPlan.php | 4 +- .../lib/Model/InstallmentCalculatedSlice.php | 4 +- wallee-sdk/lib/Model/InstallmentPayment.php | 4 +- .../lib/Model/InstallmentPaymentSlice.php | 36 +- .../Model/InstallmentPaymentSliceState.php | 4 +- .../lib/Model/InstallmentPaymentState.php | 4 +- .../Model/InstallmentPlanConfiguration.php | 12 +- .../InstallmentPlanSliceConfiguration.php | 4 +- wallee-sdk/lib/Model/Label.php | 4 +- wallee-sdk/lib/Model/LabelDescriptor.php | 4 +- .../lib/Model/LabelDescriptorCategory.php | 4 +- wallee-sdk/lib/Model/LabelDescriptorGroup.php | 4 +- wallee-sdk/lib/Model/LabelDescriptorType.php | 4 +- .../lib/Model/LegalOrganizationForm.php | 4 +- wallee-sdk/lib/Model/LineItem.php | 35 +- wallee-sdk/lib/Model/LineItemAttribute.php | 20 +- .../lib/Model/LineItemAttributeCreate.php | 20 +- wallee-sdk/lib/Model/LineItemCreate.php | 35 +- wallee-sdk/lib/Model/LineItemReduction.php | 12 +- .../lib/Model/LineItemReductionCreate.php | 12 +- wallee-sdk/lib/Model/LineItemType.php | 4 +- wallee-sdk/lib/Model/LocalizedString.php | 4 +- wallee-sdk/lib/Model/ManualTask.php | 4 +- wallee-sdk/lib/Model/ManualTaskAction.php | 4 +- .../lib/Model/ManualTaskActionStyle.php | 4 +- wallee-sdk/lib/Model/ManualTaskState.php | 4 +- wallee-sdk/lib/Model/ManualTaskType.php | 4 +- wallee-sdk/lib/Model/MetricUsage.php | 4 +- wallee-sdk/lib/Model/ModelInterface.php | 4 +- wallee-sdk/lib/Model/ModelResourcePath.php | 19 +- wallee-sdk/lib/Model/OneClickPaymentMode.php | 4 +- wallee-sdk/lib/Model/PaymentConnector.php | 4 +- .../Model/PaymentConnectorConfiguration.php | 44 +- .../lib/Model/PaymentConnectorFeature.php | 4 +- wallee-sdk/lib/Model/PaymentContract.php | 19 +- wallee-sdk/lib/Model/PaymentContractState.php | 4 +- wallee-sdk/lib/Model/PaymentContractType.php | 4 +- .../lib/Model/PaymentInformationHash.php | 4 +- .../lib/Model/PaymentInformationHashType.php | 4 +- wallee-sdk/lib/Model/PaymentLink.php | 27 +- wallee-sdk/lib/Model/PaymentLinkActive.php | 10 +- wallee-sdk/lib/Model/PaymentLinkCreate.php | 19 +- .../lib/Model/PaymentLinkProtectionMode.php | 4 +- wallee-sdk/lib/Model/PaymentLinkUpdate.php | 12 +- wallee-sdk/lib/Model/PaymentMethod.php | 4 +- wallee-sdk/lib/Model/PaymentMethodBrand.php | 4 +- .../lib/Model/PaymentMethodConfiguration.php | 12 +- .../lib/Model/PaymentPrimaryRiskTaker.php | 4 +- wallee-sdk/lib/Model/PaymentProcessor.php | 4 +- .../Model/PaymentProcessorConfiguration.php | 12 +- wallee-sdk/lib/Model/PaymentTerminal.php | 12 +- .../lib/Model/PaymentTerminalAddress.php | 76 +- .../Model/PaymentTerminalConfiguration.php | 12 +- .../PaymentTerminalConfigurationState.php | 4 +- .../PaymentTerminalConfigurationVersion.php | 4 +- ...ymentTerminalConfigurationVersionState.php | 4 +- .../Model/PaymentTerminalContactAddress.php | 388 ++++++ .../lib/Model/PaymentTerminalLocation.php | 44 +- .../Model/PaymentTerminalLocationState.php | 4 +- .../Model/PaymentTerminalLocationVersion.php | 4 +- .../PaymentTerminalLocationVersionState.php | 4 +- wallee-sdk/lib/Model/PaymentTerminalState.php | 4 +- wallee-sdk/lib/Model/PaymentTerminalType.php | 4 +- wallee-sdk/lib/Model/Permission.php | 4 +- .../lib/Model/PersistableCurrencyAmount.php | 4 +- .../Model/PersistableCurrencyAmountUpdate.php | 4 +- wallee-sdk/lib/Model/ProductFeeType.php | 4 +- wallee-sdk/lib/Model/ProductMeteredFee.php | 4 +- .../lib/Model/ProductMeteredFeeUpdate.php | 4 +- .../lib/Model/ProductMeteredTierFee.php | 4 +- .../lib/Model/ProductMeteredTierFeeUpdate.php | 4 +- .../lib/Model/ProductMeteredTierPricing.php | 4 +- wallee-sdk/lib/Model/ProductPeriodFee.php | 4 +- .../lib/Model/ProductPeriodFeeUpdate.php | 4 +- wallee-sdk/lib/Model/ProductSetupFee.php | 4 +- .../lib/Model/ProductSetupFeeUpdate.php | 4 +- wallee-sdk/lib/Model/Refund.php | 99 +- wallee-sdk/lib/Model/RefundComment.php | 12 +- wallee-sdk/lib/Model/RefundCommentActive.php | 4 +- wallee-sdk/lib/Model/RefundCommentCreate.php | 4 +- wallee-sdk/lib/Model/RefundCreate.php | 27 +- wallee-sdk/lib/Model/RefundState.php | 4 +- wallee-sdk/lib/Model/RefundType.php | 4 +- wallee-sdk/lib/Model/RenderedDocument.php | 4 +- .../lib/Model/RenderedTerminalReceipt.php | 4 +- wallee-sdk/lib/Model/ResourceState.php | 4 +- wallee-sdk/lib/Model/RestAddressFormat.php | 4 +- .../lib/Model/RestAddressFormatField.php | 4 +- wallee-sdk/lib/Model/RestCountry.php | 4 +- wallee-sdk/lib/Model/RestCountryState.php | 4 +- wallee-sdk/lib/Model/RestCurrency.php | 4 +- wallee-sdk/lib/Model/RestLanguage.php | 4 +- wallee-sdk/lib/Model/Role.php | 4 +- wallee-sdk/lib/Model/SalesChannel.php | 110 +- wallee-sdk/lib/Model/Scope.php | 60 +- wallee-sdk/lib/Model/ServerError.php | 4 +- .../Model/ShopifyAdditionalLineItemData.php | 54 + wallee-sdk/lib/Model/ShopifyIntegration.php | 294 ++++- .../ShopifyIntegrationPaymentAppVersion.php | 52 + ...pifyIntegrationSubscriptionAppVersion.php} | 8 +- .../lib/Model/ShopifyRecurringOrder.php | 36 +- .../lib/Model/ShopifyRecurringOrderState.php | 4 +- .../ShopifyRecurringOrderUpdateRequest.php | 4 +- wallee-sdk/lib/Model/ShopifySubscriber.php | 4 +- .../lib/Model/ShopifySubscriberCreation.php | 365 ++++++ .../lib/Model/ShopifySubscriberState.php | 4 +- wallee-sdk/lib/Model/ShopifySubscription.php | 109 +- .../lib/Model/ShopifySubscriptionAddress.php | 169 ++- .../ShopifySubscriptionAddressCreate.php | 994 +++++++++++++++ ...ShopifySubscriptionBillingIntervalUnit.php | 4 +- .../ShopifySubscriptionCreationRequest.php | 706 +++++++++++ ...ySubscriptionModelBillingConfiguration.php | 522 ++++++++ ...m.php => ShopifySubscriptionModelItem.php} | 16 +- ...hp => ShopifySubscriptionModelTaxLine.php} | 10 +- .../lib/Model/ShopifySubscriptionProduct.php | 36 +- .../ShopifySubscriptionProductCreate.php | 13 +- ...hopifySubscriptionProductPricingOption.php | 4 +- .../Model/ShopifySubscriptionProductState.php | 4 +- ...p => ShopifySubscriptionProductUpdate.php} | 10 +- .../lib/Model/ShopifySubscriptionState.php | 4 +- .../Model/ShopifySubscriptionSuspension.php | 4 +- .../ShopifySubscriptionSuspensionCreate.php | 4 +- ...ShopifySubscriptionSuspensionInitiator.php | 4 +- .../ShopifySubscriptionSuspensionState.php | 4 +- .../ShopifySubscriptionSuspensionType.php | 4 +- ...pifySubscriptionUpdateAddressesRequest.php | 362 ++++++ .../ShopifySubscriptionUpdateRequest.php | 272 +--- .../lib/Model/ShopifySubscriptionVersion.php | 4 +- .../Model/ShopifySubscriptionVersionItem.php | 4 +- ...fySubscriptionVersionItemPriceStrategy.php | 4 +- .../Model/ShopifySubscriptionVersionState.php | 4 +- .../lib/Model/ShopifySubscriptionWeekday.php | 4 +- wallee-sdk/lib/Model/ShopifyTaxLine.php | 4 +- wallee-sdk/lib/Model/ShopifyTransaction.php | 36 +- .../lib/Model/ShopifyTransactionState.php | 4 +- wallee-sdk/lib/Model/Space.php | 179 ++- wallee-sdk/lib/Model/SpaceAddress.php | 60 +- wallee-sdk/lib/Model/SpaceAddressCreate.php | 60 +- wallee-sdk/lib/Model/SpaceCreate.php | 4 +- wallee-sdk/lib/Model/SpaceReference.php | 4 +- wallee-sdk/lib/Model/SpaceReferenceState.php | 4 +- wallee-sdk/lib/Model/SpaceUpdate.php | 4 +- wallee-sdk/lib/Model/SpaceView.php | 19 +- wallee-sdk/lib/Model/StaticValue.php | 4 +- wallee-sdk/lib/Model/Subscriber.php | 28 +- wallee-sdk/lib/Model/SubscriberActive.php | 10 +- wallee-sdk/lib/Model/SubscriberCreate.php | 4 +- wallee-sdk/lib/Model/SubscriberUpdate.php | 28 +- wallee-sdk/lib/Model/Subscription.php | 84 +- .../lib/Model/SubscriptionAffiliate.php | 49 +- .../lib/Model/SubscriptionAffiliateCreate.php | 76 +- .../Model/SubscriptionAffiliateDeleted.php | 4 +- .../Model/SubscriptionAffiliateDeleting.php | 4 +- .../Model/SubscriptionAffiliateInactive.php | 10 +- .../lib/Model/SubscriptionAffiliateUpdate.php | 19 +- .../lib/Model/SubscriptionChangeRequest.php | 4 +- wallee-sdk/lib/Model/SubscriptionCharge.php | 42 +- .../lib/Model/SubscriptionChargeCreate.php | 42 +- .../SubscriptionChargeProcessingType.php | 4 +- .../lib/Model/SubscriptionChargeState.php | 4 +- .../lib/Model/SubscriptionChargeType.php | 4 +- .../SubscriptionComponentConfiguration.php | 4 +- ...riptionComponentReferenceConfiguration.php | 4 +- .../lib/Model/SubscriptionCreateRequest.php | 12 +- .../lib/Model/SubscriptionLedgerEntry.php | 19 +- .../Model/SubscriptionLedgerEntryCreate.php | 19 +- .../Model/SubscriptionLedgerEntryState.php | 4 +- wallee-sdk/lib/Model/SubscriptionMetric.php | 4 +- .../lib/Model/SubscriptionMetricActive.php | 10 +- .../lib/Model/SubscriptionMetricCreate.php | 68 +- .../lib/Model/SubscriptionMetricType.php | 4 +- .../lib/Model/SubscriptionMetricUpdate.php | 4 +- .../Model/SubscriptionMetricUsageReport.php | 12 +- .../SubscriptionMetricUsageReportCreate.php | 12 +- wallee-sdk/lib/Model/SubscriptionPending.php | 48 +- .../lib/Model/SubscriptionPeriodBill.php | 4 +- .../lib/Model/SubscriptionPeriodBillState.php | 4 +- wallee-sdk/lib/Model/SubscriptionProduct.php | 20 +- .../lib/Model/SubscriptionProductActive.php | 4 +- .../Model/SubscriptionProductComponent.php | 4 +- .../SubscriptionProductComponentGroup.php | 4 +- ...ubscriptionProductComponentGroupUpdate.php | 4 +- .../SubscriptionProductComponentReference.php | 12 +- ...criptionProductComponentReferenceState.php | 4 +- .../SubscriptionProductComponentUpdate.php | 4 +- .../lib/Model/SubscriptionProductCreate.php | 12 +- .../Model/SubscriptionProductRetirement.php | 4 +- .../SubscriptionProductRetirementCreate.php | 4 +- .../lib/Model/SubscriptionProductState.php | 4 +- .../lib/Model/SubscriptionProductVersion.php | 44 +- .../SubscriptionProductVersionPending.php | 46 +- .../SubscriptionProductVersionRetirement.php | 4 +- ...criptionProductVersionRetirementCreate.php | 4 +- .../Model/SubscriptionProductVersionState.php | 4 +- wallee-sdk/lib/Model/SubscriptionState.php | 6 +- .../lib/Model/SubscriptionSuspension.php | 12 +- .../Model/SubscriptionSuspensionAction.php | 4 +- .../Model/SubscriptionSuspensionCreate.php | 12 +- .../Model/SubscriptionSuspensionReason.php | 4 +- .../Model/SubscriptionSuspensionRunning.php | 4 +- .../lib/Model/SubscriptionSuspensionState.php | 4 +- wallee-sdk/lib/Model/SubscriptionUpdate.php | 12 +- wallee-sdk/lib/Model/SubscriptionVersion.php | 4 +- .../lib/Model/SubscriptionVersionState.php | 4 +- wallee-sdk/lib/Model/Tax.php | 19 +- wallee-sdk/lib/Model/TaxCalculation.php | 54 + wallee-sdk/lib/Model/TaxClass.php | 12 +- wallee-sdk/lib/Model/TaxCreate.php | 19 +- wallee-sdk/lib/Model/TenantDatabase.php | 12 +- wallee-sdk/lib/Model/Token.php | 35 +- wallee-sdk/lib/Model/TokenCreate.php | 19 +- wallee-sdk/lib/Model/TokenUpdate.php | 4 +- wallee-sdk/lib/Model/TokenVersion.php | 52 +- wallee-sdk/lib/Model/TokenVersionState.php | 4 +- wallee-sdk/lib/Model/TokenVersionType.php | 4 +- wallee-sdk/lib/Model/TokenizationMode.php | 4 +- wallee-sdk/lib/Model/Transaction.php | 209 ++- .../lib/Model/TransactionAwareEntity.php | 4 +- wallee-sdk/lib/Model/TransactionComment.php | 12 +- .../lib/Model/TransactionCommentActive.php | 4 +- .../lib/Model/TransactionCommentCreate.php | 4 +- .../lib/Model/TransactionCompletion.php | 91 +- .../Model/TransactionCompletionBehavior.php | 56 + .../lib/Model/TransactionCompletionMode.php | 4 +- .../Model/TransactionCompletionRequest.php | 59 +- .../lib/Model/TransactionCompletionState.php | 4 +- wallee-sdk/lib/Model/TransactionCreate.php | 157 ++- ...ransactionEnvironmentSelectionStrategy.php | 4 +- wallee-sdk/lib/Model/TransactionGroup.php | 12 +- .../lib/Model/TransactionGroupState.php | 4 +- wallee-sdk/lib/Model/TransactionInvoice.php | 91 +- .../lib/Model/TransactionInvoiceComment.php | 12 +- .../Model/TransactionInvoiceCommentActive.php | 4 +- .../Model/TransactionInvoiceCommentCreate.php | 4 +- .../Model/TransactionInvoiceReplacement.php | 27 +- .../lib/Model/TransactionInvoiceState.php | 4 +- .../TransactionLineItemUpdateRequest.php | 4 +- .../lib/Model/TransactionLineItemVersion.php | 36 +- wallee-sdk/lib/Model/TransactionPending.php | 4 +- wallee-sdk/lib/Model/TransactionState.php | 4 +- .../Model/TransactionUserInterfaceType.php | 4 +- wallee-sdk/lib/Model/TransactionVoid.php | 36 +- wallee-sdk/lib/Model/TransactionVoidMode.php | 4 +- wallee-sdk/lib/Model/TransactionVoidState.php | 4 +- .../lib/Model/TwoFactorAuthenticationType.php | 4 +- wallee-sdk/lib/Model/UnencryptedCardData.php | 42 +- .../lib/Model/UnencryptedCardDataCreate.php | 42 +- wallee-sdk/lib/Model/User.php | 4 +- wallee-sdk/lib/Model/UserAccountRole.php | 4 +- wallee-sdk/lib/Model/UserSpaceRole.php | 4 +- wallee-sdk/lib/Model/UserType.php | 4 +- wallee-sdk/lib/Model/WebhookIdentity.php | 12 +- wallee-sdk/lib/Model/WebhookListener.php | 12 +- .../lib/Model/WebhookListenerCreate.php | 4 +- .../lib/Model/WebhookListenerEntity.php | 4 +- .../lib/Model/WebhookListenerUpdate.php | 4 +- wallee-sdk/lib/Model/WebhookUrl.php | 27 +- wallee-sdk/lib/Model/WebhookUrlCreate.php | 4 +- wallee-sdk/lib/Model/WebhookUrlUpdate.php | 4 +- wallee-sdk/lib/ObjectSerializer.php | 4 +- wallee-sdk/lib/Service/AccountService.php | 10 +- .../lib/Service/ApplicationUserService.php | 10 +- .../lib/Service/CardProcessingService.php | 6 +- .../lib/Service/ChargeAttemptService.php | 7 +- .../ChargeFlowLevelPaymentLinkService.php | 7 +- .../lib/Service/ChargeFlowLevelService.php | 8 +- wallee-sdk/lib/Service/ChargeFlowService.php | 9 +- .../lib/Service/ConditionTypeService.php | 6 +- wallee-sdk/lib/Service/CountryService.php | 5 +- .../lib/Service/CountryStateService.php | 6 +- wallee-sdk/lib/Service/CurrencyService.php | 5 +- .../lib/Service/CustomerAddressService.php | 11 +- .../lib/Service/CustomerCommentService.php | 12 +- wallee-sdk/lib/Service/CustomerService.php | 10 +- .../lib/Service/DebtCollectionCaseService.php | 16 +- .../DebtCollectorConfigurationService.php | 7 +- .../lib/Service/DebtCollectorService.php | 6 +- .../lib/Service/DeliveryIndicationService.php | 9 +- .../lib/Service/DocumentTemplateService.php | 7 +- .../Service/DocumentTemplateTypeService.php | 6 +- wallee-sdk/lib/Service/HumanUserService.php | 11 +- .../lib/Service/InstallmentPaymentService.php | 8 +- .../InstallmentPaymentSliceService.php | 7 +- .../InstallmentPlanCalculationService.php | 5 +- .../InstallmentPlanConfigurationService.php | 7 +- ...stallmentPlanSliceConfigurationService.php | 7 +- .../Service/LabelDescriptionGroupService.php | 6 +- .../lib/Service/LabelDescriptionService.php | 6 +- wallee-sdk/lib/Service/LanguageService.php | 5 +- .../Service/LegalOrganizationFormService.php | 7 +- wallee-sdk/lib/Service/ManualTaskService.php | 7 +- wallee-sdk/lib/Service/MerticUsageService.php | 5 +- .../PaymentConnectorConfigurationService.php | 7 +- .../lib/Service/PaymentConnectorService.php | 6 +- wallee-sdk/lib/Service/PaymentLinkService.php | 10 +- .../lib/Service/PaymentMethodBrandService.php | 6 +- .../PaymentMethodConfigurationService.php | 7 +- .../lib/Service/PaymentMethodService.php | 6 +- .../PaymentProcessorConfigurationService.php | 7 +- .../lib/Service/PaymentProcessorService.php | 6 +- .../lib/Service/PaymentTerminalService.php | 7 +- .../Service/PaymentTerminalTillService.php | 212 ++++ wallee-sdk/lib/Service/PermissionService.php | 6 +- .../lib/Service/RefundCommentService.php | 11 +- wallee-sdk/lib/Service/RefundService.php | 12 +- .../Service/ShopifyRecurringOrderService.php | 8 +- .../lib/Service/ShopifySubscriberService.php | 7 +- .../ShopifySubscriptionProductService.php | 13 +- .../Service/ShopifySubscriptionService.php | 239 +++- .../ShopifySubscriptionSuspensionService.php | 9 +- .../ShopifySubscriptionVersionService.php | 7 +- .../lib/Service/ShopifyTransactionService.php | 408 ++++++ wallee-sdk/lib/Service/SpaceService.php | 10 +- wallee-sdk/lib/Service/StaticValueService.php | 6 +- wallee-sdk/lib/Service/SubscriberService.php | 18 +- .../Service/SubscriptionAffiliateService.php | 10 +- .../lib/Service/SubscriptionChargeService.php | 9 +- .../SubscriptionLedgerEntryService.php | 8 +- .../lib/Service/SubscriptionMetricService.php | 10 +- .../SubscriptionMetricUsageService.php | 8 +- .../Service/SubscriptionPeriodBillService.php | 7 +- ...bscriptionProductComponentGroupService.php | 10 +- .../SubscriptionProductComponentService.php | 10 +- .../SubscriptionProductFeeTierService.php | 10 +- .../SubscriptionProductMeteredFeeService.php | 10 +- .../SubscriptionProductPeriodFeeService.php | 10 +- .../SubscriptionProductRetirementService.php | 8 +- .../Service/SubscriptionProductService.php | 9 +- .../SubscriptionProductSetupFeeService.php | 10 +- ...riptionProductVersionRetirementService.php | 8 +- .../SubscriptionProductVersionService.php | 10 +- .../lib/Service/SubscriptionService.php | 14 +- .../Service/SubscriptionSuspensionService.php | 9 +- .../Service/SubscriptionVersionService.php | 7 +- wallee-sdk/lib/Service/TokenService.php | 11 +- .../lib/Service/TokenVersionService.php | 8 +- .../lib/Service/TransactionCommentService.php | 11 +- .../Service/TransactionCompletionService.php | 11 +- .../lib/Service/TransactionIframeService.php | 5 +- .../TransactionInvoiceCommentService.php | 11 +- .../lib/Service/TransactionInvoiceService.php | 13 +- .../Service/TransactionLightboxService.php | 5 +- .../Service/TransactionMobileSdkService.php | 5 +- .../Service/TransactionPaymentPageService.php | 5 +- wallee-sdk/lib/Service/TransactionService.php | 75 +- .../Service/TransactionTerminalService.php | 6 +- .../lib/Service/TransactionVoidService.php | 9 +- .../lib/Service/UserAccountRoleService.php | 7 +- .../lib/Service/UserSpaceRoleService.php | 7 +- .../lib/Service/WebhookListenerService.php | 10 +- wallee-sdk/lib/Service/WebhookUrlService.php | 10 +- wallee-sdk/lib/ValidationException.php | 4 +- wallee-sdk/lib/VersioningException.php | 4 +- wallee.php | 2 +- 479 files changed, 11590 insertions(+), 1402 deletions(-) rename wallee-sdk/lib/Model/{AbstractShopifySubscriptionProductActive.php => AbstractShopifySubscriptionProductUpdate.php} (95%) create mode 100644 wallee-sdk/lib/Model/PaymentTerminalContactAddress.php create mode 100644 wallee-sdk/lib/Model/ShopifyAdditionalLineItemData.php create mode 100644 wallee-sdk/lib/Model/ShopifyIntegrationPaymentAppVersion.php rename wallee-sdk/lib/Model/{ShopifyIntegrationAppVersion.php => ShopifyIntegrationSubscriptionAppVersion.php} (87%) create mode 100644 wallee-sdk/lib/Model/ShopifySubscriberCreation.php create mode 100644 wallee-sdk/lib/Model/ShopifySubscriptionAddressCreate.php create mode 100644 wallee-sdk/lib/Model/ShopifySubscriptionCreationRequest.php create mode 100644 wallee-sdk/lib/Model/ShopifySubscriptionModelBillingConfiguration.php rename wallee-sdk/lib/Model/{ShopifySubscriptionEditModelItem.php => ShopifySubscriptionModelItem.php} (94%) rename wallee-sdk/lib/Model/{ShopifySubscriptionEditModelTaxLine.php => ShopifySubscriptionModelTaxLine.php} (96%) rename wallee-sdk/lib/Model/{ShopifySubscriptionProductActive.php => ShopifySubscriptionProductUpdate.php} (96%) create mode 100644 wallee-sdk/lib/Model/ShopifySubscriptionUpdateAddressesRequest.php create mode 100644 wallee-sdk/lib/Model/TaxCalculation.php create mode 100644 wallee-sdk/lib/Model/TransactionCompletionBehavior.php create mode 100644 wallee-sdk/lib/Service/PaymentTerminalTillService.php create mode 100644 wallee-sdk/lib/Service/ShopifyTransactionService.php diff --git a/README.md b/README.md index baecc4d..fe8a3a5 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This repository contains the PrestaShop wallee payment module that enables the s ## Documentation -* [English](https://plugin-documentation.wallee.com/wallee-payment/prestashop-1.6/1.1.20/docs/en/documentation.html) +* [English](https://plugin-documentation.wallee.com/wallee-payment/prestashop-1.6/1.2.0/docs/en/documentation.html) ## Support @@ -21,7 +21,7 @@ Support queries can be issued on the [wallee support site](https://app-wallee.co ## License -Please see the [license file](https://github.com/wallee-payment/prestashop-1.6/blob/1.1.20/LICENSE) for more information. +Please see the [license file](https://github.com/wallee-payment/prestashop-1.6/blob/1.2.0/LICENSE) for more information. ## Other PrestaShop Versions diff --git a/docs/en/documentation.html b/docs/en/documentation.html index 646587e..1b41569 100644 --- a/docs/en/documentation.html +++ b/docs/en/documentation.html @@ -22,7 +22,7 @@

Documentation

  • - + Source
  • @@ -51,7 +51,7 @@

    1. -

      Download the module.

      +

      Download the module.

    2. Login to the backend of your PrestsShop store.

      diff --git a/inc/Service/Transaction.php b/inc/Service/Transaction.php index 056cc09..c151ee4 100644 --- a/inc/Service/Transaction.php +++ b/inc/Service/Transaction.php @@ -370,9 +370,10 @@ public function getPossiblePaymentMethods(Cart $cart) self::$possiblePaymentMethodCache[$currentCartId] == null) { $transaction = $this->getTransactionFromCart($cart); try { - $paymentMethods = $this->getTransactionService()->fetchPossiblePaymentMethods( + $paymentMethods = $this->getTransactionService()->fetchPaymentMethods( $transaction->getLinkedSpaceId(), - $transaction->getId() + $transaction->getId(), + 'iframe' ); } catch (\Wallee\Sdk\ApiException $e) { self::$possiblePaymentMethodCache[$currentCartId] = array(); diff --git a/views/templates/admin/admin_help_buttons.tpl b/views/templates/admin/admin_help_buttons.tpl index 3ce825d..4339a05 100644 --- a/views/templates/admin/admin_help_buttons.tpl +++ b/views/templates/admin/admin_help_buttons.tpl @@ -10,5 +10,5 @@ \ No newline at end of file diff --git a/wallee-sdk/LICENSE b/wallee-sdk/LICENSE index bdd6141..de06a90 100644 --- a/wallee-sdk/LICENSE +++ b/wallee-sdk/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2020 customweb GmbH + Copyright 2020 wallee AG Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/wallee-sdk/README.md b/wallee-sdk/README.md index 33553a7..dbf2492 100644 --- a/wallee-sdk/README.md +++ b/wallee-sdk/README.md @@ -56,9 +56,9 @@ $secret = 'FKrO76r5VwJtBrqZawBspljbBNOxp5veKQQkOnZxucQ='; // Setup API client $client = new \Wallee\Sdk\ApiClient($userId, $secret); -// Create API service instance -$transactionService = new \Wallee\Sdk\Service\TransactionService($client); -$transactionPaymentPageService = new \Wallee\Sdk\Service\TransactionPaymentPageService($client); +// Get API service instance +$client->getTransactionService(); +$client->getTransactionPaymentPageService(); ``` @@ -75,10 +75,6 @@ $secret = 'FKrO76r5VwJtBrqZawBspljbBNOxp5veKQQkOnZxucQ='; // Setup API client $client = new \Wallee\Sdk\ApiClient($userId, $secret); -// Create API service instance -$transactionService = new \Wallee\Sdk\Service\TransactionService($client); -$transactionPaymentPageService = new \Wallee\Sdk\Service\TransactionPaymentPageService($client); - // Create transaction $lineItem = new \Wallee\Sdk\Model\LineItemCreate(); $lineItem->setName('Red T-Shirt'); @@ -89,15 +85,15 @@ $lineItem->setAmountIncludingTax(29.95); $lineItem->setType(\Wallee\Sdk\Model\LineItemType::PRODUCT); -$transaction = new \Wallee\Sdk\Model\TransactionCreate(); -$transaction->setCurrency('EUR'); -$transaction->setLineItems(array($lineItem)); -$transaction->setAutoConfirmationEnabled(true); +$transactionPayload = new \Wallee\Sdk\Model\TransactionCreate(); +$transactionPayload->setCurrency('EUR'); +$transactionPayload->setLineItems(array($lineItem)); +$transactionPayload->setAutoConfirmationEnabled(true); -$createdTransaction = $transactionService->create($spaceId, $transaction); +$transaction = $client->getTransactionService()->create($spaceId, $transactionPayload); // Create Payment Page URL: -$redirectionUrl = $transactionPaymentPageService->paymentPageUrl($spaceId, $createdTransaction->getId()); +$redirectionUrl = $client->getTransactionPaymentPageService()->paymentPageUrl($spaceId, $transaction->getId()); header('Location: ' . $redirectionUrl); @@ -112,9 +108,9 @@ $userId = 512; $secret = 'FKrO76r5VwJtBrqZawBspljbBNOxp5veKQQkOnZxucQ='; // Setup API client -$client = new \Wallee\Sdk\Sdk\ApiClient($userId, $secret); +$client = new \Wallee\Sdk\ApiClient($userId, $secret); -$httpClientType = \Wallee\Sdk\Sdk\Http\HttpClientFactory::TYPE_CURL; // or \Wallee\Sdk\Sdk\Http\HttpClientFactory::TYPE_SOCKET +$httpClientType = \Wallee\Sdk\Http\HttpClientFactory::TYPE_CURL; // or \Wallee\Sdk\Http\HttpClientFactory::TYPE_SOCKET $client->setHttpClientType($httpClientType); ``` diff --git a/wallee-sdk/composer.json b/wallee-sdk/composer.json index ff57027..e523aea 100644 --- a/wallee-sdk/composer.json +++ b/wallee-sdk/composer.json @@ -1,6 +1,6 @@ { "name": "wallee/sdk", - "version": "2.0.17", + "version": "2.1.4", "description": "wallee SDK for PHP", "keywords": [ "wallee", @@ -13,8 +13,8 @@ "license": "Apache-2.0", "authors": [ { - "name": "customweb GmbH", - "homepage": "https://customweb.com" + "name": "wallee AG", + "homepage": "https://wallee.com" } ], "require": { diff --git a/wallee-sdk/lib/ApiClient.php b/wallee-sdk/lib/ApiClient.php index e824219..6d9a912 100644 --- a/wallee-sdk/lib/ApiClient.php +++ b/wallee-sdk/lib/ApiClient.php @@ -1,8 +1,8 @@ connectionTimeout = self::CONNECTION_TIMEOUT; + return $this; + } + /** * Return the http client type to use for communication. * @@ -428,9 +439,11 @@ public function selectHeaderContentType($contentType) { * @param array $headerParams the header parameters * @param string $responseType the expected response type * @param string $endpointPath the path to the method endpoint before expanding parameters - * @throws ApiException on a non 2xx response - * @throws VersioningException on a versioning/locking problem - * @return mixed + * + * @return \Wallee\Sdk\ApiResponse + * @throws \Wallee\Sdk\ApiException + * @throws \Wallee\Sdk\Http\ConnectionException + * @throws \Wallee\Sdk\VersioningException */ public function callApi($resourcePath, $method, $queryParams, $postData, $headerParams, $responseType = null, $endpointPath = null) { $request = new HttpRequest($this->getSerializer(), $this->buildRequestUrl($resourcePath, $queryParams), $method, $this->generateUniqueToken()); @@ -533,4 +546,1099 @@ private function generateUniqueToken() { substr($s,20); } + // Builder pattern to get API instances for this client. + + protected $accountService; + + /** + * @return \Wallee\Sdk\Service\AccountService + */ + public function getAccountService() { + if(is_null($this->accountService)){ + $this->accountService = new \Wallee\Sdk\Service\AccountService($this); + } + return $this->accountService; + } + + protected $applicationUserService; + + /** + * @return \Wallee\Sdk\Service\ApplicationUserService + */ + public function getApplicationUserService() { + if(is_null($this->applicationUserService)){ + $this->applicationUserService = new \Wallee\Sdk\Service\ApplicationUserService($this); + } + return $this->applicationUserService; + } + + protected $cardProcessingService; + + /** + * @return \Wallee\Sdk\Service\CardProcessingService + */ + public function getCardProcessingService() { + if(is_null($this->cardProcessingService)){ + $this->cardProcessingService = new \Wallee\Sdk\Service\CardProcessingService($this); + } + return $this->cardProcessingService; + } + + protected $chargeAttemptService; + + /** + * @return \Wallee\Sdk\Service\ChargeAttemptService + */ + public function getChargeAttemptService() { + if(is_null($this->chargeAttemptService)){ + $this->chargeAttemptService = new \Wallee\Sdk\Service\ChargeAttemptService($this); + } + return $this->chargeAttemptService; + } + + protected $chargeFlowLevelPaymentLinkService; + + /** + * @return \Wallee\Sdk\Service\ChargeFlowLevelPaymentLinkService + */ + public function getChargeFlowLevelPaymentLinkService() { + if(is_null($this->chargeFlowLevelPaymentLinkService)){ + $this->chargeFlowLevelPaymentLinkService = new \Wallee\Sdk\Service\ChargeFlowLevelPaymentLinkService($this); + } + return $this->chargeFlowLevelPaymentLinkService; + } + + protected $chargeFlowLevelService; + + /** + * @return \Wallee\Sdk\Service\ChargeFlowLevelService + */ + public function getChargeFlowLevelService() { + if(is_null($this->chargeFlowLevelService)){ + $this->chargeFlowLevelService = new \Wallee\Sdk\Service\ChargeFlowLevelService($this); + } + return $this->chargeFlowLevelService; + } + + protected $chargeFlowService; + + /** + * @return \Wallee\Sdk\Service\ChargeFlowService + */ + public function getChargeFlowService() { + if(is_null($this->chargeFlowService)){ + $this->chargeFlowService = new \Wallee\Sdk\Service\ChargeFlowService($this); + } + return $this->chargeFlowService; + } + + protected $conditionTypeService; + + /** + * @return \Wallee\Sdk\Service\ConditionTypeService + */ + public function getConditionTypeService() { + if(is_null($this->conditionTypeService)){ + $this->conditionTypeService = new \Wallee\Sdk\Service\ConditionTypeService($this); + } + return $this->conditionTypeService; + } + + protected $countryService; + + /** + * @return \Wallee\Sdk\Service\CountryService + */ + public function getCountryService() { + if(is_null($this->countryService)){ + $this->countryService = new \Wallee\Sdk\Service\CountryService($this); + } + return $this->countryService; + } + + protected $countryStateService; + + /** + * @return \Wallee\Sdk\Service\CountryStateService + */ + public function getCountryStateService() { + if(is_null($this->countryStateService)){ + $this->countryStateService = new \Wallee\Sdk\Service\CountryStateService($this); + } + return $this->countryStateService; + } + + protected $currencyService; + + /** + * @return \Wallee\Sdk\Service\CurrencyService + */ + public function getCurrencyService() { + if(is_null($this->currencyService)){ + $this->currencyService = new \Wallee\Sdk\Service\CurrencyService($this); + } + return $this->currencyService; + } + + protected $customerAddressService; + + /** + * @return \Wallee\Sdk\Service\CustomerAddressService + */ + public function getCustomerAddressService() { + if(is_null($this->customerAddressService)){ + $this->customerAddressService = new \Wallee\Sdk\Service\CustomerAddressService($this); + } + return $this->customerAddressService; + } + + protected $customerCommentService; + + /** + * @return \Wallee\Sdk\Service\CustomerCommentService + */ + public function getCustomerCommentService() { + if(is_null($this->customerCommentService)){ + $this->customerCommentService = new \Wallee\Sdk\Service\CustomerCommentService($this); + } + return $this->customerCommentService; + } + + protected $customerService; + + /** + * @return \Wallee\Sdk\Service\CustomerService + */ + public function getCustomerService() { + if(is_null($this->customerService)){ + $this->customerService = new \Wallee\Sdk\Service\CustomerService($this); + } + return $this->customerService; + } + + protected $debtCollectionCaseService; + + /** + * @return \Wallee\Sdk\Service\DebtCollectionCaseService + */ + public function getDebtCollectionCaseService() { + if(is_null($this->debtCollectionCaseService)){ + $this->debtCollectionCaseService = new \Wallee\Sdk\Service\DebtCollectionCaseService($this); + } + return $this->debtCollectionCaseService; + } + + protected $debtCollectorConfigurationService; + + /** + * @return \Wallee\Sdk\Service\DebtCollectorConfigurationService + */ + public function getDebtCollectorConfigurationService() { + if(is_null($this->debtCollectorConfigurationService)){ + $this->debtCollectorConfigurationService = new \Wallee\Sdk\Service\DebtCollectorConfigurationService($this); + } + return $this->debtCollectorConfigurationService; + } + + protected $debtCollectorService; + + /** + * @return \Wallee\Sdk\Service\DebtCollectorService + */ + public function getDebtCollectorService() { + if(is_null($this->debtCollectorService)){ + $this->debtCollectorService = new \Wallee\Sdk\Service\DebtCollectorService($this); + } + return $this->debtCollectorService; + } + + protected $deliveryIndicationService; + + /** + * @return \Wallee\Sdk\Service\DeliveryIndicationService + */ + public function getDeliveryIndicationService() { + if(is_null($this->deliveryIndicationService)){ + $this->deliveryIndicationService = new \Wallee\Sdk\Service\DeliveryIndicationService($this); + } + return $this->deliveryIndicationService; + } + + protected $documentTemplateService; + + /** + * @return \Wallee\Sdk\Service\DocumentTemplateService + */ + public function getDocumentTemplateService() { + if(is_null($this->documentTemplateService)){ + $this->documentTemplateService = new \Wallee\Sdk\Service\DocumentTemplateService($this); + } + return $this->documentTemplateService; + } + + protected $documentTemplateTypeService; + + /** + * @return \Wallee\Sdk\Service\DocumentTemplateTypeService + */ + public function getDocumentTemplateTypeService() { + if(is_null($this->documentTemplateTypeService)){ + $this->documentTemplateTypeService = new \Wallee\Sdk\Service\DocumentTemplateTypeService($this); + } + return $this->documentTemplateTypeService; + } + + protected $humanUserService; + + /** + * @return \Wallee\Sdk\Service\HumanUserService + */ + public function getHumanUserService() { + if(is_null($this->humanUserService)){ + $this->humanUserService = new \Wallee\Sdk\Service\HumanUserService($this); + } + return $this->humanUserService; + } + + protected $installmentPaymentService; + + /** + * @return \Wallee\Sdk\Service\InstallmentPaymentService + */ + public function getInstallmentPaymentService() { + if(is_null($this->installmentPaymentService)){ + $this->installmentPaymentService = new \Wallee\Sdk\Service\InstallmentPaymentService($this); + } + return $this->installmentPaymentService; + } + + protected $installmentPaymentSliceService; + + /** + * @return \Wallee\Sdk\Service\InstallmentPaymentSliceService + */ + public function getInstallmentPaymentSliceService() { + if(is_null($this->installmentPaymentSliceService)){ + $this->installmentPaymentSliceService = new \Wallee\Sdk\Service\InstallmentPaymentSliceService($this); + } + return $this->installmentPaymentSliceService; + } + + protected $installmentPlanCalculationService; + + /** + * @return \Wallee\Sdk\Service\InstallmentPlanCalculationService + */ + public function getInstallmentPlanCalculationService() { + if(is_null($this->installmentPlanCalculationService)){ + $this->installmentPlanCalculationService = new \Wallee\Sdk\Service\InstallmentPlanCalculationService($this); + } + return $this->installmentPlanCalculationService; + } + + protected $installmentPlanConfigurationService; + + /** + * @return \Wallee\Sdk\Service\InstallmentPlanConfigurationService + */ + public function getInstallmentPlanConfigurationService() { + if(is_null($this->installmentPlanConfigurationService)){ + $this->installmentPlanConfigurationService = new \Wallee\Sdk\Service\InstallmentPlanConfigurationService($this); + } + return $this->installmentPlanConfigurationService; + } + + protected $installmentPlanSliceConfigurationService; + + /** + * @return \Wallee\Sdk\Service\InstallmentPlanSliceConfigurationService + */ + public function getInstallmentPlanSliceConfigurationService() { + if(is_null($this->installmentPlanSliceConfigurationService)){ + $this->installmentPlanSliceConfigurationService = new \Wallee\Sdk\Service\InstallmentPlanSliceConfigurationService($this); + } + return $this->installmentPlanSliceConfigurationService; + } + + protected $labelDescriptionGroupService; + + /** + * @return \Wallee\Sdk\Service\LabelDescriptionGroupService + */ + public function getLabelDescriptionGroupService() { + if(is_null($this->labelDescriptionGroupService)){ + $this->labelDescriptionGroupService = new \Wallee\Sdk\Service\LabelDescriptionGroupService($this); + } + return $this->labelDescriptionGroupService; + } + + protected $labelDescriptionService; + + /** + * @return \Wallee\Sdk\Service\LabelDescriptionService + */ + public function getLabelDescriptionService() { + if(is_null($this->labelDescriptionService)){ + $this->labelDescriptionService = new \Wallee\Sdk\Service\LabelDescriptionService($this); + } + return $this->labelDescriptionService; + } + + protected $languageService; + + /** + * @return \Wallee\Sdk\Service\LanguageService + */ + public function getLanguageService() { + if(is_null($this->languageService)){ + $this->languageService = new \Wallee\Sdk\Service\LanguageService($this); + } + return $this->languageService; + } + + protected $legalOrganizationFormService; + + /** + * @return \Wallee\Sdk\Service\LegalOrganizationFormService + */ + public function getLegalOrganizationFormService() { + if(is_null($this->legalOrganizationFormService)){ + $this->legalOrganizationFormService = new \Wallee\Sdk\Service\LegalOrganizationFormService($this); + } + return $this->legalOrganizationFormService; + } + + protected $manualTaskService; + + /** + * @return \Wallee\Sdk\Service\ManualTaskService + */ + public function getManualTaskService() { + if(is_null($this->manualTaskService)){ + $this->manualTaskService = new \Wallee\Sdk\Service\ManualTaskService($this); + } + return $this->manualTaskService; + } + + protected $merticUsageService; + + /** + * @return \Wallee\Sdk\Service\MerticUsageService + */ + public function getMerticUsageService() { + if(is_null($this->merticUsageService)){ + $this->merticUsageService = new \Wallee\Sdk\Service\MerticUsageService($this); + } + return $this->merticUsageService; + } + + protected $paymentConnectorConfigurationService; + + /** + * @return \Wallee\Sdk\Service\PaymentConnectorConfigurationService + */ + public function getPaymentConnectorConfigurationService() { + if(is_null($this->paymentConnectorConfigurationService)){ + $this->paymentConnectorConfigurationService = new \Wallee\Sdk\Service\PaymentConnectorConfigurationService($this); + } + return $this->paymentConnectorConfigurationService; + } + + protected $paymentConnectorService; + + /** + * @return \Wallee\Sdk\Service\PaymentConnectorService + */ + public function getPaymentConnectorService() { + if(is_null($this->paymentConnectorService)){ + $this->paymentConnectorService = new \Wallee\Sdk\Service\PaymentConnectorService($this); + } + return $this->paymentConnectorService; + } + + protected $paymentLinkService; + + /** + * @return \Wallee\Sdk\Service\PaymentLinkService + */ + public function getPaymentLinkService() { + if(is_null($this->paymentLinkService)){ + $this->paymentLinkService = new \Wallee\Sdk\Service\PaymentLinkService($this); + } + return $this->paymentLinkService; + } + + protected $paymentMethodBrandService; + + /** + * @return \Wallee\Sdk\Service\PaymentMethodBrandService + */ + public function getPaymentMethodBrandService() { + if(is_null($this->paymentMethodBrandService)){ + $this->paymentMethodBrandService = new \Wallee\Sdk\Service\PaymentMethodBrandService($this); + } + return $this->paymentMethodBrandService; + } + + protected $paymentMethodConfigurationService; + + /** + * @return \Wallee\Sdk\Service\PaymentMethodConfigurationService + */ + public function getPaymentMethodConfigurationService() { + if(is_null($this->paymentMethodConfigurationService)){ + $this->paymentMethodConfigurationService = new \Wallee\Sdk\Service\PaymentMethodConfigurationService($this); + } + return $this->paymentMethodConfigurationService; + } + + protected $paymentMethodService; + + /** + * @return \Wallee\Sdk\Service\PaymentMethodService + */ + public function getPaymentMethodService() { + if(is_null($this->paymentMethodService)){ + $this->paymentMethodService = new \Wallee\Sdk\Service\PaymentMethodService($this); + } + return $this->paymentMethodService; + } + + protected $paymentProcessorConfigurationService; + + /** + * @return \Wallee\Sdk\Service\PaymentProcessorConfigurationService + */ + public function getPaymentProcessorConfigurationService() { + if(is_null($this->paymentProcessorConfigurationService)){ + $this->paymentProcessorConfigurationService = new \Wallee\Sdk\Service\PaymentProcessorConfigurationService($this); + } + return $this->paymentProcessorConfigurationService; + } + + protected $paymentProcessorService; + + /** + * @return \Wallee\Sdk\Service\PaymentProcessorService + */ + public function getPaymentProcessorService() { + if(is_null($this->paymentProcessorService)){ + $this->paymentProcessorService = new \Wallee\Sdk\Service\PaymentProcessorService($this); + } + return $this->paymentProcessorService; + } + + protected $paymentTerminalService; + + /** + * @return \Wallee\Sdk\Service\PaymentTerminalService + */ + public function getPaymentTerminalService() { + if(is_null($this->paymentTerminalService)){ + $this->paymentTerminalService = new \Wallee\Sdk\Service\PaymentTerminalService($this); + } + return $this->paymentTerminalService; + } + + protected $paymentTerminalTillService; + + /** + * @return \Wallee\Sdk\Service\PaymentTerminalTillService + */ + public function getPaymentTerminalTillService() { + if(is_null($this->paymentTerminalTillService)){ + $this->paymentTerminalTillService = new \Wallee\Sdk\Service\PaymentTerminalTillService($this); + } + return $this->paymentTerminalTillService; + } + + protected $permissionService; + + /** + * @return \Wallee\Sdk\Service\PermissionService + */ + public function getPermissionService() { + if(is_null($this->permissionService)){ + $this->permissionService = new \Wallee\Sdk\Service\PermissionService($this); + } + return $this->permissionService; + } + + protected $refundCommentService; + + /** + * @return \Wallee\Sdk\Service\RefundCommentService + */ + public function getRefundCommentService() { + if(is_null($this->refundCommentService)){ + $this->refundCommentService = new \Wallee\Sdk\Service\RefundCommentService($this); + } + return $this->refundCommentService; + } + + protected $refundService; + + /** + * @return \Wallee\Sdk\Service\RefundService + */ + public function getRefundService() { + if(is_null($this->refundService)){ + $this->refundService = new \Wallee\Sdk\Service\RefundService($this); + } + return $this->refundService; + } + + protected $shopifyRecurringOrderService; + + /** + * @return \Wallee\Sdk\Service\ShopifyRecurringOrderService + */ + public function getShopifyRecurringOrderService() { + if(is_null($this->shopifyRecurringOrderService)){ + $this->shopifyRecurringOrderService = new \Wallee\Sdk\Service\ShopifyRecurringOrderService($this); + } + return $this->shopifyRecurringOrderService; + } + + protected $shopifySubscriberService; + + /** + * @return \Wallee\Sdk\Service\ShopifySubscriberService + */ + public function getShopifySubscriberService() { + if(is_null($this->shopifySubscriberService)){ + $this->shopifySubscriberService = new \Wallee\Sdk\Service\ShopifySubscriberService($this); + } + return $this->shopifySubscriberService; + } + + protected $shopifySubscriptionProductService; + + /** + * @return \Wallee\Sdk\Service\ShopifySubscriptionProductService + */ + public function getShopifySubscriptionProductService() { + if(is_null($this->shopifySubscriptionProductService)){ + $this->shopifySubscriptionProductService = new \Wallee\Sdk\Service\ShopifySubscriptionProductService($this); + } + return $this->shopifySubscriptionProductService; + } + + protected $shopifySubscriptionService; + + /** + * @return \Wallee\Sdk\Service\ShopifySubscriptionService + */ + public function getShopifySubscriptionService() { + if(is_null($this->shopifySubscriptionService)){ + $this->shopifySubscriptionService = new \Wallee\Sdk\Service\ShopifySubscriptionService($this); + } + return $this->shopifySubscriptionService; + } + + protected $shopifySubscriptionSuspensionService; + + /** + * @return \Wallee\Sdk\Service\ShopifySubscriptionSuspensionService + */ + public function getShopifySubscriptionSuspensionService() { + if(is_null($this->shopifySubscriptionSuspensionService)){ + $this->shopifySubscriptionSuspensionService = new \Wallee\Sdk\Service\ShopifySubscriptionSuspensionService($this); + } + return $this->shopifySubscriptionSuspensionService; + } + + protected $shopifySubscriptionVersionService; + + /** + * @return \Wallee\Sdk\Service\ShopifySubscriptionVersionService + */ + public function getShopifySubscriptionVersionService() { + if(is_null($this->shopifySubscriptionVersionService)){ + $this->shopifySubscriptionVersionService = new \Wallee\Sdk\Service\ShopifySubscriptionVersionService($this); + } + return $this->shopifySubscriptionVersionService; + } + + protected $shopifyTransactionService; + + /** + * @return \Wallee\Sdk\Service\ShopifyTransactionService + */ + public function getShopifyTransactionService() { + if(is_null($this->shopifyTransactionService)){ + $this->shopifyTransactionService = new \Wallee\Sdk\Service\ShopifyTransactionService($this); + } + return $this->shopifyTransactionService; + } + + protected $spaceService; + + /** + * @return \Wallee\Sdk\Service\SpaceService + */ + public function getSpaceService() { + if(is_null($this->spaceService)){ + $this->spaceService = new \Wallee\Sdk\Service\SpaceService($this); + } + return $this->spaceService; + } + + protected $staticValueService; + + /** + * @return \Wallee\Sdk\Service\StaticValueService + */ + public function getStaticValueService() { + if(is_null($this->staticValueService)){ + $this->staticValueService = new \Wallee\Sdk\Service\StaticValueService($this); + } + return $this->staticValueService; + } + + protected $subscriberService; + + /** + * @return \Wallee\Sdk\Service\SubscriberService + */ + public function getSubscriberService() { + if(is_null($this->subscriberService)){ + $this->subscriberService = new \Wallee\Sdk\Service\SubscriberService($this); + } + return $this->subscriberService; + } + + protected $subscriptionAffiliateService; + + /** + * @return \Wallee\Sdk\Service\SubscriptionAffiliateService + */ + public function getSubscriptionAffiliateService() { + if(is_null($this->subscriptionAffiliateService)){ + $this->subscriptionAffiliateService = new \Wallee\Sdk\Service\SubscriptionAffiliateService($this); + } + return $this->subscriptionAffiliateService; + } + + protected $subscriptionChargeService; + + /** + * @return \Wallee\Sdk\Service\SubscriptionChargeService + */ + public function getSubscriptionChargeService() { + if(is_null($this->subscriptionChargeService)){ + $this->subscriptionChargeService = new \Wallee\Sdk\Service\SubscriptionChargeService($this); + } + return $this->subscriptionChargeService; + } + + protected $subscriptionLedgerEntryService; + + /** + * @return \Wallee\Sdk\Service\SubscriptionLedgerEntryService + */ + public function getSubscriptionLedgerEntryService() { + if(is_null($this->subscriptionLedgerEntryService)){ + $this->subscriptionLedgerEntryService = new \Wallee\Sdk\Service\SubscriptionLedgerEntryService($this); + } + return $this->subscriptionLedgerEntryService; + } + + protected $subscriptionMetricService; + + /** + * @return \Wallee\Sdk\Service\SubscriptionMetricService + */ + public function getSubscriptionMetricService() { + if(is_null($this->subscriptionMetricService)){ + $this->subscriptionMetricService = new \Wallee\Sdk\Service\SubscriptionMetricService($this); + } + return $this->subscriptionMetricService; + } + + protected $subscriptionMetricUsageService; + + /** + * @return \Wallee\Sdk\Service\SubscriptionMetricUsageService + */ + public function getSubscriptionMetricUsageService() { + if(is_null($this->subscriptionMetricUsageService)){ + $this->subscriptionMetricUsageService = new \Wallee\Sdk\Service\SubscriptionMetricUsageService($this); + } + return $this->subscriptionMetricUsageService; + } + + protected $subscriptionPeriodBillService; + + /** + * @return \Wallee\Sdk\Service\SubscriptionPeriodBillService + */ + public function getSubscriptionPeriodBillService() { + if(is_null($this->subscriptionPeriodBillService)){ + $this->subscriptionPeriodBillService = new \Wallee\Sdk\Service\SubscriptionPeriodBillService($this); + } + return $this->subscriptionPeriodBillService; + } + + protected $subscriptionProductComponentGroupService; + + /** + * @return \Wallee\Sdk\Service\SubscriptionProductComponentGroupService + */ + public function getSubscriptionProductComponentGroupService() { + if(is_null($this->subscriptionProductComponentGroupService)){ + $this->subscriptionProductComponentGroupService = new \Wallee\Sdk\Service\SubscriptionProductComponentGroupService($this); + } + return $this->subscriptionProductComponentGroupService; + } + + protected $subscriptionProductComponentService; + + /** + * @return \Wallee\Sdk\Service\SubscriptionProductComponentService + */ + public function getSubscriptionProductComponentService() { + if(is_null($this->subscriptionProductComponentService)){ + $this->subscriptionProductComponentService = new \Wallee\Sdk\Service\SubscriptionProductComponentService($this); + } + return $this->subscriptionProductComponentService; + } + + protected $subscriptionProductFeeTierService; + + /** + * @return \Wallee\Sdk\Service\SubscriptionProductFeeTierService + */ + public function getSubscriptionProductFeeTierService() { + if(is_null($this->subscriptionProductFeeTierService)){ + $this->subscriptionProductFeeTierService = new \Wallee\Sdk\Service\SubscriptionProductFeeTierService($this); + } + return $this->subscriptionProductFeeTierService; + } + + protected $subscriptionProductMeteredFeeService; + + /** + * @return \Wallee\Sdk\Service\SubscriptionProductMeteredFeeService + */ + public function getSubscriptionProductMeteredFeeService() { + if(is_null($this->subscriptionProductMeteredFeeService)){ + $this->subscriptionProductMeteredFeeService = new \Wallee\Sdk\Service\SubscriptionProductMeteredFeeService($this); + } + return $this->subscriptionProductMeteredFeeService; + } + + protected $subscriptionProductPeriodFeeService; + + /** + * @return \Wallee\Sdk\Service\SubscriptionProductPeriodFeeService + */ + public function getSubscriptionProductPeriodFeeService() { + if(is_null($this->subscriptionProductPeriodFeeService)){ + $this->subscriptionProductPeriodFeeService = new \Wallee\Sdk\Service\SubscriptionProductPeriodFeeService($this); + } + return $this->subscriptionProductPeriodFeeService; + } + + protected $subscriptionProductRetirementService; + + /** + * @return \Wallee\Sdk\Service\SubscriptionProductRetirementService + */ + public function getSubscriptionProductRetirementService() { + if(is_null($this->subscriptionProductRetirementService)){ + $this->subscriptionProductRetirementService = new \Wallee\Sdk\Service\SubscriptionProductRetirementService($this); + } + return $this->subscriptionProductRetirementService; + } + + protected $subscriptionProductService; + + /** + * @return \Wallee\Sdk\Service\SubscriptionProductService + */ + public function getSubscriptionProductService() { + if(is_null($this->subscriptionProductService)){ + $this->subscriptionProductService = new \Wallee\Sdk\Service\SubscriptionProductService($this); + } + return $this->subscriptionProductService; + } + + protected $subscriptionProductSetupFeeService; + + /** + * @return \Wallee\Sdk\Service\SubscriptionProductSetupFeeService + */ + public function getSubscriptionProductSetupFeeService() { + if(is_null($this->subscriptionProductSetupFeeService)){ + $this->subscriptionProductSetupFeeService = new \Wallee\Sdk\Service\SubscriptionProductSetupFeeService($this); + } + return $this->subscriptionProductSetupFeeService; + } + + protected $subscriptionProductVersionRetirementService; + + /** + * @return \Wallee\Sdk\Service\SubscriptionProductVersionRetirementService + */ + public function getSubscriptionProductVersionRetirementService() { + if(is_null($this->subscriptionProductVersionRetirementService)){ + $this->subscriptionProductVersionRetirementService = new \Wallee\Sdk\Service\SubscriptionProductVersionRetirementService($this); + } + return $this->subscriptionProductVersionRetirementService; + } + + protected $subscriptionProductVersionService; + + /** + * @return \Wallee\Sdk\Service\SubscriptionProductVersionService + */ + public function getSubscriptionProductVersionService() { + if(is_null($this->subscriptionProductVersionService)){ + $this->subscriptionProductVersionService = new \Wallee\Sdk\Service\SubscriptionProductVersionService($this); + } + return $this->subscriptionProductVersionService; + } + + protected $subscriptionService; + + /** + * @return \Wallee\Sdk\Service\SubscriptionService + */ + public function getSubscriptionService() { + if(is_null($this->subscriptionService)){ + $this->subscriptionService = new \Wallee\Sdk\Service\SubscriptionService($this); + } + return $this->subscriptionService; + } + + protected $subscriptionSuspensionService; + + /** + * @return \Wallee\Sdk\Service\SubscriptionSuspensionService + */ + public function getSubscriptionSuspensionService() { + if(is_null($this->subscriptionSuspensionService)){ + $this->subscriptionSuspensionService = new \Wallee\Sdk\Service\SubscriptionSuspensionService($this); + } + return $this->subscriptionSuspensionService; + } + + protected $subscriptionVersionService; + + /** + * @return \Wallee\Sdk\Service\SubscriptionVersionService + */ + public function getSubscriptionVersionService() { + if(is_null($this->subscriptionVersionService)){ + $this->subscriptionVersionService = new \Wallee\Sdk\Service\SubscriptionVersionService($this); + } + return $this->subscriptionVersionService; + } + + protected $tokenService; + + /** + * @return \Wallee\Sdk\Service\TokenService + */ + public function getTokenService() { + if(is_null($this->tokenService)){ + $this->tokenService = new \Wallee\Sdk\Service\TokenService($this); + } + return $this->tokenService; + } + + protected $tokenVersionService; + + /** + * @return \Wallee\Sdk\Service\TokenVersionService + */ + public function getTokenVersionService() { + if(is_null($this->tokenVersionService)){ + $this->tokenVersionService = new \Wallee\Sdk\Service\TokenVersionService($this); + } + return $this->tokenVersionService; + } + + protected $transactionCommentService; + + /** + * @return \Wallee\Sdk\Service\TransactionCommentService + */ + public function getTransactionCommentService() { + if(is_null($this->transactionCommentService)){ + $this->transactionCommentService = new \Wallee\Sdk\Service\TransactionCommentService($this); + } + return $this->transactionCommentService; + } + + protected $transactionCompletionService; + + /** + * @return \Wallee\Sdk\Service\TransactionCompletionService + */ + public function getTransactionCompletionService() { + if(is_null($this->transactionCompletionService)){ + $this->transactionCompletionService = new \Wallee\Sdk\Service\TransactionCompletionService($this); + } + return $this->transactionCompletionService; + } + + protected $transactionIframeService; + + /** + * @return \Wallee\Sdk\Service\TransactionIframeService + */ + public function getTransactionIframeService() { + if(is_null($this->transactionIframeService)){ + $this->transactionIframeService = new \Wallee\Sdk\Service\TransactionIframeService($this); + } + return $this->transactionIframeService; + } + + protected $transactionInvoiceCommentService; + + /** + * @return \Wallee\Sdk\Service\TransactionInvoiceCommentService + */ + public function getTransactionInvoiceCommentService() { + if(is_null($this->transactionInvoiceCommentService)){ + $this->transactionInvoiceCommentService = new \Wallee\Sdk\Service\TransactionInvoiceCommentService($this); + } + return $this->transactionInvoiceCommentService; + } + + protected $transactionInvoiceService; + + /** + * @return \Wallee\Sdk\Service\TransactionInvoiceService + */ + public function getTransactionInvoiceService() { + if(is_null($this->transactionInvoiceService)){ + $this->transactionInvoiceService = new \Wallee\Sdk\Service\TransactionInvoiceService($this); + } + return $this->transactionInvoiceService; + } + + protected $transactionLightboxService; + + /** + * @return \Wallee\Sdk\Service\TransactionLightboxService + */ + public function getTransactionLightboxService() { + if(is_null($this->transactionLightboxService)){ + $this->transactionLightboxService = new \Wallee\Sdk\Service\TransactionLightboxService($this); + } + return $this->transactionLightboxService; + } + + protected $transactionMobileSdkService; + + /** + * @return \Wallee\Sdk\Service\TransactionMobileSdkService + */ + public function getTransactionMobileSdkService() { + if(is_null($this->transactionMobileSdkService)){ + $this->transactionMobileSdkService = new \Wallee\Sdk\Service\TransactionMobileSdkService($this); + } + return $this->transactionMobileSdkService; + } + + protected $transactionPaymentPageService; + + /** + * @return \Wallee\Sdk\Service\TransactionPaymentPageService + */ + public function getTransactionPaymentPageService() { + if(is_null($this->transactionPaymentPageService)){ + $this->transactionPaymentPageService = new \Wallee\Sdk\Service\TransactionPaymentPageService($this); + } + return $this->transactionPaymentPageService; + } + + protected $transactionService; + + /** + * @return \Wallee\Sdk\Service\TransactionService + */ + public function getTransactionService() { + if(is_null($this->transactionService)){ + $this->transactionService = new \Wallee\Sdk\Service\TransactionService($this); + } + return $this->transactionService; + } + + protected $transactionTerminalService; + + /** + * @return \Wallee\Sdk\Service\TransactionTerminalService + */ + public function getTransactionTerminalService() { + if(is_null($this->transactionTerminalService)){ + $this->transactionTerminalService = new \Wallee\Sdk\Service\TransactionTerminalService($this); + } + return $this->transactionTerminalService; + } + + protected $transactionVoidService; + + /** + * @return \Wallee\Sdk\Service\TransactionVoidService + */ + public function getTransactionVoidService() { + if(is_null($this->transactionVoidService)){ + $this->transactionVoidService = new \Wallee\Sdk\Service\TransactionVoidService($this); + } + return $this->transactionVoidService; + } + + protected $userAccountRoleService; + + /** + * @return \Wallee\Sdk\Service\UserAccountRoleService + */ + public function getUserAccountRoleService() { + if(is_null($this->userAccountRoleService)){ + $this->userAccountRoleService = new \Wallee\Sdk\Service\UserAccountRoleService($this); + } + return $this->userAccountRoleService; + } + + protected $userSpaceRoleService; + + /** + * @return \Wallee\Sdk\Service\UserSpaceRoleService + */ + public function getUserSpaceRoleService() { + if(is_null($this->userSpaceRoleService)){ + $this->userSpaceRoleService = new \Wallee\Sdk\Service\UserSpaceRoleService($this); + } + return $this->userSpaceRoleService; + } + + protected $webhookListenerService; + + /** + * @return \Wallee\Sdk\Service\WebhookListenerService + */ + public function getWebhookListenerService() { + if(is_null($this->webhookListenerService)){ + $this->webhookListenerService = new \Wallee\Sdk\Service\WebhookListenerService($this); + } + return $this->webhookListenerService; + } + + protected $webhookUrlService; + + /** + * @return \Wallee\Sdk\Service\WebhookUrlService + */ + public function getWebhookUrlService() { + if(is_null($this->webhookUrlService)){ + $this->webhookUrlService = new \Wallee\Sdk\Service\WebhookUrlService($this); + } + return $this->webhookUrlService; + } + + } diff --git a/wallee-sdk/lib/ApiException.php b/wallee-sdk/lib/ApiException.php index dd5fe99..e8309b4 100644 --- a/wallee-sdk/lib/ApiException.php +++ b/wallee-sdk/lib/ApiException.php @@ -1,8 +1,8 @@ getTempFolderPath() . PHP_EOL; return $report; diff --git a/wallee-sdk/lib/HeaderSelector.php b/wallee-sdk/lib/HeaderSelector.php index 7ba89e7..2230990 100644 --- a/wallee-sdk/lib/HeaderSelector.php +++ b/wallee-sdk/lib/HeaderSelector.php @@ -1,8 +1,8 @@ '\DateTime', 'name' => 'string', 'subaccount_limit' => 'int' ]; @@ -58,6 +59,7 @@ class AbstractAccountUpdate implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerFormats = [ + 'last_modified_date' => 'date-time', 'name' => null, 'subaccount_limit' => 'int64' ]; @@ -69,6 +71,7 @@ class AbstractAccountUpdate implements ModelInterface, ArrayAccess * @var string[] */ protected static $attributeMap = [ + 'last_modified_date' => 'lastModifiedDate', 'name' => 'name', 'subaccount_limit' => 'subaccountLimit' ]; @@ -79,6 +82,7 @@ class AbstractAccountUpdate implements ModelInterface, ArrayAccess * @var string[] */ protected static $setters = [ + 'last_modified_date' => 'setLastModifiedDate', 'name' => 'setName', 'subaccount_limit' => 'setSubaccountLimit' ]; @@ -89,6 +93,7 @@ class AbstractAccountUpdate implements ModelInterface, ArrayAccess * @var string[] */ protected static $getters = [ + 'last_modified_date' => 'getLastModifiedDate', 'name' => 'getName', 'subaccount_limit' => 'getSubaccountLimit' ]; @@ -111,6 +116,8 @@ class AbstractAccountUpdate implements ModelInterface, ArrayAccess public function __construct(array $data = null) { + $this->container['last_modified_date'] = isset($data['last_modified_date']) ? $data['last_modified_date'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['subaccount_limit'] = isset($data['subaccount_limit']) ? $data['subaccount_limit'] : null; @@ -126,6 +133,14 @@ public function listInvalidProperties() { $invalidProperties = []; + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) > 200)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 200."; + } + + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) < 3)) { + $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 3."; + } + return $invalidProperties; } @@ -206,6 +221,31 @@ public function valid() + /** + * Gets last_modified_date + * + * @return \DateTime + */ + public function getLastModifiedDate() + { + return $this->container['last_modified_date']; + } + + /** + * Sets last_modified_date + * + * @param \DateTime $last_modified_date + * + * @return $this + */ + public function setLastModifiedDate($last_modified_date) + { + $this->container['last_modified_date'] = $last_modified_date; + + return $this; + } + + /** * Gets name * @@ -225,6 +265,13 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 200)) { + throw new \InvalidArgumentException('invalid length for $name when calling AbstractAccountUpdate., must be smaller than or equal to 200.'); + } + if (!is_null($name) && (mb_strlen($name) < 3)) { + throw new \InvalidArgumentException('invalid length for $name when calling AbstractAccountUpdate., must be bigger than or equal to 3.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/AbstractApplicationUserUpdate.php b/wallee-sdk/lib/Model/AbstractApplicationUserUpdate.php index 4706284..7e23015 100644 --- a/wallee-sdk/lib/Model/AbstractApplicationUserUpdate.php +++ b/wallee-sdk/lib/Model/AbstractApplicationUserUpdate.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 256)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 256."; + } + return $invalidProperties; } @@ -232,6 +236,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 256)) { + throw new \InvalidArgumentException('invalid length for $name when calling AbstractApplicationUserUpdate., must be smaller than or equal to 256.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/AbstractCustomerActive.php b/wallee-sdk/lib/Model/AbstractCustomerActive.php index 7207361..c1fa159 100644 --- a/wallee-sdk/lib/Model/AbstractCustomerActive.php +++ b/wallee-sdk/lib/Model/AbstractCustomerActive.php @@ -1,8 +1,8 @@ container['customer_id']) && (mb_strlen($this->container['customer_id']) > 100)) { + $invalidProperties[] = "invalid value for 'customer_id', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['email_address']) && (mb_strlen($this->container['email_address']) > 254)) { + $invalidProperties[] = "invalid value for 'email_address', the character length must be smaller than or equal to 254."; + } + + if (!is_null($this->container['family_name']) && (mb_strlen($this->container['family_name']) > 100)) { + $invalidProperties[] = "invalid value for 'family_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['given_name']) && (mb_strlen($this->container['given_name']) > 100)) { + $invalidProperties[] = "invalid value for 'given_name', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -260,6 +276,10 @@ public function getCustomerId() */ public function setCustomerId($customer_id) { + if (!is_null($customer_id) && (mb_strlen($customer_id) > 100)) { + throw new \InvalidArgumentException('invalid length for $customer_id when calling AbstractCustomerActive., must be smaller than or equal to 100.'); + } + $this->container['customer_id'] = $customer_id; return $this; @@ -285,6 +305,10 @@ public function getEmailAddress() */ public function setEmailAddress($email_address) { + if (!is_null($email_address) && (mb_strlen($email_address) > 254)) { + throw new \InvalidArgumentException('invalid length for $email_address when calling AbstractCustomerActive., must be smaller than or equal to 254.'); + } + $this->container['email_address'] = $email_address; return $this; @@ -310,6 +334,10 @@ public function getFamilyName() */ public function setFamilyName($family_name) { + if (!is_null($family_name) && (mb_strlen($family_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $family_name when calling AbstractCustomerActive., must be smaller than or equal to 100.'); + } + $this->container['family_name'] = $family_name; return $this; @@ -335,6 +363,10 @@ public function getGivenName() */ public function setGivenName($given_name) { + if (!is_null($given_name) && (mb_strlen($given_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $given_name when calling AbstractCustomerActive., must be smaller than or equal to 100.'); + } + $this->container['given_name'] = $given_name; return $this; diff --git a/wallee-sdk/lib/Model/AbstractCustomerAddressActive.php b/wallee-sdk/lib/Model/AbstractCustomerAddressActive.php index e2e16e2..1285045 100644 --- a/wallee-sdk/lib/Model/AbstractCustomerAddressActive.php +++ b/wallee-sdk/lib/Model/AbstractCustomerAddressActive.php @@ -1,8 +1,8 @@ container['content']) && (mb_strlen($this->container['content']) > 262144)) { + $invalidProperties[] = "invalid value for 'content', the character length must be smaller than or equal to 262144."; + } + return $invalidProperties; } @@ -218,6 +222,10 @@ public function getContent() */ public function setContent($content) { + if (!is_null($content) && (mb_strlen($content) > 262144)) { + throw new \InvalidArgumentException('invalid length for $content when calling AbstractCustomerCommentActive., must be smaller than or equal to 262144.'); + } + $this->container['content'] = $content; return $this; diff --git a/wallee-sdk/lib/Model/AbstractDebtCollectionCaseUpdate.php b/wallee-sdk/lib/Model/AbstractDebtCollectionCaseUpdate.php index b6c5a28..6cc9b36 100644 --- a/wallee-sdk/lib/Model/AbstractDebtCollectionCaseUpdate.php +++ b/wallee-sdk/lib/Model/AbstractDebtCollectionCaseUpdate.php @@ -1,8 +1,8 @@ container['email_address']) && (mb_strlen($this->container['email_address']) > 128)) { + $invalidProperties[] = "invalid value for 'email_address', the character length must be smaller than or equal to 128."; + } + + if (!is_null($this->container['firstname']) && (mb_strlen($this->container['firstname']) > 100)) { + $invalidProperties[] = "invalid value for 'firstname', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['lastname']) && (mb_strlen($this->container['lastname']) > 100)) { + $invalidProperties[] = "invalid value for 'lastname', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['mobile_phone_number']) && (mb_strlen($this->container['mobile_phone_number']) > 30)) { + $invalidProperties[] = "invalid value for 'mobile_phone_number', the character length must be smaller than or equal to 30."; + } + return $invalidProperties; } @@ -267,6 +283,10 @@ public function getEmailAddress() */ public function setEmailAddress($email_address) { + if (!is_null($email_address) && (mb_strlen($email_address) > 128)) { + throw new \InvalidArgumentException('invalid length for $email_address when calling AbstractHumanUserUpdate., must be smaller than or equal to 128.'); + } + $this->container['email_address'] = $email_address; return $this; @@ -292,6 +312,10 @@ public function getFirstname() */ public function setFirstname($firstname) { + if (!is_null($firstname) && (mb_strlen($firstname) > 100)) { + throw new \InvalidArgumentException('invalid length for $firstname when calling AbstractHumanUserUpdate., must be smaller than or equal to 100.'); + } + $this->container['firstname'] = $firstname; return $this; @@ -342,6 +366,10 @@ public function getLastname() */ public function setLastname($lastname) { + if (!is_null($lastname) && (mb_strlen($lastname) > 100)) { + throw new \InvalidArgumentException('invalid length for $lastname when calling AbstractHumanUserUpdate., must be smaller than or equal to 100.'); + } + $this->container['lastname'] = $lastname; return $this; @@ -367,6 +395,10 @@ public function getMobilePhoneNumber() */ public function setMobilePhoneNumber($mobile_phone_number) { + if (!is_null($mobile_phone_number) && (mb_strlen($mobile_phone_number) > 30)) { + throw new \InvalidArgumentException('invalid length for $mobile_phone_number when calling AbstractHumanUserUpdate., must be smaller than or equal to 30.'); + } + $this->container['mobile_phone_number'] = $mobile_phone_number; return $this; diff --git a/wallee-sdk/lib/Model/AbstractPaymentLinkUpdate.php b/wallee-sdk/lib/Model/AbstractPaymentLinkUpdate.php index 94e7ce5..b30b281 100644 --- a/wallee-sdk/lib/Model/AbstractPaymentLinkUpdate.php +++ b/wallee-sdk/lib/Model/AbstractPaymentLinkUpdate.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 100)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -513,6 +517,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 100)) { + throw new \InvalidArgumentException('invalid length for $name when calling AbstractPaymentLinkUpdate., must be smaller than or equal to 100.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/AbstractRefundCommentActive.php b/wallee-sdk/lib/Model/AbstractRefundCommentActive.php index 9ccc1a5..e273081 100644 --- a/wallee-sdk/lib/Model/AbstractRefundCommentActive.php +++ b/wallee-sdk/lib/Model/AbstractRefundCommentActive.php @@ -1,8 +1,8 @@ container['content']) && (mb_strlen($this->container['content']) > 262144)) { + $invalidProperties[] = "invalid value for 'content', the character length must be smaller than or equal to 262144."; + } + return $invalidProperties; } @@ -218,6 +222,10 @@ public function getContent() */ public function setContent($content) { + if (!is_null($content) && (mb_strlen($content) > 262144)) { + throw new \InvalidArgumentException('invalid length for $content when calling AbstractRefundCommentActive., must be smaller than or equal to 262144.'); + } + $this->container['content'] = $content; return $this; diff --git a/wallee-sdk/lib/Model/AbstractShopifySubscriptionProductActive.php b/wallee-sdk/lib/Model/AbstractShopifySubscriptionProductUpdate.php similarity index 95% rename from wallee-sdk/lib/Model/AbstractShopifySubscriptionProductActive.php rename to wallee-sdk/lib/Model/AbstractShopifySubscriptionProductUpdate.php index c5695dd..4f827ac 100644 --- a/wallee-sdk/lib/Model/AbstractShopifySubscriptionProductActive.php +++ b/wallee-sdk/lib/Model/AbstractShopifySubscriptionProductUpdate.php @@ -1,8 +1,8 @@ 'int', 'pricing_option' => '\Wallee\Sdk\Model\ShopifySubscriptionProductPricingOption', 'relative_price_adjustment' => 'float', - 'state' => '\Wallee\Sdk\Model\ShopifySubscriptionProductState', 'store_order_confirmation_email_enabled' => 'bool', 'subscriber_suspension_allowed' => 'bool', 'termination_billing_cycles' => 'int' @@ -82,7 +81,6 @@ class AbstractShopifySubscriptionProductActive implements ModelInterface, ArrayA 'minimal_billing_cycles' => 'int32', 'pricing_option' => null, 'relative_price_adjustment' => null, - 'state' => null, 'store_order_confirmation_email_enabled' => null, 'subscriber_suspension_allowed' => null, 'termination_billing_cycles' => 'int32' @@ -106,7 +104,6 @@ class AbstractShopifySubscriptionProductActive implements ModelInterface, ArrayA 'minimal_billing_cycles' => 'minimalBillingCycles', 'pricing_option' => 'pricingOption', 'relative_price_adjustment' => 'relativePriceAdjustment', - 'state' => 'state', 'store_order_confirmation_email_enabled' => 'storeOrderConfirmationEmailEnabled', 'subscriber_suspension_allowed' => 'subscriberSuspensionAllowed', 'termination_billing_cycles' => 'terminationBillingCycles' @@ -129,7 +126,6 @@ class AbstractShopifySubscriptionProductActive implements ModelInterface, ArrayA 'minimal_billing_cycles' => 'setMinimalBillingCycles', 'pricing_option' => 'setPricingOption', 'relative_price_adjustment' => 'setRelativePriceAdjustment', - 'state' => 'setState', 'store_order_confirmation_email_enabled' => 'setStoreOrderConfirmationEmailEnabled', 'subscriber_suspension_allowed' => 'setSubscriberSuspensionAllowed', 'termination_billing_cycles' => 'setTerminationBillingCycles' @@ -152,7 +148,6 @@ class AbstractShopifySubscriptionProductActive implements ModelInterface, ArrayA 'minimal_billing_cycles' => 'getMinimalBillingCycles', 'pricing_option' => 'getPricingOption', 'relative_price_adjustment' => 'getRelativePriceAdjustment', - 'state' => 'getState', 'store_order_confirmation_email_enabled' => 'getStoreOrderConfirmationEmailEnabled', 'subscriber_suspension_allowed' => 'getSubscriberSuspensionAllowed', 'termination_billing_cycles' => 'getTerminationBillingCycles' @@ -198,8 +193,6 @@ public function __construct(array $data = null) $this->container['relative_price_adjustment'] = isset($data['relative_price_adjustment']) ? $data['relative_price_adjustment'] : null; - $this->container['state'] = isset($data['state']) ? $data['state'] : null; - $this->container['store_order_confirmation_email_enabled'] = isset($data['store_order_confirmation_email_enabled']) ? $data['store_order_confirmation_email_enabled'] : null; $this->container['subscriber_suspension_allowed'] = isset($data['subscriber_suspension_allowed']) ? $data['subscriber_suspension_allowed'] : null; @@ -572,31 +565,6 @@ public function setRelativePriceAdjustment($relative_price_adjustment) } - /** - * Gets state - * - * @return \Wallee\Sdk\Model\ShopifySubscriptionProductState - */ - public function getState() - { - return $this->container['state']; - } - - /** - * Sets state - * - * @param \Wallee\Sdk\Model\ShopifySubscriptionProductState $state - * - * @return $this - */ - public function setState($state) - { - $this->container['state'] = $state; - - return $this; - } - - /** * Gets store_order_confirmation_email_enabled * diff --git a/wallee-sdk/lib/Model/AbstractSpaceUpdate.php b/wallee-sdk/lib/Model/AbstractSpaceUpdate.php index 62b8f07..0f15b42 100644 --- a/wallee-sdk/lib/Model/AbstractSpaceUpdate.php +++ b/wallee-sdk/lib/Model/AbstractSpaceUpdate.php @@ -1,8 +1,8 @@ '\DateTime', 'name' => 'string', 'postal_address' => '\Wallee\Sdk\Model\SpaceAddressCreate', 'primary_currency' => 'string', @@ -63,6 +64,7 @@ class AbstractSpaceUpdate implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerFormats = [ + 'last_modified_date' => 'date-time', 'name' => null, 'postal_address' => null, 'primary_currency' => null, @@ -79,6 +81,7 @@ class AbstractSpaceUpdate implements ModelInterface, ArrayAccess * @var string[] */ protected static $attributeMap = [ + 'last_modified_date' => 'lastModifiedDate', 'name' => 'name', 'postal_address' => 'postalAddress', 'primary_currency' => 'primaryCurrency', @@ -94,6 +97,7 @@ class AbstractSpaceUpdate implements ModelInterface, ArrayAccess * @var string[] */ protected static $setters = [ + 'last_modified_date' => 'setLastModifiedDate', 'name' => 'setName', 'postal_address' => 'setPostalAddress', 'primary_currency' => 'setPrimaryCurrency', @@ -109,6 +113,7 @@ class AbstractSpaceUpdate implements ModelInterface, ArrayAccess * @var string[] */ protected static $getters = [ + 'last_modified_date' => 'getLastModifiedDate', 'name' => 'getName', 'postal_address' => 'getPostalAddress', 'primary_currency' => 'getPrimaryCurrency', @@ -136,6 +141,8 @@ class AbstractSpaceUpdate implements ModelInterface, ArrayAccess public function __construct(array $data = null) { + $this->container['last_modified_date'] = isset($data['last_modified_date']) ? $data['last_modified_date'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['postal_address'] = isset($data['postal_address']) ? $data['postal_address'] : null; @@ -161,6 +168,14 @@ public function listInvalidProperties() { $invalidProperties = []; + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) > 200)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 200."; + } + + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) < 3)) { + $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 3."; + } + return $invalidProperties; } @@ -241,6 +256,31 @@ public function valid() + /** + * Gets last_modified_date + * + * @return \DateTime + */ + public function getLastModifiedDate() + { + return $this->container['last_modified_date']; + } + + /** + * Sets last_modified_date + * + * @param \DateTime $last_modified_date + * + * @return $this + */ + public function setLastModifiedDate($last_modified_date) + { + $this->container['last_modified_date'] = $last_modified_date; + + return $this; + } + + /** * Gets name * @@ -260,6 +300,13 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 200)) { + throw new \InvalidArgumentException('invalid length for $name when calling AbstractSpaceUpdate., must be smaller than or equal to 200.'); + } + if (!is_null($name) && (mb_strlen($name) < 3)) { + throw new \InvalidArgumentException('invalid length for $name when calling AbstractSpaceUpdate., must be bigger than or equal to 3.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/AbstractSubscriberUpdate.php b/wallee-sdk/lib/Model/AbstractSubscriberUpdate.php index 2b5fb74..0fa910f 100644 --- a/wallee-sdk/lib/Model/AbstractSubscriberUpdate.php +++ b/wallee-sdk/lib/Model/AbstractSubscriberUpdate.php @@ -1,8 +1,8 @@ container['description']) && (mb_strlen($this->container['description']) > 200)) { + $invalidProperties[] = "invalid value for 'description', the character length must be smaller than or equal to 200."; + } + + if (!is_null($this->container['email_address']) && (mb_strlen($this->container['email_address']) > 254)) { + $invalidProperties[] = "invalid value for 'email_address', the character length must be smaller than or equal to 254."; + } + + if (!is_null($this->container['reference']) && (mb_strlen($this->container['reference']) > 100)) { + $invalidProperties[] = "invalid value for 'reference', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -324,6 +336,10 @@ public function getDescription() */ public function setDescription($description) { + if (!is_null($description) && (mb_strlen($description) > 200)) { + throw new \InvalidArgumentException('invalid length for $description when calling AbstractSubscriberUpdate., must be smaller than or equal to 200.'); + } + $this->container['description'] = $description; return $this; @@ -374,6 +390,10 @@ public function getEmailAddress() */ public function setEmailAddress($email_address) { + if (!is_null($email_address) && (mb_strlen($email_address) > 254)) { + throw new \InvalidArgumentException('invalid length for $email_address when calling AbstractSubscriberUpdate., must be smaller than or equal to 254.'); + } + $this->container['email_address'] = $email_address; return $this; @@ -449,6 +469,10 @@ public function getReference() */ public function setReference($reference) { + if (!is_null($reference) && (mb_strlen($reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $reference when calling AbstractSubscriberUpdate., must be smaller than or equal to 100.'); + } + $this->container['reference'] = $reference; return $this; diff --git a/wallee-sdk/lib/Model/AbstractSubscriptionAffiliateUpdate.php b/wallee-sdk/lib/Model/AbstractSubscriptionAffiliateUpdate.php index 8751c98..3e66a15 100644 --- a/wallee-sdk/lib/Model/AbstractSubscriptionAffiliateUpdate.php +++ b/wallee-sdk/lib/Model/AbstractSubscriptionAffiliateUpdate.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 255)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 255."; + } + + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) < 3)) { + $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 3."; + } + return $invalidProperties; } @@ -289,6 +297,13 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 255)) { + throw new \InvalidArgumentException('invalid length for $name when calling AbstractSubscriptionAffiliateUpdate., must be smaller than or equal to 255.'); + } + if (!is_null($name) && (mb_strlen($name) < 3)) { + throw new \InvalidArgumentException('invalid length for $name when calling AbstractSubscriptionAffiliateUpdate., must be bigger than or equal to 3.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/AbstractSubscriptionMetricUpdate.php b/wallee-sdk/lib/Model/AbstractSubscriptionMetricUpdate.php index 85e2cb7..161d88f 100644 --- a/wallee-sdk/lib/Model/AbstractSubscriptionMetricUpdate.php +++ b/wallee-sdk/lib/Model/AbstractSubscriptionMetricUpdate.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 100)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -296,6 +300,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 100)) { + throw new \InvalidArgumentException('invalid length for $name when calling AbstractSubscriptionProductActive., must be smaller than or equal to 100.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/AbstractTokenUpdate.php b/wallee-sdk/lib/Model/AbstractTokenUpdate.php index 27c20d9..91f24b1 100644 --- a/wallee-sdk/lib/Model/AbstractTokenUpdate.php +++ b/wallee-sdk/lib/Model/AbstractTokenUpdate.php @@ -1,8 +1,8 @@ container['customer_email_address']) && (mb_strlen($this->container['customer_email_address']) > 150)) { + $invalidProperties[] = "invalid value for 'customer_email_address', the character length must be smaller than or equal to 150."; + } + + if (!is_null($this->container['token_reference']) && (mb_strlen($this->container['token_reference']) > 100)) { + $invalidProperties[] = "invalid value for 'token_reference', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -253,6 +261,10 @@ public function getCustomerEmailAddress() */ public function setCustomerEmailAddress($customer_email_address) { + if (!is_null($customer_email_address) && (mb_strlen($customer_email_address) > 150)) { + throw new \InvalidArgumentException('invalid length for $customer_email_address when calling AbstractTokenUpdate., must be smaller than or equal to 150.'); + } + $this->container['customer_email_address'] = $customer_email_address; return $this; @@ -378,6 +390,10 @@ public function getTokenReference() */ public function setTokenReference($token_reference) { + if (!is_null($token_reference) && (mb_strlen($token_reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $token_reference when calling AbstractTokenUpdate., must be smaller than or equal to 100.'); + } + $this->container['token_reference'] = $token_reference; return $this; diff --git a/wallee-sdk/lib/Model/AbstractTransactionCommentActive.php b/wallee-sdk/lib/Model/AbstractTransactionCommentActive.php index 3f7f26d..be4683e 100644 --- a/wallee-sdk/lib/Model/AbstractTransactionCommentActive.php +++ b/wallee-sdk/lib/Model/AbstractTransactionCommentActive.php @@ -1,8 +1,8 @@ container['content']) && (mb_strlen($this->container['content']) > 262144)) { + $invalidProperties[] = "invalid value for 'content', the character length must be smaller than or equal to 262144."; + } + return $invalidProperties; } @@ -218,6 +222,10 @@ public function getContent() */ public function setContent($content) { + if (!is_null($content) && (mb_strlen($content) > 262144)) { + throw new \InvalidArgumentException('invalid length for $content when calling AbstractTransactionCommentActive., must be smaller than or equal to 262144.'); + } + $this->container['content'] = $content; return $this; diff --git a/wallee-sdk/lib/Model/AbstractTransactionInvoiceCommentActive.php b/wallee-sdk/lib/Model/AbstractTransactionInvoiceCommentActive.php index 6e4175e..c8522ea 100644 --- a/wallee-sdk/lib/Model/AbstractTransactionInvoiceCommentActive.php +++ b/wallee-sdk/lib/Model/AbstractTransactionInvoiceCommentActive.php @@ -1,8 +1,8 @@ container['content']) && (mb_strlen($this->container['content']) > 262144)) { + $invalidProperties[] = "invalid value for 'content', the character length must be smaller than or equal to 262144."; + } + return $invalidProperties; } @@ -218,6 +222,10 @@ public function getContent() */ public function setContent($content) { + if (!is_null($content) && (mb_strlen($content) > 262144)) { + throw new \InvalidArgumentException('invalid length for $content when calling AbstractTransactionInvoiceCommentActive., must be smaller than or equal to 262144.'); + } + $this->container['content'] = $content; return $this; diff --git a/wallee-sdk/lib/Model/AbstractTransactionPending.php b/wallee-sdk/lib/Model/AbstractTransactionPending.php index b4d154f..24d2602 100644 --- a/wallee-sdk/lib/Model/AbstractTransactionPending.php +++ b/wallee-sdk/lib/Model/AbstractTransactionPending.php @@ -1,8 +1,8 @@ '\Wallee\Sdk\Model\PaymentMethodBrand[]', 'allowed_payment_method_configurations' => 'int[]', 'billing_address' => '\Wallee\Sdk\Model\AddressCreate', + 'completion_behavior' => '\Wallee\Sdk\Model\TransactionCompletionBehavior', 'currency' => 'string', 'customer_email_address' => 'string', 'customer_id' => 'string', @@ -77,6 +78,7 @@ class AbstractTransactionPending implements ModelInterface, ArrayAccess 'allowed_payment_method_brands' => null, 'allowed_payment_method_configurations' => 'int64', 'billing_address' => null, + 'completion_behavior' => null, 'currency' => null, 'customer_email_address' => null, 'customer_id' => null, @@ -104,6 +106,7 @@ class AbstractTransactionPending implements ModelInterface, ArrayAccess 'allowed_payment_method_brands' => 'allowedPaymentMethodBrands', 'allowed_payment_method_configurations' => 'allowedPaymentMethodConfigurations', 'billing_address' => 'billingAddress', + 'completion_behavior' => 'completionBehavior', 'currency' => 'currency', 'customer_email_address' => 'customerEmailAddress', 'customer_id' => 'customerId', @@ -130,6 +133,7 @@ class AbstractTransactionPending implements ModelInterface, ArrayAccess 'allowed_payment_method_brands' => 'setAllowedPaymentMethodBrands', 'allowed_payment_method_configurations' => 'setAllowedPaymentMethodConfigurations', 'billing_address' => 'setBillingAddress', + 'completion_behavior' => 'setCompletionBehavior', 'currency' => 'setCurrency', 'customer_email_address' => 'setCustomerEmailAddress', 'customer_id' => 'setCustomerId', @@ -156,6 +160,7 @@ class AbstractTransactionPending implements ModelInterface, ArrayAccess 'allowed_payment_method_brands' => 'getAllowedPaymentMethodBrands', 'allowed_payment_method_configurations' => 'getAllowedPaymentMethodConfigurations', 'billing_address' => 'getBillingAddress', + 'completion_behavior' => 'getCompletionBehavior', 'currency' => 'getCurrency', 'customer_email_address' => 'getCustomerEmailAddress', 'customer_id' => 'getCustomerId', @@ -197,6 +202,8 @@ public function __construct(array $data = null) $this->container['billing_address'] = isset($data['billing_address']) ? $data['billing_address'] : null; + $this->container['completion_behavior'] = isset($data['completion_behavior']) ? $data['completion_behavior'] : null; + $this->container['currency'] = isset($data['currency']) ? $data['currency'] : null; $this->container['customer_email_address'] = isset($data['customer_email_address']) ? $data['customer_email_address'] : null; @@ -238,6 +245,38 @@ public function listInvalidProperties() { $invalidProperties = []; + if (!is_null($this->container['customer_email_address']) && (mb_strlen($this->container['customer_email_address']) > 254)) { + $invalidProperties[] = "invalid value for 'customer_email_address', the character length must be smaller than or equal to 254."; + } + + if (!is_null($this->container['failed_url']) && (mb_strlen($this->container['failed_url']) > 1000)) { + $invalidProperties[] = "invalid value for 'failed_url', the character length must be smaller than or equal to 1000."; + } + + if (!is_null($this->container['failed_url']) && (mb_strlen($this->container['failed_url']) < 9)) { + $invalidProperties[] = "invalid value for 'failed_url', the character length must be bigger than or equal to 9."; + } + + if (!is_null($this->container['invoice_merchant_reference']) && (mb_strlen($this->container['invoice_merchant_reference']) > 100)) { + $invalidProperties[] = "invalid value for 'invoice_merchant_reference', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['merchant_reference']) && (mb_strlen($this->container['merchant_reference']) > 100)) { + $invalidProperties[] = "invalid value for 'merchant_reference', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['shipping_method']) && (mb_strlen($this->container['shipping_method']) > 200)) { + $invalidProperties[] = "invalid value for 'shipping_method', the character length must be smaller than or equal to 200."; + } + + if (!is_null($this->container['success_url']) && (mb_strlen($this->container['success_url']) > 1000)) { + $invalidProperties[] = "invalid value for 'success_url', the character length must be smaller than or equal to 1000."; + } + + if (!is_null($this->container['success_url']) && (mb_strlen($this->container['success_url']) < 9)) { + $invalidProperties[] = "invalid value for 'success_url', the character length must be bigger than or equal to 9."; + } + return $invalidProperties; } @@ -393,6 +432,31 @@ public function setBillingAddress($billing_address) } + /** + * Gets completion_behavior + * + * @return \Wallee\Sdk\Model\TransactionCompletionBehavior + */ + public function getCompletionBehavior() + { + return $this->container['completion_behavior']; + } + + /** + * Sets completion_behavior + * + * @param \Wallee\Sdk\Model\TransactionCompletionBehavior $completion_behavior The completion behavior controls when the transaction is completed. + * + * @return $this + */ + public function setCompletionBehavior($completion_behavior) + { + $this->container['completion_behavior'] = $completion_behavior; + + return $this; + } + + /** * Gets currency * @@ -437,6 +501,10 @@ public function getCustomerEmailAddress() */ public function setCustomerEmailAddress($customer_email_address) { + if (!is_null($customer_email_address) && (mb_strlen($customer_email_address) > 254)) { + throw new \InvalidArgumentException('invalid length for $customer_email_address when calling AbstractTransactionPending., must be smaller than or equal to 254.'); + } + $this->container['customer_email_address'] = $customer_email_address; return $this; @@ -487,6 +555,13 @@ public function getFailedUrl() */ public function setFailedUrl($failed_url) { + if (!is_null($failed_url) && (mb_strlen($failed_url) > 1000)) { + throw new \InvalidArgumentException('invalid length for $failed_url when calling AbstractTransactionPending., must be smaller than or equal to 1000.'); + } + if (!is_null($failed_url) && (mb_strlen($failed_url) < 9)) { + throw new \InvalidArgumentException('invalid length for $failed_url when calling AbstractTransactionPending., must be bigger than or equal to 9.'); + } + $this->container['failed_url'] = $failed_url; return $this; @@ -512,6 +587,10 @@ public function getInvoiceMerchantReference() */ public function setInvoiceMerchantReference($invoice_merchant_reference) { + if (!is_null($invoice_merchant_reference) && (mb_strlen($invoice_merchant_reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $invoice_merchant_reference when calling AbstractTransactionPending., must be smaller than or equal to 100.'); + } + $this->container['invoice_merchant_reference'] = $invoice_merchant_reference; return $this; @@ -587,6 +666,10 @@ public function getMerchantReference() */ public function setMerchantReference($merchant_reference) { + if (!is_null($merchant_reference) && (mb_strlen($merchant_reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $merchant_reference when calling AbstractTransactionPending., must be smaller than or equal to 100.'); + } + $this->container['merchant_reference'] = $merchant_reference; return $this; @@ -662,6 +745,10 @@ public function getShippingMethod() */ public function setShippingMethod($shipping_method) { + if (!is_null($shipping_method) && (mb_strlen($shipping_method) > 200)) { + throw new \InvalidArgumentException('invalid length for $shipping_method when calling AbstractTransactionPending., must be smaller than or equal to 200.'); + } + $this->container['shipping_method'] = $shipping_method; return $this; @@ -687,6 +774,13 @@ public function getSuccessUrl() */ public function setSuccessUrl($success_url) { + if (!is_null($success_url) && (mb_strlen($success_url) > 1000)) { + throw new \InvalidArgumentException('invalid length for $success_url when calling AbstractTransactionPending., must be smaller than or equal to 1000.'); + } + if (!is_null($success_url) && (mb_strlen($success_url) < 9)) { + throw new \InvalidArgumentException('invalid length for $success_url when calling AbstractTransactionPending., must be bigger than or equal to 9.'); + } + $this->container['success_url'] = $success_url; return $this; diff --git a/wallee-sdk/lib/Model/AbstractWebhookListenerUpdate.php b/wallee-sdk/lib/Model/AbstractWebhookListenerUpdate.php index a9d2974..8c42d4f 100644 --- a/wallee-sdk/lib/Model/AbstractWebhookListenerUpdate.php +++ b/wallee-sdk/lib/Model/AbstractWebhookListenerUpdate.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 50)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 50."; + } + return $invalidProperties; } @@ -264,6 +268,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 50)) { + throw new \InvalidArgumentException('invalid length for $name when calling AbstractWebhookListenerUpdate., must be smaller than or equal to 50.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/AbstractWebhookUrlUpdate.php b/wallee-sdk/lib/Model/AbstractWebhookUrlUpdate.php index 6302326..c7b8440 100644 --- a/wallee-sdk/lib/Model/AbstractWebhookUrlUpdate.php +++ b/wallee-sdk/lib/Model/AbstractWebhookUrlUpdate.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 50)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 50."; + } + + if (!is_null($this->container['url']) && (mb_strlen($this->container['url']) > 500)) { + $invalidProperties[] = "invalid value for 'url', the character length must be smaller than or equal to 500."; + } + + if (!is_null($this->container['url']) && (mb_strlen($this->container['url']) < 9)) { + $invalidProperties[] = "invalid value for 'url', the character length must be bigger than or equal to 9."; + } + return $invalidProperties; } @@ -232,6 +244,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 50)) { + throw new \InvalidArgumentException('invalid length for $name when calling AbstractWebhookUrlUpdate., must be smaller than or equal to 50.'); + } + $this->container['name'] = $name; return $this; @@ -282,6 +298,13 @@ public function getUrl() */ public function setUrl($url) { + if (!is_null($url) && (mb_strlen($url) > 500)) { + throw new \InvalidArgumentException('invalid length for $url when calling AbstractWebhookUrlUpdate., must be smaller than or equal to 500.'); + } + if (!is_null($url) && (mb_strlen($url) < 9)) { + throw new \InvalidArgumentException('invalid length for $url when calling AbstractWebhookUrlUpdate., must be bigger than or equal to 9.'); + } + $this->container['url'] = $url; return $this; diff --git a/wallee-sdk/lib/Model/Account.php b/wallee-sdk/lib/Model/Account.php index 9d580bc..06828db 100644 --- a/wallee-sdk/lib/Model/Account.php +++ b/wallee-sdk/lib/Model/Account.php @@ -1,8 +1,8 @@ 'bool', 'active_or_restricted_active' => 'bool', + 'created_by' => 'int', + 'created_on' => '\DateTime', + 'deleted_by' => 'int', + 'deleted_on' => '\DateTime', 'id' => 'int', + 'last_modified_date' => '\DateTime', 'name' => 'string', 'parent_account' => '\Wallee\Sdk\Model\Account', 'planned_purge_date' => '\DateTime', @@ -71,7 +76,12 @@ class Account implements ModelInterface, ArrayAccess protected static $swaggerFormats = [ 'active' => null, 'active_or_restricted_active' => null, + 'created_by' => 'int64', + 'created_on' => 'date-time', + 'deleted_by' => 'int64', + 'deleted_on' => 'date-time', 'id' => 'int64', + 'last_modified_date' => 'date-time', 'name' => null, 'parent_account' => null, 'planned_purge_date' => 'date-time', @@ -92,7 +102,12 @@ class Account implements ModelInterface, ArrayAccess protected static $attributeMap = [ 'active' => 'active', 'active_or_restricted_active' => 'activeOrRestrictedActive', + 'created_by' => 'createdBy', + 'created_on' => 'createdOn', + 'deleted_by' => 'deletedBy', + 'deleted_on' => 'deletedOn', 'id' => 'id', + 'last_modified_date' => 'lastModifiedDate', 'name' => 'name', 'parent_account' => 'parentAccount', 'planned_purge_date' => 'plannedPurgeDate', @@ -112,7 +127,12 @@ class Account implements ModelInterface, ArrayAccess protected static $setters = [ 'active' => 'setActive', 'active_or_restricted_active' => 'setActiveOrRestrictedActive', + 'created_by' => 'setCreatedBy', + 'created_on' => 'setCreatedOn', + 'deleted_by' => 'setDeletedBy', + 'deleted_on' => 'setDeletedOn', 'id' => 'setId', + 'last_modified_date' => 'setLastModifiedDate', 'name' => 'setName', 'parent_account' => 'setParentAccount', 'planned_purge_date' => 'setPlannedPurgeDate', @@ -132,7 +152,12 @@ class Account implements ModelInterface, ArrayAccess protected static $getters = [ 'active' => 'getActive', 'active_or_restricted_active' => 'getActiveOrRestrictedActive', + 'created_by' => 'getCreatedBy', + 'created_on' => 'getCreatedOn', + 'deleted_by' => 'getDeletedBy', + 'deleted_on' => 'getDeletedOn', 'id' => 'getId', + 'last_modified_date' => 'getLastModifiedDate', 'name' => 'getName', 'parent_account' => 'getParentAccount', 'planned_purge_date' => 'getPlannedPurgeDate', @@ -166,8 +191,18 @@ public function __construct(array $data = null) $this->container['active_or_restricted_active'] = isset($data['active_or_restricted_active']) ? $data['active_or_restricted_active'] : null; + $this->container['created_by'] = isset($data['created_by']) ? $data['created_by'] : null; + + $this->container['created_on'] = isset($data['created_on']) ? $data['created_on'] : null; + + $this->container['deleted_by'] = isset($data['deleted_by']) ? $data['deleted_by'] : null; + + $this->container['deleted_on'] = isset($data['deleted_on']) ? $data['deleted_on'] : null; + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['last_modified_date'] = isset($data['last_modified_date']) ? $data['last_modified_date'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['parent_account'] = isset($data['parent_account']) ? $data['parent_account'] : null; @@ -197,6 +232,14 @@ public function listInvalidProperties() { $invalidProperties = []; + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) > 200)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 200."; + } + + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) < 3)) { + $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 3."; + } + return $invalidProperties; } @@ -327,6 +370,106 @@ public function setActiveOrRestrictedActive($active_or_restricted_active) } + /** + * Gets created_by + * + * @return int + */ + public function getCreatedBy() + { + return $this->container['created_by']; + } + + /** + * Sets created_by + * + * @param int $created_by The ID of the user who created this entity. + * + * @return $this + */ + public function setCreatedBy($created_by) + { + $this->container['created_by'] = $created_by; + + return $this; + } + + + /** + * Gets created_on + * + * @return \DateTime + */ + public function getCreatedOn() + { + return $this->container['created_on']; + } + + /** + * Sets created_on + * + * @param \DateTime $created_on The date and time when this entity was created. + * + * @return $this + */ + public function setCreatedOn($created_on) + { + $this->container['created_on'] = $created_on; + + return $this; + } + + + /** + * Gets deleted_by + * + * @return int + */ + public function getDeletedBy() + { + return $this->container['deleted_by']; + } + + /** + * Sets deleted_by + * + * @param int $deleted_by The ID of a user that deleted this entity. + * + * @return $this + */ + public function setDeletedBy($deleted_by) + { + $this->container['deleted_by'] = $deleted_by; + + return $this; + } + + + /** + * Gets deleted_on + * + * @return \DateTime + */ + public function getDeletedOn() + { + return $this->container['deleted_on']; + } + + /** + * Sets deleted_on + * + * @param \DateTime $deleted_on The date and time when this entity was deleted. + * + * @return $this + */ + public function setDeletedOn($deleted_on) + { + $this->container['deleted_on'] = $deleted_on; + + return $this; + } + + /** * Gets id * @@ -352,6 +495,31 @@ public function setId($id) } + /** + * Gets last_modified_date + * + * @return \DateTime + */ + public function getLastModifiedDate() + { + return $this->container['last_modified_date']; + } + + /** + * Sets last_modified_date + * + * @param \DateTime $last_modified_date + * + * @return $this + */ + public function setLastModifiedDate($last_modified_date) + { + $this->container['last_modified_date'] = $last_modified_date; + + return $this; + } + + /** * Gets name * @@ -371,6 +539,13 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 200)) { + throw new \InvalidArgumentException('invalid length for $name when calling Account., must be smaller than or equal to 200.'); + } + if (!is_null($name) && (mb_strlen($name) < 3)) { + throw new \InvalidArgumentException('invalid length for $name when calling Account., must be bigger than or equal to 3.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/AccountCreate.php b/wallee-sdk/lib/Model/AccountCreate.php index 938ea8f..efd1d8d 100644 --- a/wallee-sdk/lib/Model/AccountCreate.php +++ b/wallee-sdk/lib/Model/AccountCreate.php @@ -1,8 +1,8 @@ container['city']) && (mb_strlen($this->container['city']) > 100)) { + $invalidProperties[] = "invalid value for 'city', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['commercial_register_number']) && (mb_strlen($this->container['commercial_register_number']) > 100)) { + $invalidProperties[] = "invalid value for 'commercial_register_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['dependent_locality']) && (mb_strlen($this->container['dependent_locality']) > 100)) { + $invalidProperties[] = "invalid value for 'dependent_locality', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['email_address']) && (mb_strlen($this->container['email_address']) > 254)) { + $invalidProperties[] = "invalid value for 'email_address', the character length must be smaller than or equal to 254."; + } + + if (!is_null($this->container['family_name']) && (mb_strlen($this->container['family_name']) > 100)) { + $invalidProperties[] = "invalid value for 'family_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['given_name']) && (mb_strlen($this->container['given_name']) > 100)) { + $invalidProperties[] = "invalid value for 'given_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['mobile_phone_number']) && (mb_strlen($this->container['mobile_phone_number']) > 100)) { + $invalidProperties[] = "invalid value for 'mobile_phone_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['organization_name']) && (mb_strlen($this->container['organization_name']) > 100)) { + $invalidProperties[] = "invalid value for 'organization_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['phone_number']) && (mb_strlen($this->container['phone_number']) > 100)) { + $invalidProperties[] = "invalid value for 'phone_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['postcode']) && (mb_strlen($this->container['postcode']) > 40)) { + $invalidProperties[] = "invalid value for 'postcode', the character length must be smaller than or equal to 40."; + } + + if (!is_null($this->container['sales_tax_number']) && (mb_strlen($this->container['sales_tax_number']) > 100)) { + $invalidProperties[] = "invalid value for 'sales_tax_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['salutation']) && (mb_strlen($this->container['salutation']) > 20)) { + $invalidProperties[] = "invalid value for 'salutation', the character length must be smaller than or equal to 20."; + } + + if (!is_null($this->container['social_security_number']) && (mb_strlen($this->container['social_security_number']) > 100)) { + $invalidProperties[] = "invalid value for 'social_security_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['sorting_code']) && (mb_strlen($this->container['sorting_code']) > 100)) { + $invalidProperties[] = "invalid value for 'sorting_code', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['street']) && (mb_strlen($this->container['street']) > 300)) { + $invalidProperties[] = "invalid value for 'street', the character length must be smaller than or equal to 300."; + } + return $invalidProperties; } @@ -352,6 +412,10 @@ public function getCity() */ public function setCity($city) { + if (!is_null($city) && (mb_strlen($city) > 100)) { + throw new \InvalidArgumentException('invalid length for $city when calling Address., must be smaller than or equal to 100.'); + } + $this->container['city'] = $city; return $this; @@ -377,6 +441,10 @@ public function getCommercialRegisterNumber() */ public function setCommercialRegisterNumber($commercial_register_number) { + if (!is_null($commercial_register_number) && (mb_strlen($commercial_register_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $commercial_register_number when calling Address., must be smaller than or equal to 100.'); + } + $this->container['commercial_register_number'] = $commercial_register_number; return $this; @@ -452,6 +520,10 @@ public function getDependentLocality() */ public function setDependentLocality($dependent_locality) { + if (!is_null($dependent_locality) && (mb_strlen($dependent_locality) > 100)) { + throw new \InvalidArgumentException('invalid length for $dependent_locality when calling Address., must be smaller than or equal to 100.'); + } + $this->container['dependent_locality'] = $dependent_locality; return $this; @@ -477,6 +549,10 @@ public function getEmailAddress() */ public function setEmailAddress($email_address) { + if (!is_null($email_address) && (mb_strlen($email_address) > 254)) { + throw new \InvalidArgumentException('invalid length for $email_address when calling Address., must be smaller than or equal to 254.'); + } + $this->container['email_address'] = $email_address; return $this; @@ -502,6 +578,10 @@ public function getFamilyName() */ public function setFamilyName($family_name) { + if (!is_null($family_name) && (mb_strlen($family_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $family_name when calling Address., must be smaller than or equal to 100.'); + } + $this->container['family_name'] = $family_name; return $this; @@ -552,6 +632,10 @@ public function getGivenName() */ public function setGivenName($given_name) { + if (!is_null($given_name) && (mb_strlen($given_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $given_name when calling Address., must be smaller than or equal to 100.'); + } + $this->container['given_name'] = $given_name; return $this; @@ -602,6 +686,10 @@ public function getMobilePhoneNumber() */ public function setMobilePhoneNumber($mobile_phone_number) { + if (!is_null($mobile_phone_number) && (mb_strlen($mobile_phone_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $mobile_phone_number when calling Address., must be smaller than or equal to 100.'); + } + $this->container['mobile_phone_number'] = $mobile_phone_number; return $this; @@ -627,6 +715,10 @@ public function getOrganizationName() */ public function setOrganizationName($organization_name) { + if (!is_null($organization_name) && (mb_strlen($organization_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $organization_name when calling Address., must be smaller than or equal to 100.'); + } + $this->container['organization_name'] = $organization_name; return $this; @@ -652,6 +744,10 @@ public function getPhoneNumber() */ public function setPhoneNumber($phone_number) { + if (!is_null($phone_number) && (mb_strlen($phone_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $phone_number when calling Address., must be smaller than or equal to 100.'); + } + $this->container['phone_number'] = $phone_number; return $this; @@ -702,6 +798,10 @@ public function getPostcode() */ public function setPostcode($postcode) { + if (!is_null($postcode) && (mb_strlen($postcode) > 40)) { + throw new \InvalidArgumentException('invalid length for $postcode when calling Address., must be smaller than or equal to 40.'); + } + $this->container['postcode'] = $postcode; return $this; @@ -727,6 +827,10 @@ public function getSalesTaxNumber() */ public function setSalesTaxNumber($sales_tax_number) { + if (!is_null($sales_tax_number) && (mb_strlen($sales_tax_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $sales_tax_number when calling Address., must be smaller than or equal to 100.'); + } + $this->container['sales_tax_number'] = $sales_tax_number; return $this; @@ -752,6 +856,10 @@ public function getSalutation() */ public function setSalutation($salutation) { + if (!is_null($salutation) && (mb_strlen($salutation) > 20)) { + throw new \InvalidArgumentException('invalid length for $salutation when calling Address., must be smaller than or equal to 20.'); + } + $this->container['salutation'] = $salutation; return $this; @@ -777,6 +885,10 @@ public function getSocialSecurityNumber() */ public function setSocialSecurityNumber($social_security_number) { + if (!is_null($social_security_number) && (mb_strlen($social_security_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $social_security_number when calling Address., must be smaller than or equal to 100.'); + } + $this->container['social_security_number'] = $social_security_number; return $this; @@ -802,6 +914,10 @@ public function getSortingCode() */ public function setSortingCode($sorting_code) { + if (!is_null($sorting_code) && (mb_strlen($sorting_code) > 100)) { + throw new \InvalidArgumentException('invalid length for $sorting_code when calling Address., must be smaller than or equal to 100.'); + } + $this->container['sorting_code'] = $sorting_code; return $this; @@ -827,6 +943,10 @@ public function getStreet() */ public function setStreet($street) { + if (!is_null($street) && (mb_strlen($street) > 300)) { + throw new \InvalidArgumentException('invalid length for $street when calling Address., must be smaller than or equal to 300.'); + } + $this->container['street'] = $street; return $this; diff --git a/wallee-sdk/lib/Model/AddressCreate.php b/wallee-sdk/lib/Model/AddressCreate.php index fb816f0..5e94927 100644 --- a/wallee-sdk/lib/Model/AddressCreate.php +++ b/wallee-sdk/lib/Model/AddressCreate.php @@ -1,8 +1,8 @@ container['city']) && (mb_strlen($this->container['city']) > 100)) { + $invalidProperties[] = "invalid value for 'city', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['commercial_register_number']) && (mb_strlen($this->container['commercial_register_number']) > 100)) { + $invalidProperties[] = "invalid value for 'commercial_register_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['dependent_locality']) && (mb_strlen($this->container['dependent_locality']) > 100)) { + $invalidProperties[] = "invalid value for 'dependent_locality', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['email_address']) && (mb_strlen($this->container['email_address']) > 254)) { + $invalidProperties[] = "invalid value for 'email_address', the character length must be smaller than or equal to 254."; + } + + if (!is_null($this->container['family_name']) && (mb_strlen($this->container['family_name']) > 100)) { + $invalidProperties[] = "invalid value for 'family_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['given_name']) && (mb_strlen($this->container['given_name']) > 100)) { + $invalidProperties[] = "invalid value for 'given_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['mobile_phone_number']) && (mb_strlen($this->container['mobile_phone_number']) > 100)) { + $invalidProperties[] = "invalid value for 'mobile_phone_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['organization_name']) && (mb_strlen($this->container['organization_name']) > 100)) { + $invalidProperties[] = "invalid value for 'organization_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['phone_number']) && (mb_strlen($this->container['phone_number']) > 100)) { + $invalidProperties[] = "invalid value for 'phone_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['postcode']) && (mb_strlen($this->container['postcode']) > 40)) { + $invalidProperties[] = "invalid value for 'postcode', the character length must be smaller than or equal to 40."; + } + + if (!is_null($this->container['sales_tax_number']) && (mb_strlen($this->container['sales_tax_number']) > 100)) { + $invalidProperties[] = "invalid value for 'sales_tax_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['salutation']) && (mb_strlen($this->container['salutation']) > 20)) { + $invalidProperties[] = "invalid value for 'salutation', the character length must be smaller than or equal to 20."; + } + + if (!is_null($this->container['social_security_number']) && (mb_strlen($this->container['social_security_number']) > 100)) { + $invalidProperties[] = "invalid value for 'social_security_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['sorting_code']) && (mb_strlen($this->container['sorting_code']) > 100)) { + $invalidProperties[] = "invalid value for 'sorting_code', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['street']) && (mb_strlen($this->container['street']) > 300)) { + $invalidProperties[] = "invalid value for 'street', the character length must be smaller than or equal to 300."; + } + return $invalidProperties; } @@ -352,6 +412,10 @@ public function getCity() */ public function setCity($city) { + if (!is_null($city) && (mb_strlen($city) > 100)) { + throw new \InvalidArgumentException('invalid length for $city when calling AddressCreate., must be smaller than or equal to 100.'); + } + $this->container['city'] = $city; return $this; @@ -377,6 +441,10 @@ public function getCommercialRegisterNumber() */ public function setCommercialRegisterNumber($commercial_register_number) { + if (!is_null($commercial_register_number) && (mb_strlen($commercial_register_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $commercial_register_number when calling AddressCreate., must be smaller than or equal to 100.'); + } + $this->container['commercial_register_number'] = $commercial_register_number; return $this; @@ -452,6 +520,10 @@ public function getDependentLocality() */ public function setDependentLocality($dependent_locality) { + if (!is_null($dependent_locality) && (mb_strlen($dependent_locality) > 100)) { + throw new \InvalidArgumentException('invalid length for $dependent_locality when calling AddressCreate., must be smaller than or equal to 100.'); + } + $this->container['dependent_locality'] = $dependent_locality; return $this; @@ -477,6 +549,10 @@ public function getEmailAddress() */ public function setEmailAddress($email_address) { + if (!is_null($email_address) && (mb_strlen($email_address) > 254)) { + throw new \InvalidArgumentException('invalid length for $email_address when calling AddressCreate., must be smaller than or equal to 254.'); + } + $this->container['email_address'] = $email_address; return $this; @@ -502,6 +578,10 @@ public function getFamilyName() */ public function setFamilyName($family_name) { + if (!is_null($family_name) && (mb_strlen($family_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $family_name when calling AddressCreate., must be smaller than or equal to 100.'); + } + $this->container['family_name'] = $family_name; return $this; @@ -552,6 +632,10 @@ public function getGivenName() */ public function setGivenName($given_name) { + if (!is_null($given_name) && (mb_strlen($given_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $given_name when calling AddressCreate., must be smaller than or equal to 100.'); + } + $this->container['given_name'] = $given_name; return $this; @@ -602,6 +686,10 @@ public function getMobilePhoneNumber() */ public function setMobilePhoneNumber($mobile_phone_number) { + if (!is_null($mobile_phone_number) && (mb_strlen($mobile_phone_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $mobile_phone_number when calling AddressCreate., must be smaller than or equal to 100.'); + } + $this->container['mobile_phone_number'] = $mobile_phone_number; return $this; @@ -627,6 +715,10 @@ public function getOrganizationName() */ public function setOrganizationName($organization_name) { + if (!is_null($organization_name) && (mb_strlen($organization_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $organization_name when calling AddressCreate., must be smaller than or equal to 100.'); + } + $this->container['organization_name'] = $organization_name; return $this; @@ -652,6 +744,10 @@ public function getPhoneNumber() */ public function setPhoneNumber($phone_number) { + if (!is_null($phone_number) && (mb_strlen($phone_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $phone_number when calling AddressCreate., must be smaller than or equal to 100.'); + } + $this->container['phone_number'] = $phone_number; return $this; @@ -702,6 +798,10 @@ public function getPostcode() */ public function setPostcode($postcode) { + if (!is_null($postcode) && (mb_strlen($postcode) > 40)) { + throw new \InvalidArgumentException('invalid length for $postcode when calling AddressCreate., must be smaller than or equal to 40.'); + } + $this->container['postcode'] = $postcode; return $this; @@ -727,6 +827,10 @@ public function getSalesTaxNumber() */ public function setSalesTaxNumber($sales_tax_number) { + if (!is_null($sales_tax_number) && (mb_strlen($sales_tax_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $sales_tax_number when calling AddressCreate., must be smaller than or equal to 100.'); + } + $this->container['sales_tax_number'] = $sales_tax_number; return $this; @@ -752,6 +856,10 @@ public function getSalutation() */ public function setSalutation($salutation) { + if (!is_null($salutation) && (mb_strlen($salutation) > 20)) { + throw new \InvalidArgumentException('invalid length for $salutation when calling AddressCreate., must be smaller than or equal to 20.'); + } + $this->container['salutation'] = $salutation; return $this; @@ -777,6 +885,10 @@ public function getSocialSecurityNumber() */ public function setSocialSecurityNumber($social_security_number) { + if (!is_null($social_security_number) && (mb_strlen($social_security_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $social_security_number when calling AddressCreate., must be smaller than or equal to 100.'); + } + $this->container['social_security_number'] = $social_security_number; return $this; @@ -802,6 +914,10 @@ public function getSortingCode() */ public function setSortingCode($sorting_code) { + if (!is_null($sorting_code) && (mb_strlen($sorting_code) > 100)) { + throw new \InvalidArgumentException('invalid length for $sorting_code when calling AddressCreate., must be smaller than or equal to 100.'); + } + $this->container['sorting_code'] = $sorting_code; return $this; @@ -827,6 +943,10 @@ public function getStreet() */ public function setStreet($street) { + if (!is_null($street) && (mb_strlen($street) > 300)) { + throw new \InvalidArgumentException('invalid length for $street when calling AddressCreate., must be smaller than or equal to 300.'); + } + $this->container['street'] = $street; return $this; diff --git a/wallee-sdk/lib/Model/ApplicationUser.php b/wallee-sdk/lib/Model/ApplicationUser.php index 0d5f1f6..c520902 100644 --- a/wallee-sdk/lib/Model/ApplicationUser.php +++ b/wallee-sdk/lib/Model/ApplicationUser.php @@ -1,8 +1,8 @@ 'string', 'primary_account' => '\Wallee\Sdk\Model\Account', - 'request_limit' => 'int' + 'request_limit' => 'int', + 'scope' => '\Wallee\Sdk\Model\Scope' ]; /** @@ -60,7 +61,8 @@ class ApplicationUser extends User protected static $swaggerFormats = [ 'name' => null, 'primary_account' => null, - 'request_limit' => 'int64' + 'request_limit' => 'int64', + 'scope' => null ]; /** @@ -72,7 +74,8 @@ class ApplicationUser extends User protected static $attributeMap = [ 'name' => 'name', 'primary_account' => 'primaryAccount', - 'request_limit' => 'requestLimit' + 'request_limit' => 'requestLimit', + 'scope' => 'scope' ]; /** @@ -83,7 +86,8 @@ class ApplicationUser extends User protected static $setters = [ 'name' => 'setName', 'primary_account' => 'setPrimaryAccount', - 'request_limit' => 'setRequestLimit' + 'request_limit' => 'setRequestLimit', + 'scope' => 'setScope' ]; /** @@ -94,7 +98,8 @@ class ApplicationUser extends User protected static $getters = [ 'name' => 'getName', 'primary_account' => 'getPrimaryAccount', - 'request_limit' => 'getRequestLimit' + 'request_limit' => 'getRequestLimit', + 'scope' => 'getScope' ]; @@ -117,6 +122,8 @@ public function __construct(array $data = null) $this->container['request_limit'] = isset($data['request_limit']) ? $data['request_limit'] : null; + $this->container['scope'] = isset($data['scope']) ? $data['scope'] : null; + } /** @@ -128,6 +135,10 @@ public function listInvalidProperties() { $invalidProperties = parent::listInvalidProperties(); + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) > 256)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 256."; + } + return $invalidProperties; } @@ -227,6 +238,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 256)) { + throw new \InvalidArgumentException('invalid length for $name when calling ApplicationUser., must be smaller than or equal to 256.'); + } + $this->container['name'] = $name; return $this; @@ -282,6 +297,31 @@ public function setRequestLimit($request_limit) return $this; } + + /** + * Gets scope + * + * @return \Wallee\Sdk\Model\Scope + */ + public function getScope() + { + return $this->container['scope']; + } + + /** + * Sets scope + * + * @param \Wallee\Sdk\Model\Scope $scope The scope to which the user belongs to. + * + * @return $this + */ + public function setScope($scope) + { + $this->container['scope'] = $scope; + + return $this; + } + /** * Returns true if offset exists. False otherwise. * diff --git a/wallee-sdk/lib/Model/ApplicationUserCreate.php b/wallee-sdk/lib/Model/ApplicationUserCreate.php index 765ae5c..dcc9c24 100644 --- a/wallee-sdk/lib/Model/ApplicationUserCreate.php +++ b/wallee-sdk/lib/Model/ApplicationUserCreate.php @@ -1,8 +1,8 @@ '\DateTime', 'failure_reason' => '\Wallee\Sdk\Model\FailureReason', 'language' => 'string', + 'linked_space_id' => 'int', 'planned_purge_date' => '\DateTime', 'space_view_id' => 'int', 'state' => '\Wallee\Sdk\Model\ChargeState', @@ -70,6 +71,7 @@ class Charge extends TransactionAwareEntity 'created_on' => 'date-time', 'failure_reason' => null, 'language' => null, + 'linked_space_id' => 'int64', 'planned_purge_date' => 'date-time', 'space_view_id' => 'int64', 'state' => null, @@ -91,6 +93,7 @@ class Charge extends TransactionAwareEntity 'created_on' => 'createdOn', 'failure_reason' => 'failureReason', 'language' => 'language', + 'linked_space_id' => 'linkedSpaceId', 'planned_purge_date' => 'plannedPurgeDate', 'space_view_id' => 'spaceViewId', 'state' => 'state', @@ -111,6 +114,7 @@ class Charge extends TransactionAwareEntity 'created_on' => 'setCreatedOn', 'failure_reason' => 'setFailureReason', 'language' => 'setLanguage', + 'linked_space_id' => 'setLinkedSpaceId', 'planned_purge_date' => 'setPlannedPurgeDate', 'space_view_id' => 'setSpaceViewId', 'state' => 'setState', @@ -131,6 +135,7 @@ class Charge extends TransactionAwareEntity 'created_on' => 'getCreatedOn', 'failure_reason' => 'getFailureReason', 'language' => 'getLanguage', + 'linked_space_id' => 'getLinkedSpaceId', 'planned_purge_date' => 'getPlannedPurgeDate', 'space_view_id' => 'getSpaceViewId', 'state' => 'getState', @@ -162,6 +167,8 @@ public function __construct(array $data = null) $this->container['language'] = isset($data['language']) ? $data['language'] : null; + $this->container['linked_space_id'] = isset($data['linked_space_id']) ? $data['linked_space_id'] : null; + $this->container['planned_purge_date'] = isset($data['planned_purge_date']) ? $data['planned_purge_date'] : null; $this->container['space_view_id'] = isset($data['space_view_id']) ? $data['space_view_id'] : null; @@ -346,6 +353,31 @@ public function setLanguage($language) } + /** + * Gets linked_space_id + * + * @return int + */ + public function getLinkedSpaceId() + { + return $this->container['linked_space_id']; + } + + /** + * Sets linked_space_id + * + * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * + * @return $this + */ + public function setLinkedSpaceId($linked_space_id) + { + $this->container['linked_space_id'] = $linked_space_id; + + return $this; + } + + /** * Gets planned_purge_date * diff --git a/wallee-sdk/lib/Model/ChargeAttempt.php b/wallee-sdk/lib/Model/ChargeAttempt.php index c43b6a9..8032cfc 100644 --- a/wallee-sdk/lib/Model/ChargeAttempt.php +++ b/wallee-sdk/lib/Model/ChargeAttempt.php @@ -1,8 +1,8 @@ '\Wallee\Sdk\Model\Charge', + 'completion_behavior' => '\Wallee\Sdk\Model\TransactionCompletionBehavior', 'connector_configuration' => '\Wallee\Sdk\Model\PaymentConnectorConfiguration', 'created_on' => '\DateTime', 'environment' => '\Wallee\Sdk\Model\ChargeAttemptEnvironment', @@ -57,6 +58,7 @@ class ChargeAttempt extends TransactionAwareEntity 'invocation' => '\Wallee\Sdk\Model\ConnectorInvocation', 'labels' => '\Wallee\Sdk\Model\Label[]', 'language' => 'string', + 'linked_space_id' => 'int', 'next_update_on' => '\DateTime', 'planned_purge_date' => '\DateTime', 'redirection_url' => 'string', @@ -79,6 +81,7 @@ class ChargeAttempt extends TransactionAwareEntity */ protected static $swaggerFormats = [ 'charge' => null, + 'completion_behavior' => null, 'connector_configuration' => null, 'created_on' => 'date-time', 'environment' => null, @@ -88,6 +91,7 @@ class ChargeAttempt extends TransactionAwareEntity 'invocation' => null, 'labels' => null, 'language' => null, + 'linked_space_id' => 'int64', 'next_update_on' => 'date-time', 'planned_purge_date' => 'date-time', 'redirection_url' => null, @@ -111,6 +115,7 @@ class ChargeAttempt extends TransactionAwareEntity */ protected static $attributeMap = [ 'charge' => 'charge', + 'completion_behavior' => 'completionBehavior', 'connector_configuration' => 'connectorConfiguration', 'created_on' => 'createdOn', 'environment' => 'environment', @@ -120,6 +125,7 @@ class ChargeAttempt extends TransactionAwareEntity 'invocation' => 'invocation', 'labels' => 'labels', 'language' => 'language', + 'linked_space_id' => 'linkedSpaceId', 'next_update_on' => 'nextUpdateOn', 'planned_purge_date' => 'plannedPurgeDate', 'redirection_url' => 'redirectionUrl', @@ -142,6 +148,7 @@ class ChargeAttempt extends TransactionAwareEntity */ protected static $setters = [ 'charge' => 'setCharge', + 'completion_behavior' => 'setCompletionBehavior', 'connector_configuration' => 'setConnectorConfiguration', 'created_on' => 'setCreatedOn', 'environment' => 'setEnvironment', @@ -151,6 +158,7 @@ class ChargeAttempt extends TransactionAwareEntity 'invocation' => 'setInvocation', 'labels' => 'setLabels', 'language' => 'setLanguage', + 'linked_space_id' => 'setLinkedSpaceId', 'next_update_on' => 'setNextUpdateOn', 'planned_purge_date' => 'setPlannedPurgeDate', 'redirection_url' => 'setRedirectionUrl', @@ -173,6 +181,7 @@ class ChargeAttempt extends TransactionAwareEntity */ protected static $getters = [ 'charge' => 'getCharge', + 'completion_behavior' => 'getCompletionBehavior', 'connector_configuration' => 'getConnectorConfiguration', 'created_on' => 'getCreatedOn', 'environment' => 'getEnvironment', @@ -182,6 +191,7 @@ class ChargeAttempt extends TransactionAwareEntity 'invocation' => 'getInvocation', 'labels' => 'getLabels', 'language' => 'getLanguage', + 'linked_space_id' => 'getLinkedSpaceId', 'next_update_on' => 'getNextUpdateOn', 'planned_purge_date' => 'getPlannedPurgeDate', 'redirection_url' => 'getRedirectionUrl', @@ -213,6 +223,8 @@ public function __construct(array $data = null) $this->container['charge'] = isset($data['charge']) ? $data['charge'] : null; + $this->container['completion_behavior'] = isset($data['completion_behavior']) ? $data['completion_behavior'] : null; + $this->container['connector_configuration'] = isset($data['connector_configuration']) ? $data['connector_configuration'] : null; $this->container['created_on'] = isset($data['created_on']) ? $data['created_on'] : null; @@ -231,6 +243,8 @@ public function __construct(array $data = null) $this->container['language'] = isset($data['language']) ? $data['language'] : null; + $this->container['linked_space_id'] = isset($data['linked_space_id']) ? $data['linked_space_id'] : null; + $this->container['next_update_on'] = isset($data['next_update_on']) ? $data['next_update_on'] : null; $this->container['planned_purge_date'] = isset($data['planned_purge_date']) ? $data['planned_purge_date'] : null; @@ -268,6 +282,10 @@ public function listInvalidProperties() { $invalidProperties = parent::listInvalidProperties(); + if (!is_null($this->container['user_failure_message']) && (mb_strlen($this->container['user_failure_message']) > 2000)) { + $invalidProperties[] = "invalid value for 'user_failure_message', the character length must be smaller than or equal to 2000."; + } + return $invalidProperties; } @@ -373,6 +391,31 @@ public function setCharge($charge) } + /** + * Gets completion_behavior + * + * @return \Wallee\Sdk\Model\TransactionCompletionBehavior + */ + public function getCompletionBehavior() + { + return $this->container['completion_behavior']; + } + + /** + * Sets completion_behavior + * + * @param \Wallee\Sdk\Model\TransactionCompletionBehavior $completion_behavior + * + * @return $this + */ + public function setCompletionBehavior($completion_behavior) + { + $this->container['completion_behavior'] = $completion_behavior; + + return $this; + } + + /** * Gets connector_configuration * @@ -598,6 +641,31 @@ public function setLanguage($language) } + /** + * Gets linked_space_id + * + * @return int + */ + public function getLinkedSpaceId() + { + return $this->container['linked_space_id']; + } + + /** + * Sets linked_space_id + * + * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * + * @return $this + */ + public function setLinkedSpaceId($linked_space_id) + { + $this->container['linked_space_id'] = $linked_space_id; + + return $this; + } + + /** * Gets next_update_on * @@ -892,6 +960,10 @@ public function getUserFailureMessage() */ public function setUserFailureMessage($user_failure_message) { + if (!is_null($user_failure_message) && (mb_strlen($user_failure_message) > 2000)) { + throw new \InvalidArgumentException('invalid length for $user_failure_message when calling ChargeAttempt., must be smaller than or equal to 2000.'); + } + $this->container['user_failure_message'] = $user_failure_message; return $this; diff --git a/wallee-sdk/lib/Model/ChargeAttemptEnvironment.php b/wallee-sdk/lib/Model/ChargeAttemptEnvironment.php index eadd675..4d65380 100644 --- a/wallee-sdk/lib/Model/ChargeAttemptEnvironment.php +++ b/wallee-sdk/lib/Model/ChargeAttemptEnvironment.php @@ -1,8 +1,8 @@ 'int', 'configuration' => '\Wallee\Sdk\Model\ChargeFlowLevelConfiguration', 'created_on' => '\DateTime', + 'linked_space_id' => 'int', 'planned_purge_date' => '\DateTime', 'state' => '\Wallee\Sdk\Model\ChargeFlowLevelState', 'synchronous_charge' => 'int', @@ -68,6 +69,7 @@ class ChargeFlowLevel extends TransactionAwareEntity 'asynchronous_charge' => 'int64', 'configuration' => null, 'created_on' => 'date-time', + 'linked_space_id' => 'int64', 'planned_purge_date' => 'date-time', 'state' => null, 'synchronous_charge' => 'int64', @@ -87,6 +89,7 @@ class ChargeFlowLevel extends TransactionAwareEntity 'asynchronous_charge' => 'asynchronousCharge', 'configuration' => 'configuration', 'created_on' => 'createdOn', + 'linked_space_id' => 'linkedSpaceId', 'planned_purge_date' => 'plannedPurgeDate', 'state' => 'state', 'synchronous_charge' => 'synchronousCharge', @@ -105,6 +108,7 @@ class ChargeFlowLevel extends TransactionAwareEntity 'asynchronous_charge' => 'setAsynchronousCharge', 'configuration' => 'setConfiguration', 'created_on' => 'setCreatedOn', + 'linked_space_id' => 'setLinkedSpaceId', 'planned_purge_date' => 'setPlannedPurgeDate', 'state' => 'setState', 'synchronous_charge' => 'setSynchronousCharge', @@ -123,6 +127,7 @@ class ChargeFlowLevel extends TransactionAwareEntity 'asynchronous_charge' => 'getAsynchronousCharge', 'configuration' => 'getConfiguration', 'created_on' => 'getCreatedOn', + 'linked_space_id' => 'getLinkedSpaceId', 'planned_purge_date' => 'getPlannedPurgeDate', 'state' => 'getState', 'synchronous_charge' => 'getSynchronousCharge', @@ -152,6 +157,8 @@ public function __construct(array $data = null) $this->container['created_on'] = isset($data['created_on']) ? $data['created_on'] : null; + $this->container['linked_space_id'] = isset($data['linked_space_id']) ? $data['linked_space_id'] : null; + $this->container['planned_purge_date'] = isset($data['planned_purge_date']) ? $data['planned_purge_date'] : null; $this->container['state'] = isset($data['state']) ? $data['state'] : null; @@ -332,6 +339,31 @@ public function setCreatedOn($created_on) } + /** + * Gets linked_space_id + * + * @return int + */ + public function getLinkedSpaceId() + { + return $this->container['linked_space_id']; + } + + /** + * Sets linked_space_id + * + * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * + * @return $this + */ + public function setLinkedSpaceId($linked_space_id) + { + $this->container['linked_space_id'] = $linked_space_id; + + return $this; + } + + /** * Gets planned_purge_date * diff --git a/wallee-sdk/lib/Model/ChargeFlowLevelConfiguration.php b/wallee-sdk/lib/Model/ChargeFlowLevelConfiguration.php index b1d01b7..c6da027 100644 --- a/wallee-sdk/lib/Model/ChargeFlowLevelConfiguration.php +++ b/wallee-sdk/lib/Model/ChargeFlowLevelConfiguration.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 100)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -357,6 +361,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 100)) { + throw new \InvalidArgumentException('invalid length for $name when calling ChargeFlowLevelConfiguration., must be smaller than or equal to 100.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/ChargeFlowLevelConfigurationType.php b/wallee-sdk/lib/Model/ChargeFlowLevelConfigurationType.php index fb80cf6..861373a 100644 --- a/wallee-sdk/lib/Model/ChargeFlowLevelConfigurationType.php +++ b/wallee-sdk/lib/Model/ChargeFlowLevelConfigurationType.php @@ -1,8 +1,8 @@ '\Wallee\Sdk\Model\ChargeFlowLevel', + 'linked_space_id' => 'int', 'payment_link' => 'string' ]; @@ -58,6 +59,7 @@ class ChargeFlowLevelPaymentLink extends TransactionAwareEntity */ protected static $swaggerFormats = [ 'charge_flow_level' => null, + 'linked_space_id' => 'int64', 'payment_link' => null ]; @@ -69,6 +71,7 @@ class ChargeFlowLevelPaymentLink extends TransactionAwareEntity */ protected static $attributeMap = [ 'charge_flow_level' => 'chargeFlowLevel', + 'linked_space_id' => 'linkedSpaceId', 'payment_link' => 'paymentLink' ]; @@ -79,6 +82,7 @@ class ChargeFlowLevelPaymentLink extends TransactionAwareEntity */ protected static $setters = [ 'charge_flow_level' => 'setChargeFlowLevel', + 'linked_space_id' => 'setLinkedSpaceId', 'payment_link' => 'setPaymentLink' ]; @@ -89,6 +93,7 @@ class ChargeFlowLevelPaymentLink extends TransactionAwareEntity */ protected static $getters = [ 'charge_flow_level' => 'getChargeFlowLevel', + 'linked_space_id' => 'getLinkedSpaceId', 'payment_link' => 'getPaymentLink' ]; @@ -108,6 +113,8 @@ public function __construct(array $data = null) $this->container['charge_flow_level'] = isset($data['charge_flow_level']) ? $data['charge_flow_level'] : null; + $this->container['linked_space_id'] = isset($data['linked_space_id']) ? $data['linked_space_id'] : null; + $this->container['payment_link'] = isset($data['payment_link']) ? $data['payment_link'] : null; } @@ -226,6 +233,31 @@ public function setChargeFlowLevel($charge_flow_level) } + /** + * Gets linked_space_id + * + * @return int + */ + public function getLinkedSpaceId() + { + return $this->container['linked_space_id']; + } + + /** + * Sets linked_space_id + * + * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * + * @return $this + */ + public function setLinkedSpaceId($linked_space_id) + { + $this->container['linked_space_id'] = $linked_space_id; + + return $this; + } + + /** * Gets payment_link * diff --git a/wallee-sdk/lib/Model/ChargeFlowLevelState.php b/wallee-sdk/lib/Model/ChargeFlowLevelState.php index 7dd22a2..a6fa764 100644 --- a/wallee-sdk/lib/Model/ChargeFlowLevelState.php +++ b/wallee-sdk/lib/Model/ChargeFlowLevelState.php @@ -1,8 +1,8 @@ container['unique_id']) && (mb_strlen($this->container['unique_id']) > 200)) { + $invalidProperties[] = "invalid value for 'unique_id', the character length must be smaller than or equal to 200."; + } + return $invalidProperties; } @@ -283,6 +287,10 @@ public function getUniqueId() */ public function setUniqueId($unique_id) { + if (!is_null($unique_id) && (mb_strlen($unique_id) > 200)) { + throw new \InvalidArgumentException('invalid length for $unique_id when calling CompletionLineItem., must be smaller than or equal to 200.'); + } + $this->container['unique_id'] = $unique_id; return $this; diff --git a/wallee-sdk/lib/Model/CompletionLineItemCreate.php b/wallee-sdk/lib/Model/CompletionLineItemCreate.php index b792c7d..14b4ece 100644 --- a/wallee-sdk/lib/Model/CompletionLineItemCreate.php +++ b/wallee-sdk/lib/Model/CompletionLineItemCreate.php @@ -1,8 +1,8 @@ container['unique_id'] === null) { $invalidProperties[] = "'unique_id' can't be null"; } + if ((mb_strlen($this->container['unique_id']) > 200)) { + $invalidProperties[] = "invalid value for 'unique_id', the character length must be smaller than or equal to 200."; + } + return $invalidProperties; } @@ -292,6 +296,10 @@ public function getUniqueId() */ public function setUniqueId($unique_id) { + if ((mb_strlen($unique_id) > 200)) { + throw new \InvalidArgumentException('invalid length for $unique_id when calling CompletionLineItemCreate., must be smaller than or equal to 200.'); + } + $this->container['unique_id'] = $unique_id; return $this; diff --git a/wallee-sdk/lib/Model/Condition.php b/wallee-sdk/lib/Model/Condition.php index fe1311f..46a7a18 100644 --- a/wallee-sdk/lib/Model/Condition.php +++ b/wallee-sdk/lib/Model/Condition.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 100)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -336,6 +340,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 100)) { + throw new \InvalidArgumentException('invalid length for $name when calling Condition., must be smaller than or equal to 100.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/ConditionType.php b/wallee-sdk/lib/Model/ConditionType.php index 0ff3136..4e1ee12 100644 --- a/wallee-sdk/lib/Model/ConditionType.php +++ b/wallee-sdk/lib/Model/ConditionType.php @@ -1,8 +1,8 @@ '\DateTime', + 'linked_space_id' => 'int', 'planned_purge_date' => '\DateTime', 'stage' => '\Wallee\Sdk\Model\ConnectorInvocationStage', 'time_took_in_milliseconds' => 'int', @@ -62,6 +63,7 @@ class ConnectorInvocation extends TransactionAwareEntity */ protected static $swaggerFormats = [ 'created_on' => 'date-time', + 'linked_space_id' => 'int64', 'planned_purge_date' => 'date-time', 'stage' => null, 'time_took_in_milliseconds' => 'int64', @@ -77,6 +79,7 @@ class ConnectorInvocation extends TransactionAwareEntity */ protected static $attributeMap = [ 'created_on' => 'createdOn', + 'linked_space_id' => 'linkedSpaceId', 'planned_purge_date' => 'plannedPurgeDate', 'stage' => 'stage', 'time_took_in_milliseconds' => 'timeTookInMilliseconds', @@ -91,6 +94,7 @@ class ConnectorInvocation extends TransactionAwareEntity */ protected static $setters = [ 'created_on' => 'setCreatedOn', + 'linked_space_id' => 'setLinkedSpaceId', 'planned_purge_date' => 'setPlannedPurgeDate', 'stage' => 'setStage', 'time_took_in_milliseconds' => 'setTimeTookInMilliseconds', @@ -105,6 +109,7 @@ class ConnectorInvocation extends TransactionAwareEntity */ protected static $getters = [ 'created_on' => 'getCreatedOn', + 'linked_space_id' => 'getLinkedSpaceId', 'planned_purge_date' => 'getPlannedPurgeDate', 'stage' => 'getStage', 'time_took_in_milliseconds' => 'getTimeTookInMilliseconds', @@ -128,6 +133,8 @@ public function __construct(array $data = null) $this->container['created_on'] = isset($data['created_on']) ? $data['created_on'] : null; + $this->container['linked_space_id'] = isset($data['linked_space_id']) ? $data['linked_space_id'] : null; + $this->container['planned_purge_date'] = isset($data['planned_purge_date']) ? $data['planned_purge_date'] : null; $this->container['stage'] = isset($data['stage']) ? $data['stage'] : null; @@ -254,6 +261,31 @@ public function setCreatedOn($created_on) } + /** + * Gets linked_space_id + * + * @return int + */ + public function getLinkedSpaceId() + { + return $this->container['linked_space_id']; + } + + /** + * Sets linked_space_id + * + * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * + * @return $this + */ + public function setLinkedSpaceId($linked_space_id) + { + $this->container['linked_space_id'] = $linked_space_id; + + return $this; + } + + /** * Gets planned_purge_date * diff --git a/wallee-sdk/lib/Model/ConnectorInvocationStage.php b/wallee-sdk/lib/Model/ConnectorInvocationStage.php index 4e49494..5243e01 100644 --- a/wallee-sdk/lib/Model/ConnectorInvocationStage.php +++ b/wallee-sdk/lib/Model/ConnectorInvocationStage.php @@ -1,8 +1,8 @@ container['customer_id']) && (mb_strlen($this->container['customer_id']) > 100)) { + $invalidProperties[] = "invalid value for 'customer_id', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['email_address']) && (mb_strlen($this->container['email_address']) > 254)) { + $invalidProperties[] = "invalid value for 'email_address', the character length must be smaller than or equal to 254."; + } + + if (!is_null($this->container['family_name']) && (mb_strlen($this->container['family_name']) > 100)) { + $invalidProperties[] = "invalid value for 'family_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['given_name']) && (mb_strlen($this->container['given_name']) > 100)) { + $invalidProperties[] = "invalid value for 'given_name', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -314,6 +330,10 @@ public function getCustomerId() */ public function setCustomerId($customer_id) { + if (!is_null($customer_id) && (mb_strlen($customer_id) > 100)) { + throw new \InvalidArgumentException('invalid length for $customer_id when calling Customer., must be smaller than or equal to 100.'); + } + $this->container['customer_id'] = $customer_id; return $this; @@ -339,6 +359,10 @@ public function getEmailAddress() */ public function setEmailAddress($email_address) { + if (!is_null($email_address) && (mb_strlen($email_address) > 254)) { + throw new \InvalidArgumentException('invalid length for $email_address when calling Customer., must be smaller than or equal to 254.'); + } + $this->container['email_address'] = $email_address; return $this; @@ -364,6 +388,10 @@ public function getFamilyName() */ public function setFamilyName($family_name) { + if (!is_null($family_name) && (mb_strlen($family_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $family_name when calling Customer., must be smaller than or equal to 100.'); + } + $this->container['family_name'] = $family_name; return $this; @@ -389,6 +417,10 @@ public function getGivenName() */ public function setGivenName($given_name) { + if (!is_null($given_name) && (mb_strlen($given_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $given_name when calling Customer., must be smaller than or equal to 100.'); + } + $this->container['given_name'] = $given_name; return $this; diff --git a/wallee-sdk/lib/Model/CustomerActive.php b/wallee-sdk/lib/Model/CustomerActive.php index 5db89b6..80724e2 100644 --- a/wallee-sdk/lib/Model/CustomerActive.php +++ b/wallee-sdk/lib/Model/CustomerActive.php @@ -1,8 +1,8 @@ container['content']) && (mb_strlen($this->container['content']) > 262144)) { + $invalidProperties[] = "invalid value for 'content', the character length must be smaller than or equal to 262144."; + } + return $invalidProperties; } @@ -282,6 +286,10 @@ public function getContent() */ public function setContent($content) { + if (!is_null($content) && (mb_strlen($content) > 262144)) { + throw new \InvalidArgumentException('invalid length for $content when calling CustomerComment., must be smaller than or equal to 262144.'); + } + $this->container['content'] = $content; return $this; diff --git a/wallee-sdk/lib/Model/CustomerCommentActive.php b/wallee-sdk/lib/Model/CustomerCommentActive.php index 13f4b1b..dcf9e1f 100644 --- a/wallee-sdk/lib/Model/CustomerCommentActive.php +++ b/wallee-sdk/lib/Model/CustomerCommentActive.php @@ -1,8 +1,8 @@ container['city']) && (mb_strlen($this->container['city']) > 100)) { + $invalidProperties[] = "invalid value for 'city', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['commercial_register_number']) && (mb_strlen($this->container['commercial_register_number']) > 100)) { + $invalidProperties[] = "invalid value for 'commercial_register_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['dependent_locality']) && (mb_strlen($this->container['dependent_locality']) > 100)) { + $invalidProperties[] = "invalid value for 'dependent_locality', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['email_address']) && (mb_strlen($this->container['email_address']) > 254)) { + $invalidProperties[] = "invalid value for 'email_address', the character length must be smaller than or equal to 254."; + } + + if (!is_null($this->container['family_name']) && (mb_strlen($this->container['family_name']) > 100)) { + $invalidProperties[] = "invalid value for 'family_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['given_name']) && (mb_strlen($this->container['given_name']) > 100)) { + $invalidProperties[] = "invalid value for 'given_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['mobile_phone_number']) && (mb_strlen($this->container['mobile_phone_number']) > 100)) { + $invalidProperties[] = "invalid value for 'mobile_phone_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['organization_name']) && (mb_strlen($this->container['organization_name']) > 100)) { + $invalidProperties[] = "invalid value for 'organization_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['phone_number']) && (mb_strlen($this->container['phone_number']) > 100)) { + $invalidProperties[] = "invalid value for 'phone_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['postcode']) && (mb_strlen($this->container['postcode']) > 40)) { + $invalidProperties[] = "invalid value for 'postcode', the character length must be smaller than or equal to 40."; + } + + if (!is_null($this->container['sales_tax_number']) && (mb_strlen($this->container['sales_tax_number']) > 100)) { + $invalidProperties[] = "invalid value for 'sales_tax_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['salutation']) && (mb_strlen($this->container['salutation']) > 20)) { + $invalidProperties[] = "invalid value for 'salutation', the character length must be smaller than or equal to 20."; + } + + if (!is_null($this->container['social_security_number']) && (mb_strlen($this->container['social_security_number']) > 100)) { + $invalidProperties[] = "invalid value for 'social_security_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['sorting_code']) && (mb_strlen($this->container['sorting_code']) > 100)) { + $invalidProperties[] = "invalid value for 'sorting_code', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['street']) && (mb_strlen($this->container['street']) > 300)) { + $invalidProperties[] = "invalid value for 'street', the character length must be smaller than or equal to 300."; + } + return $invalidProperties; } @@ -352,6 +412,10 @@ public function getCity() */ public function setCity($city) { + if (!is_null($city) && (mb_strlen($city) > 100)) { + throw new \InvalidArgumentException('invalid length for $city when calling CustomerPostalAddress., must be smaller than or equal to 100.'); + } + $this->container['city'] = $city; return $this; @@ -377,6 +441,10 @@ public function getCommercialRegisterNumber() */ public function setCommercialRegisterNumber($commercial_register_number) { + if (!is_null($commercial_register_number) && (mb_strlen($commercial_register_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $commercial_register_number when calling CustomerPostalAddress., must be smaller than or equal to 100.'); + } + $this->container['commercial_register_number'] = $commercial_register_number; return $this; @@ -452,6 +520,10 @@ public function getDependentLocality() */ public function setDependentLocality($dependent_locality) { + if (!is_null($dependent_locality) && (mb_strlen($dependent_locality) > 100)) { + throw new \InvalidArgumentException('invalid length for $dependent_locality when calling CustomerPostalAddress., must be smaller than or equal to 100.'); + } + $this->container['dependent_locality'] = $dependent_locality; return $this; @@ -477,6 +549,10 @@ public function getEmailAddress() */ public function setEmailAddress($email_address) { + if (!is_null($email_address) && (mb_strlen($email_address) > 254)) { + throw new \InvalidArgumentException('invalid length for $email_address when calling CustomerPostalAddress., must be smaller than or equal to 254.'); + } + $this->container['email_address'] = $email_address; return $this; @@ -502,6 +578,10 @@ public function getFamilyName() */ public function setFamilyName($family_name) { + if (!is_null($family_name) && (mb_strlen($family_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $family_name when calling CustomerPostalAddress., must be smaller than or equal to 100.'); + } + $this->container['family_name'] = $family_name; return $this; @@ -552,6 +632,10 @@ public function getGivenName() */ public function setGivenName($given_name) { + if (!is_null($given_name) && (mb_strlen($given_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $given_name when calling CustomerPostalAddress., must be smaller than or equal to 100.'); + } + $this->container['given_name'] = $given_name; return $this; @@ -602,6 +686,10 @@ public function getMobilePhoneNumber() */ public function setMobilePhoneNumber($mobile_phone_number) { + if (!is_null($mobile_phone_number) && (mb_strlen($mobile_phone_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $mobile_phone_number when calling CustomerPostalAddress., must be smaller than or equal to 100.'); + } + $this->container['mobile_phone_number'] = $mobile_phone_number; return $this; @@ -627,6 +715,10 @@ public function getOrganizationName() */ public function setOrganizationName($organization_name) { + if (!is_null($organization_name) && (mb_strlen($organization_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $organization_name when calling CustomerPostalAddress., must be smaller than or equal to 100.'); + } + $this->container['organization_name'] = $organization_name; return $this; @@ -652,6 +744,10 @@ public function getPhoneNumber() */ public function setPhoneNumber($phone_number) { + if (!is_null($phone_number) && (mb_strlen($phone_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $phone_number when calling CustomerPostalAddress., must be smaller than or equal to 100.'); + } + $this->container['phone_number'] = $phone_number; return $this; @@ -702,6 +798,10 @@ public function getPostcode() */ public function setPostcode($postcode) { + if (!is_null($postcode) && (mb_strlen($postcode) > 40)) { + throw new \InvalidArgumentException('invalid length for $postcode when calling CustomerPostalAddress., must be smaller than or equal to 40.'); + } + $this->container['postcode'] = $postcode; return $this; @@ -727,6 +827,10 @@ public function getSalesTaxNumber() */ public function setSalesTaxNumber($sales_tax_number) { + if (!is_null($sales_tax_number) && (mb_strlen($sales_tax_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $sales_tax_number when calling CustomerPostalAddress., must be smaller than or equal to 100.'); + } + $this->container['sales_tax_number'] = $sales_tax_number; return $this; @@ -752,6 +856,10 @@ public function getSalutation() */ public function setSalutation($salutation) { + if (!is_null($salutation) && (mb_strlen($salutation) > 20)) { + throw new \InvalidArgumentException('invalid length for $salutation when calling CustomerPostalAddress., must be smaller than or equal to 20.'); + } + $this->container['salutation'] = $salutation; return $this; @@ -777,6 +885,10 @@ public function getSocialSecurityNumber() */ public function setSocialSecurityNumber($social_security_number) { + if (!is_null($social_security_number) && (mb_strlen($social_security_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $social_security_number when calling CustomerPostalAddress., must be smaller than or equal to 100.'); + } + $this->container['social_security_number'] = $social_security_number; return $this; @@ -802,6 +914,10 @@ public function getSortingCode() */ public function setSortingCode($sorting_code) { + if (!is_null($sorting_code) && (mb_strlen($sorting_code) > 100)) { + throw new \InvalidArgumentException('invalid length for $sorting_code when calling CustomerPostalAddress., must be smaller than or equal to 100.'); + } + $this->container['sorting_code'] = $sorting_code; return $this; @@ -827,6 +943,10 @@ public function getStreet() */ public function setStreet($street) { + if (!is_null($street) && (mb_strlen($street) > 300)) { + throw new \InvalidArgumentException('invalid length for $street when calling CustomerPostalAddress., must be smaller than or equal to 300.'); + } + $this->container['street'] = $street; return $this; diff --git a/wallee-sdk/lib/Model/CustomerPostalAddressCreate.php b/wallee-sdk/lib/Model/CustomerPostalAddressCreate.php index d6328e3..c518401 100644 --- a/wallee-sdk/lib/Model/CustomerPostalAddressCreate.php +++ b/wallee-sdk/lib/Model/CustomerPostalAddressCreate.php @@ -1,8 +1,8 @@ container['city']) && (mb_strlen($this->container['city']) > 100)) { + $invalidProperties[] = "invalid value for 'city', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['commercial_register_number']) && (mb_strlen($this->container['commercial_register_number']) > 100)) { + $invalidProperties[] = "invalid value for 'commercial_register_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['dependent_locality']) && (mb_strlen($this->container['dependent_locality']) > 100)) { + $invalidProperties[] = "invalid value for 'dependent_locality', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['email_address']) && (mb_strlen($this->container['email_address']) > 254)) { + $invalidProperties[] = "invalid value for 'email_address', the character length must be smaller than or equal to 254."; + } + + if (!is_null($this->container['family_name']) && (mb_strlen($this->container['family_name']) > 100)) { + $invalidProperties[] = "invalid value for 'family_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['given_name']) && (mb_strlen($this->container['given_name']) > 100)) { + $invalidProperties[] = "invalid value for 'given_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['mobile_phone_number']) && (mb_strlen($this->container['mobile_phone_number']) > 100)) { + $invalidProperties[] = "invalid value for 'mobile_phone_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['organization_name']) && (mb_strlen($this->container['organization_name']) > 100)) { + $invalidProperties[] = "invalid value for 'organization_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['phone_number']) && (mb_strlen($this->container['phone_number']) > 100)) { + $invalidProperties[] = "invalid value for 'phone_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['postcode']) && (mb_strlen($this->container['postcode']) > 40)) { + $invalidProperties[] = "invalid value for 'postcode', the character length must be smaller than or equal to 40."; + } + + if (!is_null($this->container['sales_tax_number']) && (mb_strlen($this->container['sales_tax_number']) > 100)) { + $invalidProperties[] = "invalid value for 'sales_tax_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['salutation']) && (mb_strlen($this->container['salutation']) > 20)) { + $invalidProperties[] = "invalid value for 'salutation', the character length must be smaller than or equal to 20."; + } + + if (!is_null($this->container['social_security_number']) && (mb_strlen($this->container['social_security_number']) > 100)) { + $invalidProperties[] = "invalid value for 'social_security_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['sorting_code']) && (mb_strlen($this->container['sorting_code']) > 100)) { + $invalidProperties[] = "invalid value for 'sorting_code', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['street']) && (mb_strlen($this->container['street']) > 300)) { + $invalidProperties[] = "invalid value for 'street', the character length must be smaller than or equal to 300."; + } + return $invalidProperties; } @@ -352,6 +412,10 @@ public function getCity() */ public function setCity($city) { + if (!is_null($city) && (mb_strlen($city) > 100)) { + throw new \InvalidArgumentException('invalid length for $city when calling CustomerPostalAddressCreate., must be smaller than or equal to 100.'); + } + $this->container['city'] = $city; return $this; @@ -377,6 +441,10 @@ public function getCommercialRegisterNumber() */ public function setCommercialRegisterNumber($commercial_register_number) { + if (!is_null($commercial_register_number) && (mb_strlen($commercial_register_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $commercial_register_number when calling CustomerPostalAddressCreate., must be smaller than or equal to 100.'); + } + $this->container['commercial_register_number'] = $commercial_register_number; return $this; @@ -452,6 +520,10 @@ public function getDependentLocality() */ public function setDependentLocality($dependent_locality) { + if (!is_null($dependent_locality) && (mb_strlen($dependent_locality) > 100)) { + throw new \InvalidArgumentException('invalid length for $dependent_locality when calling CustomerPostalAddressCreate., must be smaller than or equal to 100.'); + } + $this->container['dependent_locality'] = $dependent_locality; return $this; @@ -477,6 +549,10 @@ public function getEmailAddress() */ public function setEmailAddress($email_address) { + if (!is_null($email_address) && (mb_strlen($email_address) > 254)) { + throw new \InvalidArgumentException('invalid length for $email_address when calling CustomerPostalAddressCreate., must be smaller than or equal to 254.'); + } + $this->container['email_address'] = $email_address; return $this; @@ -502,6 +578,10 @@ public function getFamilyName() */ public function setFamilyName($family_name) { + if (!is_null($family_name) && (mb_strlen($family_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $family_name when calling CustomerPostalAddressCreate., must be smaller than or equal to 100.'); + } + $this->container['family_name'] = $family_name; return $this; @@ -552,6 +632,10 @@ public function getGivenName() */ public function setGivenName($given_name) { + if (!is_null($given_name) && (mb_strlen($given_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $given_name when calling CustomerPostalAddressCreate., must be smaller than or equal to 100.'); + } + $this->container['given_name'] = $given_name; return $this; @@ -602,6 +686,10 @@ public function getMobilePhoneNumber() */ public function setMobilePhoneNumber($mobile_phone_number) { + if (!is_null($mobile_phone_number) && (mb_strlen($mobile_phone_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $mobile_phone_number when calling CustomerPostalAddressCreate., must be smaller than or equal to 100.'); + } + $this->container['mobile_phone_number'] = $mobile_phone_number; return $this; @@ -627,6 +715,10 @@ public function getOrganizationName() */ public function setOrganizationName($organization_name) { + if (!is_null($organization_name) && (mb_strlen($organization_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $organization_name when calling CustomerPostalAddressCreate., must be smaller than or equal to 100.'); + } + $this->container['organization_name'] = $organization_name; return $this; @@ -652,6 +744,10 @@ public function getPhoneNumber() */ public function setPhoneNumber($phone_number) { + if (!is_null($phone_number) && (mb_strlen($phone_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $phone_number when calling CustomerPostalAddressCreate., must be smaller than or equal to 100.'); + } + $this->container['phone_number'] = $phone_number; return $this; @@ -702,6 +798,10 @@ public function getPostcode() */ public function setPostcode($postcode) { + if (!is_null($postcode) && (mb_strlen($postcode) > 40)) { + throw new \InvalidArgumentException('invalid length for $postcode when calling CustomerPostalAddressCreate., must be smaller than or equal to 40.'); + } + $this->container['postcode'] = $postcode; return $this; @@ -727,6 +827,10 @@ public function getSalesTaxNumber() */ public function setSalesTaxNumber($sales_tax_number) { + if (!is_null($sales_tax_number) && (mb_strlen($sales_tax_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $sales_tax_number when calling CustomerPostalAddressCreate., must be smaller than or equal to 100.'); + } + $this->container['sales_tax_number'] = $sales_tax_number; return $this; @@ -752,6 +856,10 @@ public function getSalutation() */ public function setSalutation($salutation) { + if (!is_null($salutation) && (mb_strlen($salutation) > 20)) { + throw new \InvalidArgumentException('invalid length for $salutation when calling CustomerPostalAddressCreate., must be smaller than or equal to 20.'); + } + $this->container['salutation'] = $salutation; return $this; @@ -777,6 +885,10 @@ public function getSocialSecurityNumber() */ public function setSocialSecurityNumber($social_security_number) { + if (!is_null($social_security_number) && (mb_strlen($social_security_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $social_security_number when calling CustomerPostalAddressCreate., must be smaller than or equal to 100.'); + } + $this->container['social_security_number'] = $social_security_number; return $this; @@ -802,6 +914,10 @@ public function getSortingCode() */ public function setSortingCode($sorting_code) { + if (!is_null($sorting_code) && (mb_strlen($sorting_code) > 100)) { + throw new \InvalidArgumentException('invalid length for $sorting_code when calling CustomerPostalAddressCreate., must be smaller than or equal to 100.'); + } + $this->container['sorting_code'] = $sorting_code; return $this; @@ -827,6 +943,10 @@ public function getStreet() */ public function setStreet($street) { + if (!is_null($street) && (mb_strlen($street) > 300)) { + throw new \InvalidArgumentException('invalid length for $street when calling CustomerPostalAddressCreate., must be smaller than or equal to 300.'); + } + $this->container['street'] = $street; return $this; diff --git a/wallee-sdk/lib/Model/CustomersPresence.php b/wallee-sdk/lib/Model/CustomersPresence.php index 230de41..50703cf 100644 --- a/wallee-sdk/lib/Model/CustomersPresence.php +++ b/wallee-sdk/lib/Model/CustomersPresence.php @@ -1,8 +1,8 @@ container['translation']) && (mb_strlen($this->container['translation']) > 16777216)) { + $invalidProperties[] = "invalid value for 'translation', the character length must be smaller than or equal to 16777216."; + } + return $invalidProperties; } @@ -283,6 +287,10 @@ public function getTranslation() */ public function setTranslation($translation) { + if (!is_null($translation) && (mb_strlen($translation) > 16777216)) { + throw new \InvalidArgumentException('invalid length for $translation when calling DatabaseTranslatedStringItem., must be smaller than or equal to 16777216.'); + } + $this->container['translation'] = $translation; return $this; diff --git a/wallee-sdk/lib/Model/DatabaseTranslatedStringItemCreate.php b/wallee-sdk/lib/Model/DatabaseTranslatedStringItemCreate.php index 0d9648b..f32482c 100644 --- a/wallee-sdk/lib/Model/DatabaseTranslatedStringItemCreate.php +++ b/wallee-sdk/lib/Model/DatabaseTranslatedStringItemCreate.php @@ -1,8 +1,8 @@ container['language'] === null) { $invalidProperties[] = "'language' can't be null"; } + if (!is_null($this->container['translation']) && (mb_strlen($this->container['translation']) > 16777216)) { + $invalidProperties[] = "invalid value for 'translation', the character length must be smaller than or equal to 16777216."; + } + return $invalidProperties; } @@ -254,6 +258,10 @@ public function getTranslation() */ public function setTranslation($translation) { + if (!is_null($translation) && (mb_strlen($translation) > 16777216)) { + throw new \InvalidArgumentException('invalid length for $translation when calling DatabaseTranslatedStringItemCreate., must be smaller than or equal to 16777216.'); + } + $this->container['translation'] = $translation; return $this; diff --git a/wallee-sdk/lib/Model/DebtCollectionCase.php b/wallee-sdk/lib/Model/DebtCollectionCase.php index 4a34bff..a25e8a6 100644 --- a/wallee-sdk/lib/Model/DebtCollectionCase.php +++ b/wallee-sdk/lib/Model/DebtCollectionCase.php @@ -1,8 +1,8 @@ container['file_name']) && (mb_strlen($this->container['file_name']) > 100)) { + $invalidProperties[] = "invalid value for 'file_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['storage_id']) && (mb_strlen($this->container['storage_id']) > 100)) { + $invalidProperties[] = "invalid value for 'storage_id', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['unique_id']) && (mb_strlen($this->container['unique_id']) > 500)) { + $invalidProperties[] = "invalid value for 'unique_id', the character length must be smaller than or equal to 500."; + } + return $invalidProperties; } @@ -339,6 +351,10 @@ public function getFileName() */ public function setFileName($file_name) { + if (!is_null($file_name) && (mb_strlen($file_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $file_name when calling DebtCollectionCaseDocument., must be smaller than or equal to 100.'); + } + $this->container['file_name'] = $file_name; return $this; @@ -489,6 +505,10 @@ public function getStorageId() */ public function setStorageId($storage_id) { + if (!is_null($storage_id) && (mb_strlen($storage_id) > 100)) { + throw new \InvalidArgumentException('invalid length for $storage_id when calling DebtCollectionCaseDocument., must be smaller than or equal to 100.'); + } + $this->container['storage_id'] = $storage_id; return $this; @@ -514,6 +534,10 @@ public function getUniqueId() */ public function setUniqueId($unique_id) { + if (!is_null($unique_id) && (mb_strlen($unique_id) > 500)) { + throw new \InvalidArgumentException('invalid length for $unique_id when calling DebtCollectionCaseDocument., must be smaller than or equal to 500.'); + } + $this->container['unique_id'] = $unique_id; return $this; diff --git a/wallee-sdk/lib/Model/DebtCollectionCaseSource.php b/wallee-sdk/lib/Model/DebtCollectionCaseSource.php index a1d7561..2a8a914 100644 --- a/wallee-sdk/lib/Model/DebtCollectionCaseSource.php +++ b/wallee-sdk/lib/Model/DebtCollectionCaseSource.php @@ -1,8 +1,8 @@ container['external_id']) && (mb_strlen($this->container['external_id']) > 100)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['external_id']) && (mb_strlen($this->container['external_id']) < 1)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be bigger than or equal to 1."; + } + return $invalidProperties; } @@ -382,6 +390,13 @@ public function getExternalId() */ public function setExternalId($external_id) { + if (!is_null($external_id) && (mb_strlen($external_id) > 100)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling DebtCollectionReceipt., must be smaller than or equal to 100.'); + } + if (!is_null($external_id) && (mb_strlen($external_id) < 1)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling DebtCollectionReceipt., must be bigger than or equal to 1.'); + } + $this->container['external_id'] = $external_id; return $this; diff --git a/wallee-sdk/lib/Model/DebtCollectionReceiptSource.php b/wallee-sdk/lib/Model/DebtCollectionReceiptSource.php index e416b01..bea70af 100644 --- a/wallee-sdk/lib/Model/DebtCollectionReceiptSource.php +++ b/wallee-sdk/lib/Model/DebtCollectionReceiptSource.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 100)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -311,6 +315,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 100)) { + throw new \InvalidArgumentException('invalid length for $name when calling DebtCollectorCondition., must be smaller than or equal to 100.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/DebtCollectorConditionType.php b/wallee-sdk/lib/Model/DebtCollectorConditionType.php index 50303e2..2bbc4b5 100644 --- a/wallee-sdk/lib/Model/DebtCollectorConditionType.php +++ b/wallee-sdk/lib/Model/DebtCollectorConditionType.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 100)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -414,6 +418,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 100)) { + throw new \InvalidArgumentException('invalid length for $name when calling DebtCollectorConfiguration., must be smaller than or equal to 100.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/DeliveryIndication.php b/wallee-sdk/lib/Model/DeliveryIndication.php index 0677ff1..31358e9 100644 --- a/wallee-sdk/lib/Model/DeliveryIndication.php +++ b/wallee-sdk/lib/Model/DeliveryIndication.php @@ -1,8 +1,8 @@ '\DateTime', 'completion' => 'int', 'created_on' => '\DateTime', + 'linked_space_id' => 'int', 'manual_decision_timeout_on' => '\DateTime', 'manually_decided_by' => 'int', 'manually_decided_on' => '\DateTime', @@ -70,6 +71,7 @@ class DeliveryIndication extends TransactionAwareEntity 'automatically_decided_on' => 'date-time', 'completion' => 'int64', 'created_on' => 'date-time', + 'linked_space_id' => 'int64', 'manual_decision_timeout_on' => 'date-time', 'manually_decided_by' => 'int64', 'manually_decided_on' => 'date-time', @@ -90,6 +92,7 @@ class DeliveryIndication extends TransactionAwareEntity 'automatically_decided_on' => 'automaticallyDecidedOn', 'completion' => 'completion', 'created_on' => 'createdOn', + 'linked_space_id' => 'linkedSpaceId', 'manual_decision_timeout_on' => 'manualDecisionTimeoutOn', 'manually_decided_by' => 'manuallyDecidedBy', 'manually_decided_on' => 'manuallyDecidedOn', @@ -109,6 +112,7 @@ class DeliveryIndication extends TransactionAwareEntity 'automatically_decided_on' => 'setAutomaticallyDecidedOn', 'completion' => 'setCompletion', 'created_on' => 'setCreatedOn', + 'linked_space_id' => 'setLinkedSpaceId', 'manual_decision_timeout_on' => 'setManualDecisionTimeoutOn', 'manually_decided_by' => 'setManuallyDecidedBy', 'manually_decided_on' => 'setManuallyDecidedOn', @@ -128,6 +132,7 @@ class DeliveryIndication extends TransactionAwareEntity 'automatically_decided_on' => 'getAutomaticallyDecidedOn', 'completion' => 'getCompletion', 'created_on' => 'getCreatedOn', + 'linked_space_id' => 'getLinkedSpaceId', 'manual_decision_timeout_on' => 'getManualDecisionTimeoutOn', 'manually_decided_by' => 'getManuallyDecidedBy', 'manually_decided_on' => 'getManuallyDecidedOn', @@ -159,6 +164,8 @@ public function __construct(array $data = null) $this->container['created_on'] = isset($data['created_on']) ? $data['created_on'] : null; + $this->container['linked_space_id'] = isset($data['linked_space_id']) ? $data['linked_space_id'] : null; + $this->container['manual_decision_timeout_on'] = isset($data['manual_decision_timeout_on']) ? $data['manual_decision_timeout_on'] : null; $this->container['manually_decided_by'] = isset($data['manually_decided_by']) ? $data['manually_decided_by'] : null; @@ -364,6 +371,31 @@ public function setCreatedOn($created_on) } + /** + * Gets linked_space_id + * + * @return int + */ + public function getLinkedSpaceId() + { + return $this->container['linked_space_id']; + } + + /** + * Sets linked_space_id + * + * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * + * @return $this + */ + public function setLinkedSpaceId($linked_space_id) + { + $this->container['linked_space_id'] = $linked_space_id; + + return $this; + } + + /** * Gets manual_decision_timeout_on * diff --git a/wallee-sdk/lib/Model/DeliveryIndicationDecisionReason.php b/wallee-sdk/lib/Model/DeliveryIndicationDecisionReason.php index 83ce362..9ebbd21 100644 --- a/wallee-sdk/lib/Model/DeliveryIndicationDecisionReason.php +++ b/wallee-sdk/lib/Model/DeliveryIndicationDecisionReason.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 100)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -389,6 +393,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 100)) { + throw new \InvalidArgumentException('invalid length for $name when calling DocumentTemplate., must be smaller than or equal to 100.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/DocumentTemplateType.php b/wallee-sdk/lib/Model/DocumentTemplateType.php index 0648082..80a4f95 100644 --- a/wallee-sdk/lib/Model/DocumentTemplateType.php +++ b/wallee-sdk/lib/Model/DocumentTemplateType.php @@ -1,8 +1,8 @@ container['email_address']) && (mb_strlen($this->container['email_address']) > 128)) { + $invalidProperties[] = "invalid value for 'email_address', the character length must be smaller than or equal to 128."; + } + + if (!is_null($this->container['firstname']) && (mb_strlen($this->container['firstname']) > 100)) { + $invalidProperties[] = "invalid value for 'firstname', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['lastname']) && (mb_strlen($this->container['lastname']) > 100)) { + $invalidProperties[] = "invalid value for 'lastname', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['mobile_phone_number']) && (mb_strlen($this->container['mobile_phone_number']) > 30)) { + $invalidProperties[] = "invalid value for 'mobile_phone_number', the character length must be smaller than or equal to 30."; + } + return $invalidProperties; } @@ -296,6 +312,10 @@ public function getEmailAddress() */ public function setEmailAddress($email_address) { + if (!is_null($email_address) && (mb_strlen($email_address) > 128)) { + throw new \InvalidArgumentException('invalid length for $email_address when calling HumanUser., must be smaller than or equal to 128.'); + } + $this->container['email_address'] = $email_address; return $this; @@ -346,6 +366,10 @@ public function getFirstname() */ public function setFirstname($firstname) { + if (!is_null($firstname) && (mb_strlen($firstname) > 100)) { + throw new \InvalidArgumentException('invalid length for $firstname when calling HumanUser., must be smaller than or equal to 100.'); + } + $this->container['firstname'] = $firstname; return $this; @@ -396,6 +420,10 @@ public function getLastname() */ public function setLastname($lastname) { + if (!is_null($lastname) && (mb_strlen($lastname) > 100)) { + throw new \InvalidArgumentException('invalid length for $lastname when calling HumanUser., must be smaller than or equal to 100.'); + } + $this->container['lastname'] = $lastname; return $this; @@ -421,6 +449,10 @@ public function getMobilePhoneNumber() */ public function setMobilePhoneNumber($mobile_phone_number) { + if (!is_null($mobile_phone_number) && (mb_strlen($mobile_phone_number) > 30)) { + throw new \InvalidArgumentException('invalid length for $mobile_phone_number when calling HumanUser., must be smaller than or equal to 30.'); + } + $this->container['mobile_phone_number'] = $mobile_phone_number; return $this; diff --git a/wallee-sdk/lib/Model/HumanUserCreate.php b/wallee-sdk/lib/Model/HumanUserCreate.php index 31e0929..5c2c86c 100644 --- a/wallee-sdk/lib/Model/HumanUserCreate.php +++ b/wallee-sdk/lib/Model/HumanUserCreate.php @@ -1,8 +1,8 @@ '\DateTime', 'installment_payment' => '\Wallee\Sdk\Model\InstallmentPayment', 'line_items' => '\Wallee\Sdk\Model\LineItem[]', + 'linked_space_id' => 'int', 'planned_purge_date' => '\DateTime', 'state' => '\Wallee\Sdk\Model\InstallmentPaymentSliceState', 'transaction' => '\Wallee\Sdk\Model\Transaction', @@ -67,6 +68,7 @@ class InstallmentPaymentSlice extends TransactionAwareEntity 'created_on' => 'date-time', 'installment_payment' => null, 'line_items' => null, + 'linked_space_id' => 'int64', 'planned_purge_date' => 'date-time', 'state' => null, 'transaction' => null, @@ -84,6 +86,7 @@ class InstallmentPaymentSlice extends TransactionAwareEntity 'created_on' => 'createdOn', 'installment_payment' => 'installmentPayment', 'line_items' => 'lineItems', + 'linked_space_id' => 'linkedSpaceId', 'planned_purge_date' => 'plannedPurgeDate', 'state' => 'state', 'transaction' => 'transaction', @@ -100,6 +103,7 @@ class InstallmentPaymentSlice extends TransactionAwareEntity 'created_on' => 'setCreatedOn', 'installment_payment' => 'setInstallmentPayment', 'line_items' => 'setLineItems', + 'linked_space_id' => 'setLinkedSpaceId', 'planned_purge_date' => 'setPlannedPurgeDate', 'state' => 'setState', 'transaction' => 'setTransaction', @@ -116,6 +120,7 @@ class InstallmentPaymentSlice extends TransactionAwareEntity 'created_on' => 'getCreatedOn', 'installment_payment' => 'getInstallmentPayment', 'line_items' => 'getLineItems', + 'linked_space_id' => 'getLinkedSpaceId', 'planned_purge_date' => 'getPlannedPurgeDate', 'state' => 'getState', 'transaction' => 'getTransaction', @@ -144,6 +149,8 @@ public function __construct(array $data = null) $this->container['line_items'] = isset($data['line_items']) ? $data['line_items'] : null; + $this->container['linked_space_id'] = isset($data['linked_space_id']) ? $data['linked_space_id'] : null; + $this->container['planned_purge_date'] = isset($data['planned_purge_date']) ? $data['planned_purge_date'] : null; $this->container['state'] = isset($data['state']) ? $data['state'] : null; @@ -343,6 +350,31 @@ public function setLineItems($line_items) } + /** + * Gets linked_space_id + * + * @return int + */ + public function getLinkedSpaceId() + { + return $this->container['linked_space_id']; + } + + /** + * Sets linked_space_id + * + * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * + * @return $this + */ + public function setLinkedSpaceId($linked_space_id) + { + $this->container['linked_space_id'] = $linked_space_id; + + return $this; + } + + /** * Gets planned_purge_date * diff --git a/wallee-sdk/lib/Model/InstallmentPaymentSliceState.php b/wallee-sdk/lib/Model/InstallmentPaymentSliceState.php index f627a85..bec3d9a 100644 --- a/wallee-sdk/lib/Model/InstallmentPaymentSliceState.php +++ b/wallee-sdk/lib/Model/InstallmentPaymentSliceState.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 100)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -506,6 +510,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 100)) { + throw new \InvalidArgumentException('invalid length for $name when calling InstallmentPlanConfiguration., must be smaller than or equal to 100.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/InstallmentPlanSliceConfiguration.php b/wallee-sdk/lib/Model/InstallmentPlanSliceConfiguration.php index 7d348cc..7ce9006 100644 --- a/wallee-sdk/lib/Model/InstallmentPlanSliceConfiguration.php +++ b/wallee-sdk/lib/Model/InstallmentPlanSliceConfiguration.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 150)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 150."; + } + + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) < 1)) { + $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 1."; + } + + if (!is_null($this->container['sku']) && (mb_strlen($this->container['sku']) > 200)) { + $invalidProperties[] = "invalid value for 'sku', the character length must be smaller than or equal to 200."; + } + + if (!is_null($this->container['unique_id']) && (mb_strlen($this->container['unique_id']) > 200)) { + $invalidProperties[] = "invalid value for 'unique_id', the character length must be smaller than or equal to 200."; + } + return $invalidProperties; } @@ -509,6 +525,13 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 150)) { + throw new \InvalidArgumentException('invalid length for $name when calling LineItem., must be smaller than or equal to 150.'); + } + if (!is_null($name) && (mb_strlen($name) < 1)) { + throw new \InvalidArgumentException('invalid length for $name when calling LineItem., must be bigger than or equal to 1.'); + } + $this->container['name'] = $name; return $this; @@ -584,6 +607,10 @@ public function getSku() */ public function setSku($sku) { + if (!is_null($sku) && (mb_strlen($sku) > 200)) { + throw new \InvalidArgumentException('invalid length for $sku when calling LineItem., must be smaller than or equal to 200.'); + } + $this->container['sku'] = $sku; return $this; @@ -809,6 +836,10 @@ public function getUniqueId() */ public function setUniqueId($unique_id) { + if (!is_null($unique_id) && (mb_strlen($unique_id) > 200)) { + throw new \InvalidArgumentException('invalid length for $unique_id when calling LineItem., must be smaller than or equal to 200.'); + } + $this->container['unique_id'] = $unique_id; return $this; diff --git a/wallee-sdk/lib/Model/LineItemAttribute.php b/wallee-sdk/lib/Model/LineItemAttribute.php index cec6a69..7775a39 100644 --- a/wallee-sdk/lib/Model/LineItemAttribute.php +++ b/wallee-sdk/lib/Model/LineItemAttribute.php @@ -1,8 +1,8 @@ container['label']) && (mb_strlen($this->container['label']) > 512)) { + $invalidProperties[] = "invalid value for 'label', the character length must be smaller than or equal to 512."; + } + + if (!is_null($this->container['value']) && (mb_strlen($this->container['value']) > 512)) { + $invalidProperties[] = "invalid value for 'value', the character length must be smaller than or equal to 512."; + } + return $invalidProperties; } @@ -226,6 +234,10 @@ public function getLabel() */ public function setLabel($label) { + if (!is_null($label) && (mb_strlen($label) > 512)) { + throw new \InvalidArgumentException('invalid length for $label when calling LineItemAttribute., must be smaller than or equal to 512.'); + } + $this->container['label'] = $label; return $this; @@ -251,6 +263,10 @@ public function getValue() */ public function setValue($value) { + if (!is_null($value) && (mb_strlen($value) > 512)) { + throw new \InvalidArgumentException('invalid length for $value when calling LineItemAttribute., must be smaller than or equal to 512.'); + } + $this->container['value'] = $value; return $this; diff --git a/wallee-sdk/lib/Model/LineItemAttributeCreate.php b/wallee-sdk/lib/Model/LineItemAttributeCreate.php index f78ef70..e53da1b 100644 --- a/wallee-sdk/lib/Model/LineItemAttributeCreate.php +++ b/wallee-sdk/lib/Model/LineItemAttributeCreate.php @@ -1,8 +1,8 @@ container['label'] === null) { $invalidProperties[] = "'label' can't be null"; } + if ((mb_strlen($this->container['label']) > 512)) { + $invalidProperties[] = "invalid value for 'label', the character length must be smaller than or equal to 512."; + } + if ($this->container['value'] === null) { $invalidProperties[] = "'value' can't be null"; } + if ((mb_strlen($this->container['value']) > 512)) { + $invalidProperties[] = "invalid value for 'value', the character length must be smaller than or equal to 512."; + } + return $invalidProperties; } @@ -232,6 +240,10 @@ public function getLabel() */ public function setLabel($label) { + if ((mb_strlen($label) > 512)) { + throw new \InvalidArgumentException('invalid length for $label when calling LineItemAttributeCreate., must be smaller than or equal to 512.'); + } + $this->container['label'] = $label; return $this; @@ -257,6 +269,10 @@ public function getValue() */ public function setValue($value) { + if ((mb_strlen($value) > 512)) { + throw new \InvalidArgumentException('invalid length for $value when calling LineItemAttributeCreate., must be smaller than or equal to 512.'); + } + $this->container['value'] = $value; return $this; diff --git a/wallee-sdk/lib/Model/LineItemCreate.php b/wallee-sdk/lib/Model/LineItemCreate.php index 57d6ecb..923f798 100644 --- a/wallee-sdk/lib/Model/LineItemCreate.php +++ b/wallee-sdk/lib/Model/LineItemCreate.php @@ -1,8 +1,8 @@ container['name'] === null) { $invalidProperties[] = "'name' can't be null"; } + if ((mb_strlen($this->container['name']) > 150)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 150."; + } + + if ((mb_strlen($this->container['name']) < 1)) { + $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 1."; + } + if ($this->container['quantity'] === null) { $invalidProperties[] = "'quantity' can't be null"; } + if (!is_null($this->container['sku']) && (mb_strlen($this->container['sku']) > 200)) { + $invalidProperties[] = "invalid value for 'sku', the character length must be smaller than or equal to 200."; + } + if ($this->container['type'] === null) { $invalidProperties[] = "'type' can't be null"; } if ($this->container['unique_id'] === null) { $invalidProperties[] = "'unique_id' can't be null"; } + if ((mb_strlen($this->container['unique_id']) > 200)) { + $invalidProperties[] = "invalid value for 'unique_id', the character length must be smaller than or equal to 200."; + } + return $invalidProperties; } @@ -372,6 +388,13 @@ public function getName() */ public function setName($name) { + if ((mb_strlen($name) > 150)) { + throw new \InvalidArgumentException('invalid length for $name when calling LineItemCreate., must be smaller than or equal to 150.'); + } + if ((mb_strlen($name) < 1)) { + throw new \InvalidArgumentException('invalid length for $name when calling LineItemCreate., must be bigger than or equal to 1.'); + } + $this->container['name'] = $name; return $this; @@ -447,6 +470,10 @@ public function getSku() */ public function setSku($sku) { + if (!is_null($sku) && (mb_strlen($sku) > 200)) { + throw new \InvalidArgumentException('invalid length for $sku when calling LineItemCreate., must be smaller than or equal to 200.'); + } + $this->container['sku'] = $sku; return $this; @@ -522,6 +549,10 @@ public function getUniqueId() */ public function setUniqueId($unique_id) { + if ((mb_strlen($unique_id) > 200)) { + throw new \InvalidArgumentException('invalid length for $unique_id when calling LineItemCreate., must be smaller than or equal to 200.'); + } + $this->container['unique_id'] = $unique_id; return $this; diff --git a/wallee-sdk/lib/Model/LineItemReduction.php b/wallee-sdk/lib/Model/LineItemReduction.php index fedc5ae..b1d9425 100644 --- a/wallee-sdk/lib/Model/LineItemReduction.php +++ b/wallee-sdk/lib/Model/LineItemReduction.php @@ -1,8 +1,8 @@ container['line_item_unique_id']) && (mb_strlen($this->container['line_item_unique_id']) > 200)) { + $invalidProperties[] = "invalid value for 'line_item_unique_id', the character length must be smaller than or equal to 200."; + } + return $invalidProperties; } @@ -233,6 +237,10 @@ public function getLineItemUniqueId() */ public function setLineItemUniqueId($line_item_unique_id) { + if (!is_null($line_item_unique_id) && (mb_strlen($line_item_unique_id) > 200)) { + throw new \InvalidArgumentException('invalid length for $line_item_unique_id when calling LineItemReduction., must be smaller than or equal to 200.'); + } + $this->container['line_item_unique_id'] = $line_item_unique_id; return $this; diff --git a/wallee-sdk/lib/Model/LineItemReductionCreate.php b/wallee-sdk/lib/Model/LineItemReductionCreate.php index e44e078..792d27a 100644 --- a/wallee-sdk/lib/Model/LineItemReductionCreate.php +++ b/wallee-sdk/lib/Model/LineItemReductionCreate.php @@ -1,8 +1,8 @@ container['line_item_unique_id'] === null) { $invalidProperties[] = "'line_item_unique_id' can't be null"; } + if ((mb_strlen($this->container['line_item_unique_id']) > 200)) { + $invalidProperties[] = "invalid value for 'line_item_unique_id', the character length must be smaller than or equal to 200."; + } + if ($this->container['quantity_reduction'] === null) { $invalidProperties[] = "'quantity_reduction' can't be null"; } @@ -242,6 +246,10 @@ public function getLineItemUniqueId() */ public function setLineItemUniqueId($line_item_unique_id) { + if ((mb_strlen($line_item_unique_id) > 200)) { + throw new \InvalidArgumentException('invalid length for $line_item_unique_id when calling LineItemReductionCreate., must be smaller than or equal to 200.'); + } + $this->container['line_item_unique_id'] = $line_item_unique_id; return $this; diff --git a/wallee-sdk/lib/Model/LineItemType.php b/wallee-sdk/lib/Model/LineItemType.php index 9c1700f..ed2f1c9 100644 --- a/wallee-sdk/lib/Model/LineItemType.php +++ b/wallee-sdk/lib/Model/LineItemType.php @@ -1,8 +1,8 @@ container['path']) && (mb_strlen($this->container['path']) > 500)) { + $invalidProperties[] = "invalid value for 'path', the character length must be smaller than or equal to 500."; + } + + if (!is_null($this->container['path']) && (mb_strlen($this->container['path']) < 4)) { + $invalidProperties[] = "invalid value for 'path', the character length must be bigger than or equal to 4."; + } + return $invalidProperties; } @@ -311,6 +319,13 @@ public function getPath() */ public function setPath($path) { + if (!is_null($path) && (mb_strlen($path) > 500)) { + throw new \InvalidArgumentException('invalid length for $path when calling ModelResourcePath., must be smaller than or equal to 500.'); + } + if (!is_null($path) && (mb_strlen($path) < 4)) { + throw new \InvalidArgumentException('invalid length for $path when calling ModelResourcePath., must be bigger than or equal to 4.'); + } + $this->container['path'] = $path; return $this; diff --git a/wallee-sdk/lib/Model/OneClickPaymentMode.php b/wallee-sdk/lib/Model/OneClickPaymentMode.php index e52cd82..9805f24 100644 --- a/wallee-sdk/lib/Model/OneClickPaymentMode.php +++ b/wallee-sdk/lib/Model/OneClickPaymentMode.php @@ -1,8 +1,8 @@ 'bool', 'conditions' => 'int[]', 'connector' => 'int', + 'enabled_sales_channels' => '\Wallee\Sdk\Model\SalesChannel[]', 'enabled_space_views' => 'int[]', 'id' => 'int', 'linked_space_id' => 'int', @@ -73,6 +74,7 @@ class PaymentConnectorConfiguration implements ModelInterface, ArrayAccess 'applicable_for_transaction_processing' => null, 'conditions' => 'int64', 'connector' => 'int64', + 'enabled_sales_channels' => null, 'enabled_space_views' => 'int64', 'id' => 'int64', 'linked_space_id' => 'int64', @@ -95,6 +97,7 @@ class PaymentConnectorConfiguration implements ModelInterface, ArrayAccess 'applicable_for_transaction_processing' => 'applicableForTransactionProcessing', 'conditions' => 'conditions', 'connector' => 'connector', + 'enabled_sales_channels' => 'enabledSalesChannels', 'enabled_space_views' => 'enabledSpaceViews', 'id' => 'id', 'linked_space_id' => 'linkedSpaceId', @@ -116,6 +119,7 @@ class PaymentConnectorConfiguration implements ModelInterface, ArrayAccess 'applicable_for_transaction_processing' => 'setApplicableForTransactionProcessing', 'conditions' => 'setConditions', 'connector' => 'setConnector', + 'enabled_sales_channels' => 'setEnabledSalesChannels', 'enabled_space_views' => 'setEnabledSpaceViews', 'id' => 'setId', 'linked_space_id' => 'setLinkedSpaceId', @@ -137,6 +141,7 @@ class PaymentConnectorConfiguration implements ModelInterface, ArrayAccess 'applicable_for_transaction_processing' => 'getApplicableForTransactionProcessing', 'conditions' => 'getConditions', 'connector' => 'getConnector', + 'enabled_sales_channels' => 'getEnabledSalesChannels', 'enabled_space_views' => 'getEnabledSpaceViews', 'id' => 'getId', 'linked_space_id' => 'getLinkedSpaceId', @@ -173,6 +178,8 @@ public function __construct(array $data = null) $this->container['connector'] = isset($data['connector']) ? $data['connector'] : null; + $this->container['enabled_sales_channels'] = isset($data['enabled_sales_channels']) ? $data['enabled_sales_channels'] : null; + $this->container['enabled_space_views'] = isset($data['enabled_space_views']) ? $data['enabled_space_views'] : null; $this->container['id'] = isset($data['id']) ? $data['id'] : null; @@ -204,6 +211,10 @@ public function listInvalidProperties() { $invalidProperties = []; + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) > 100)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -359,6 +370,31 @@ public function setConnector($connector) } + /** + * Gets enabled_sales_channels + * + * @return \Wallee\Sdk\Model\SalesChannel[] + */ + public function getEnabledSalesChannels() + { + return $this->container['enabled_sales_channels']; + } + + /** + * Sets enabled_sales_channels + * + * @param \Wallee\Sdk\Model\SalesChannel[] $enabled_sales_channels Defines the sales channels the connector configuration is enabled for. In case the set is empty, the connector configuration is enabled for all sales channels. + * + * @return $this + */ + public function setEnabledSalesChannels($enabled_sales_channels) + { + $this->container['enabled_sales_channels'] = $enabled_sales_channels; + + return $this; + } + + /** * Gets enabled_space_views * @@ -453,6 +489,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 100)) { + throw new \InvalidArgumentException('invalid length for $name when calling PaymentConnectorConfiguration., must be smaller than or equal to 100.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/PaymentConnectorFeature.php b/wallee-sdk/lib/Model/PaymentConnectorFeature.php index c171fd2..4cfb591 100644 --- a/wallee-sdk/lib/Model/PaymentConnectorFeature.php +++ b/wallee-sdk/lib/Model/PaymentConnectorFeature.php @@ -1,8 +1,8 @@ container['external_id']) && (mb_strlen($this->container['external_id']) > 100)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['external_id']) && (mb_strlen($this->container['external_id']) < 1)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be bigger than or equal to 1."; + } + return $invalidProperties; } @@ -467,6 +475,13 @@ public function getExternalId() */ public function setExternalId($external_id) { + if (!is_null($external_id) && (mb_strlen($external_id) > 100)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling PaymentContract., must be smaller than or equal to 100.'); + } + if (!is_null($external_id) && (mb_strlen($external_id) < 1)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling PaymentContract., must be bigger than or equal to 1.'); + } + $this->container['external_id'] = $external_id; return $this; diff --git a/wallee-sdk/lib/Model/PaymentContractState.php b/wallee-sdk/lib/Model/PaymentContractState.php index 7116a97..703a5a3 100644 --- a/wallee-sdk/lib/Model/PaymentContractState.php +++ b/wallee-sdk/lib/Model/PaymentContractState.php @@ -1,8 +1,8 @@ container['external_id']) && (mb_strlen($this->container['external_id']) > 100)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['external_id']) && (mb_strlen($this->container['external_id']) < 1)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be bigger than or equal to 1."; + } + + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) > 100)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -495,6 +507,13 @@ public function getExternalId() */ public function setExternalId($external_id) { + if (!is_null($external_id) && (mb_strlen($external_id) > 100)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling PaymentLink., must be smaller than or equal to 100.'); + } + if (!is_null($external_id) && (mb_strlen($external_id) < 1)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling PaymentLink., must be bigger than or equal to 1.'); + } + $this->container['external_id'] = $external_id; return $this; @@ -645,6 +664,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 100)) { + throw new \InvalidArgumentException('invalid length for $name when calling PaymentLink., must be smaller than or equal to 100.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/PaymentLinkActive.php b/wallee-sdk/lib/Model/PaymentLinkActive.php index a2aa410..b307fb7 100644 --- a/wallee-sdk/lib/Model/PaymentLinkActive.php +++ b/wallee-sdk/lib/Model/PaymentLinkActive.php @@ -1,8 +1,8 @@ container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } - if ($this->container['version'] === null) { - $invalidProperties[] = "'version' can't be null"; - } return $invalidProperties; } diff --git a/wallee-sdk/lib/Model/PaymentLinkCreate.php b/wallee-sdk/lib/Model/PaymentLinkCreate.php index 1bafe48..14c8b7b 100644 --- a/wallee-sdk/lib/Model/PaymentLinkCreate.php +++ b/wallee-sdk/lib/Model/PaymentLinkCreate.php @@ -1,8 +1,8 @@ container['external_id'] === null) { $invalidProperties[] = "'external_id' can't be null"; } + if ((mb_strlen($this->container['external_id']) > 100)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be smaller than or equal to 100."; + } + + if ((mb_strlen($this->container['external_id']) < 1)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be bigger than or equal to 1."; + } + return $invalidProperties; } @@ -255,6 +263,13 @@ public function getExternalId() */ public function setExternalId($external_id) { + if ((mb_strlen($external_id) > 100)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling PaymentLinkCreate., must be smaller than or equal to 100.'); + } + if ((mb_strlen($external_id) < 1)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling PaymentLinkCreate., must be bigger than or equal to 1.'); + } + $this->container['external_id'] = $external_id; return $this; diff --git a/wallee-sdk/lib/Model/PaymentLinkProtectionMode.php b/wallee-sdk/lib/Model/PaymentLinkProtectionMode.php index 61533c0..d5063bb 100644 --- a/wallee-sdk/lib/Model/PaymentLinkProtectionMode.php +++ b/wallee-sdk/lib/Model/PaymentLinkProtectionMode.php @@ -1,8 +1,8 @@ container['version'] === null) { $invalidProperties[] = "'version' can't be null"; } + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) > 100)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -584,6 +588,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 100)) { + throw new \InvalidArgumentException('invalid length for $name when calling PaymentLinkUpdate., must be smaller than or equal to 100.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/PaymentMethod.php b/wallee-sdk/lib/Model/PaymentMethod.php index e81dae2..3f5de72 100644 --- a/wallee-sdk/lib/Model/PaymentMethod.php +++ b/wallee-sdk/lib/Model/PaymentMethod.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 100)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -456,6 +460,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 100)) { + throw new \InvalidArgumentException('invalid length for $name when calling PaymentMethodConfiguration., must be smaller than or equal to 100.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/PaymentPrimaryRiskTaker.php b/wallee-sdk/lib/Model/PaymentPrimaryRiskTaker.php index 7fa0ce1..25fd5a8 100644 --- a/wallee-sdk/lib/Model/PaymentPrimaryRiskTaker.php +++ b/wallee-sdk/lib/Model/PaymentPrimaryRiskTaker.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 100)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -343,6 +347,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 100)) { + throw new \InvalidArgumentException('invalid length for $name when calling PaymentProcessorConfiguration., must be smaller than or equal to 100.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/PaymentTerminal.php b/wallee-sdk/lib/Model/PaymentTerminal.php index 59cd442..893d878 100644 --- a/wallee-sdk/lib/Model/PaymentTerminal.php +++ b/wallee-sdk/lib/Model/PaymentTerminal.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 100)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -407,6 +411,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 100)) { + throw new \InvalidArgumentException('invalid length for $name when calling PaymentTerminal., must be smaller than or equal to 100.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/PaymentTerminalAddress.php b/wallee-sdk/lib/Model/PaymentTerminalAddress.php index cfc08be..85c07eb 100644 --- a/wallee-sdk/lib/Model/PaymentTerminalAddress.php +++ b/wallee-sdk/lib/Model/PaymentTerminalAddress.php @@ -1,8 +1,8 @@ container['dependent_locality']) && (mb_strlen($this->container['dependent_locality']) > 100)) { + $invalidProperties[] = "invalid value for 'dependent_locality', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['email_address']) && (mb_strlen($this->container['email_address']) > 254)) { + $invalidProperties[] = "invalid value for 'email_address', the character length must be smaller than or equal to 254."; + } + + if (!is_null($this->container['family_name']) && (mb_strlen($this->container['family_name']) > 100)) { + $invalidProperties[] = "invalid value for 'family_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['given_name']) && (mb_strlen($this->container['given_name']) > 100)) { + $invalidProperties[] = "invalid value for 'given_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['mobile_phone_number']) && (mb_strlen($this->container['mobile_phone_number']) > 100)) { + $invalidProperties[] = "invalid value for 'mobile_phone_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['organization_name']) && (mb_strlen($this->container['organization_name']) > 100)) { + $invalidProperties[] = "invalid value for 'organization_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['phone_number']) && (mb_strlen($this->container['phone_number']) > 100)) { + $invalidProperties[] = "invalid value for 'phone_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['salutation']) && (mb_strlen($this->container['salutation']) > 20)) { + $invalidProperties[] = "invalid value for 'salutation', the character length must be smaller than or equal to 20."; + } + + if (!is_null($this->container['sorting_code']) && (mb_strlen($this->container['sorting_code']) > 100)) { + $invalidProperties[] = "invalid value for 'sorting_code', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -360,6 +396,10 @@ public function getDependentLocality() */ public function setDependentLocality($dependent_locality) { + if (!is_null($dependent_locality) && (mb_strlen($dependent_locality) > 100)) { + throw new \InvalidArgumentException('invalid length for $dependent_locality when calling PaymentTerminalAddress., must be smaller than or equal to 100.'); + } + $this->container['dependent_locality'] = $dependent_locality; return $this; @@ -385,6 +425,10 @@ public function getEmailAddress() */ public function setEmailAddress($email_address) { + if (!is_null($email_address) && (mb_strlen($email_address) > 254)) { + throw new \InvalidArgumentException('invalid length for $email_address when calling PaymentTerminalAddress., must be smaller than or equal to 254.'); + } + $this->container['email_address'] = $email_address; return $this; @@ -410,6 +454,10 @@ public function getFamilyName() */ public function setFamilyName($family_name) { + if (!is_null($family_name) && (mb_strlen($family_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $family_name when calling PaymentTerminalAddress., must be smaller than or equal to 100.'); + } + $this->container['family_name'] = $family_name; return $this; @@ -435,6 +483,10 @@ public function getGivenName() */ public function setGivenName($given_name) { + if (!is_null($given_name) && (mb_strlen($given_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $given_name when calling PaymentTerminalAddress., must be smaller than or equal to 100.'); + } + $this->container['given_name'] = $given_name; return $this; @@ -460,6 +512,10 @@ public function getMobilePhoneNumber() */ public function setMobilePhoneNumber($mobile_phone_number) { + if (!is_null($mobile_phone_number) && (mb_strlen($mobile_phone_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $mobile_phone_number when calling PaymentTerminalAddress., must be smaller than or equal to 100.'); + } + $this->container['mobile_phone_number'] = $mobile_phone_number; return $this; @@ -485,6 +541,10 @@ public function getOrganizationName() */ public function setOrganizationName($organization_name) { + if (!is_null($organization_name) && (mb_strlen($organization_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $organization_name when calling PaymentTerminalAddress., must be smaller than or equal to 100.'); + } + $this->container['organization_name'] = $organization_name; return $this; @@ -510,6 +570,10 @@ public function getPhoneNumber() */ public function setPhoneNumber($phone_number) { + if (!is_null($phone_number) && (mb_strlen($phone_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $phone_number when calling PaymentTerminalAddress., must be smaller than or equal to 100.'); + } + $this->container['phone_number'] = $phone_number; return $this; @@ -585,6 +649,10 @@ public function getSalutation() */ public function setSalutation($salutation) { + if (!is_null($salutation) && (mb_strlen($salutation) > 20)) { + throw new \InvalidArgumentException('invalid length for $salutation when calling PaymentTerminalAddress., must be smaller than or equal to 20.'); + } + $this->container['salutation'] = $salutation; return $this; @@ -610,6 +678,10 @@ public function getSortingCode() */ public function setSortingCode($sorting_code) { + if (!is_null($sorting_code) && (mb_strlen($sorting_code) > 100)) { + throw new \InvalidArgumentException('invalid length for $sorting_code when calling PaymentTerminalAddress., must be smaller than or equal to 100.'); + } + $this->container['sorting_code'] = $sorting_code; return $this; diff --git a/wallee-sdk/lib/Model/PaymentTerminalConfiguration.php b/wallee-sdk/lib/Model/PaymentTerminalConfiguration.php index 93a1fe2..9d13821 100644 --- a/wallee-sdk/lib/Model/PaymentTerminalConfiguration.php +++ b/wallee-sdk/lib/Model/PaymentTerminalConfiguration.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 100)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -311,6 +315,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 100)) { + throw new \InvalidArgumentException('invalid length for $name when calling PaymentTerminalConfiguration., must be smaller than or equal to 100.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/PaymentTerminalConfigurationState.php b/wallee-sdk/lib/Model/PaymentTerminalConfigurationState.php index 3441926..6d30373 100644 --- a/wallee-sdk/lib/Model/PaymentTerminalConfigurationState.php +++ b/wallee-sdk/lib/Model/PaymentTerminalConfigurationState.php @@ -1,8 +1,8 @@ 'string', + 'given_name' => 'string', + 'organization_name' => 'string', + 'phone_number' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'family_name' => null, + 'given_name' => null, + 'organization_name' => null, + 'phone_number' => null + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'family_name' => 'familyName', + 'given_name' => 'givenName', + 'organization_name' => 'organizationName', + 'phone_number' => 'phoneNumber' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'family_name' => 'setFamilyName', + 'given_name' => 'setGivenName', + 'organization_name' => 'setOrganizationName', + 'phone_number' => 'setPhoneNumber' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'family_name' => 'getFamilyName', + 'given_name' => 'getGivenName', + 'organization_name' => 'getOrganizationName', + 'phone_number' => 'getPhoneNumber' + ]; + + + + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + parent::__construct($data); + + + $this->container['family_name'] = isset($data['family_name']) ? $data['family_name'] : null; + + $this->container['given_name'] = isset($data['given_name']) ? $data['given_name'] : null; + + $this->container['organization_name'] = isset($data['organization_name']) ? $data['organization_name'] : null; + + $this->container['phone_number'] = isset($data['phone_number']) ? $data['phone_number'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = parent::listInvalidProperties(); + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes + parent::swaggerTypes(); + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats + parent::swaggerFormats(); + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return parent::attributeMap() + self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return parent::setters() + self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return parent::getters() + self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets family_name + * + * @return string + */ + public function getFamilyName() + { + return $this->container['family_name']; + } + + /** + * Sets family_name + * + * @param string $family_name + * + * @return $this + */ + public function setFamilyName($family_name) + { + $this->container['family_name'] = $family_name; + + return $this; + } + + + /** + * Gets given_name + * + * @return string + */ + public function getGivenName() + { + return $this->container['given_name']; + } + + /** + * Sets given_name + * + * @param string $given_name + * + * @return $this + */ + public function setGivenName($given_name) + { + $this->container['given_name'] = $given_name; + + return $this; + } + + + /** + * Gets organization_name + * + * @return string + */ + public function getOrganizationName() + { + return $this->container['organization_name']; + } + + /** + * Sets organization_name + * + * @param string $organization_name + * + * @return $this + */ + public function setOrganizationName($organization_name) + { + $this->container['organization_name'] = $organization_name; + + return $this; + } + + + /** + * Gets phone_number + * + * @return string + */ + public function getPhoneNumber() + { + return $this->container['phone_number']; + } + + /** + * Sets phone_number + * + * @param string $phone_number + * + * @return $this + */ + public function setPhoneNumber($phone_number) + { + $this->container['phone_number'] = $phone_number; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/wallee-sdk/lib/Model/PaymentTerminalLocation.php b/wallee-sdk/lib/Model/PaymentTerminalLocation.php index 532b1b3..284073f 100644 --- a/wallee-sdk/lib/Model/PaymentTerminalLocation.php +++ b/wallee-sdk/lib/Model/PaymentTerminalLocation.php @@ -1,8 +1,8 @@ '\Wallee\Sdk\Model\PaymentTerminalContactAddress', 'default_configuration' => '\Wallee\Sdk\Model\PaymentTerminalConfiguration', 'delivery_address' => '\Wallee\Sdk\Model\PaymentTerminalAddress', 'id' => 'int', @@ -65,6 +66,7 @@ class PaymentTerminalLocation implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerFormats = [ + 'contact_address' => null, 'default_configuration' => null, 'delivery_address' => null, 'id' => 'int64', @@ -82,6 +84,7 @@ class PaymentTerminalLocation implements ModelInterface, ArrayAccess * @var string[] */ protected static $attributeMap = [ + 'contact_address' => 'contactAddress', 'default_configuration' => 'defaultConfiguration', 'delivery_address' => 'deliveryAddress', 'id' => 'id', @@ -98,6 +101,7 @@ class PaymentTerminalLocation implements ModelInterface, ArrayAccess * @var string[] */ protected static $setters = [ + 'contact_address' => 'setContactAddress', 'default_configuration' => 'setDefaultConfiguration', 'delivery_address' => 'setDeliveryAddress', 'id' => 'setId', @@ -114,6 +118,7 @@ class PaymentTerminalLocation implements ModelInterface, ArrayAccess * @var string[] */ protected static $getters = [ + 'contact_address' => 'getContactAddress', 'default_configuration' => 'getDefaultConfiguration', 'delivery_address' => 'getDeliveryAddress', 'id' => 'getId', @@ -142,6 +147,8 @@ class PaymentTerminalLocation implements ModelInterface, ArrayAccess public function __construct(array $data = null) { + $this->container['contact_address'] = isset($data['contact_address']) ? $data['contact_address'] : null; + $this->container['default_configuration'] = isset($data['default_configuration']) ? $data['default_configuration'] : null; $this->container['delivery_address'] = isset($data['delivery_address']) ? $data['delivery_address'] : null; @@ -169,6 +176,10 @@ public function listInvalidProperties() { $invalidProperties = []; + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) > 100)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -249,6 +260,31 @@ public function valid() + /** + * Gets contact_address + * + * @return \Wallee\Sdk\Model\PaymentTerminalContactAddress + */ + public function getContactAddress() + { + return $this->container['contact_address']; + } + + /** + * Sets contact_address + * + * @param \Wallee\Sdk\Model\PaymentTerminalContactAddress $contact_address + * + * @return $this + */ + public function setContactAddress($contact_address) + { + $this->container['contact_address'] = $contact_address; + + return $this; + } + + /** * Gets default_configuration * @@ -368,6 +404,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 100)) { + throw new \InvalidArgumentException('invalid length for $name when calling PaymentTerminalLocation., must be smaller than or equal to 100.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/PaymentTerminalLocationState.php b/wallee-sdk/lib/Model/PaymentTerminalLocationState.php index cb340ae..232c570 100644 --- a/wallee-sdk/lib/Model/PaymentTerminalLocationState.php +++ b/wallee-sdk/lib/Model/PaymentTerminalLocationState.php @@ -1,8 +1,8 @@ '\Wallee\Sdk\Model\Tax[]', 'time_zone' => 'string', 'timeout_on' => '\DateTime', + 'total_applied_fees' => 'float', + 'total_settled_amount' => 'float', 'transaction' => '\Wallee\Sdk\Model\Transaction', 'type' => '\Wallee\Sdk\Model\RefundType', 'updated_invoice' => 'int', @@ -113,6 +115,8 @@ class Refund implements ModelInterface, ArrayAccess 'taxes' => null, 'time_zone' => null, 'timeout_on' => 'date-time', + 'total_applied_fees' => null, + 'total_settled_amount' => null, 'transaction' => null, 'type' => null, 'updated_invoice' => 'int64', @@ -152,6 +156,8 @@ class Refund implements ModelInterface, ArrayAccess 'taxes' => 'taxes', 'time_zone' => 'timeZone', 'timeout_on' => 'timeoutOn', + 'total_applied_fees' => 'totalAppliedFees', + 'total_settled_amount' => 'totalSettledAmount', 'transaction' => 'transaction', 'type' => 'type', 'updated_invoice' => 'updatedInvoice', @@ -190,6 +196,8 @@ class Refund implements ModelInterface, ArrayAccess 'taxes' => 'setTaxes', 'time_zone' => 'setTimeZone', 'timeout_on' => 'setTimeoutOn', + 'total_applied_fees' => 'setTotalAppliedFees', + 'total_settled_amount' => 'setTotalSettledAmount', 'transaction' => 'setTransaction', 'type' => 'setType', 'updated_invoice' => 'setUpdatedInvoice', @@ -228,6 +236,8 @@ class Refund implements ModelInterface, ArrayAccess 'taxes' => 'getTaxes', 'time_zone' => 'getTimeZone', 'timeout_on' => 'getTimeoutOn', + 'total_applied_fees' => 'getTotalAppliedFees', + 'total_settled_amount' => 'getTotalSettledAmount', 'transaction' => 'getTransaction', 'type' => 'getType', 'updated_invoice' => 'getUpdatedInvoice', @@ -304,6 +314,10 @@ public function __construct(array $data = null) $this->container['timeout_on'] = isset($data['timeout_on']) ? $data['timeout_on'] : null; + $this->container['total_applied_fees'] = isset($data['total_applied_fees']) ? $data['total_applied_fees'] : null; + + $this->container['total_settled_amount'] = isset($data['total_settled_amount']) ? $data['total_settled_amount'] : null; + $this->container['transaction'] = isset($data['transaction']) ? $data['transaction'] : null; $this->container['type'] = isset($data['type']) ? $data['type'] : null; @@ -323,6 +337,22 @@ public function listInvalidProperties() { $invalidProperties = []; + if (!is_null($this->container['external_id']) && (mb_strlen($this->container['external_id']) > 100)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['external_id']) && (mb_strlen($this->container['external_id']) < 1)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be bigger than or equal to 1."; + } + + if (!is_null($this->container['merchant_reference']) && (mb_strlen($this->container['merchant_reference']) > 100)) { + $invalidProperties[] = "invalid value for 'merchant_reference', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['processor_reference']) && (mb_strlen($this->container['processor_reference']) > 150)) { + $invalidProperties[] = "invalid value for 'processor_reference', the character length must be smaller than or equal to 150."; + } + return $invalidProperties; } @@ -572,6 +602,13 @@ public function getExternalId() */ public function setExternalId($external_id) { + if (!is_null($external_id) && (mb_strlen($external_id) > 100)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling Refund., must be smaller than or equal to 100.'); + } + if (!is_null($external_id) && (mb_strlen($external_id) < 1)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling Refund., must be bigger than or equal to 1.'); + } + $this->container['external_id'] = $external_id; return $this; @@ -772,6 +809,10 @@ public function getMerchantReference() */ public function setMerchantReference($merchant_reference) { + if (!is_null($merchant_reference) && (mb_strlen($merchant_reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $merchant_reference when calling Refund., must be smaller than or equal to 100.'); + } + $this->container['merchant_reference'] = $merchant_reference; return $this; @@ -872,6 +913,10 @@ public function getProcessorReference() */ public function setProcessorReference($processor_reference) { + if (!is_null($processor_reference) && (mb_strlen($processor_reference) > 150)) { + throw new \InvalidArgumentException('invalid length for $processor_reference when calling Refund., must be smaller than or equal to 150.'); + } + $this->container['processor_reference'] = $processor_reference; return $this; @@ -1053,6 +1098,56 @@ public function setTimeoutOn($timeout_on) } + /** + * Gets total_applied_fees + * + * @return float + */ + public function getTotalAppliedFees() + { + return $this->container['total_applied_fees']; + } + + /** + * Sets total_applied_fees + * + * @param float $total_applied_fees The total applied fees is the sum of all fees that have been applied so far. + * + * @return $this + */ + public function setTotalAppliedFees($total_applied_fees) + { + $this->container['total_applied_fees'] = $total_applied_fees; + + return $this; + } + + + /** + * Gets total_settled_amount + * + * @return float + */ + public function getTotalSettledAmount() + { + return $this->container['total_settled_amount']; + } + + /** + * Sets total_settled_amount + * + * @param float $total_settled_amount The total settled amount is the total amount which has been settled so far. + * + * @return $this + */ + public function setTotalSettledAmount($total_settled_amount) + { + $this->container['total_settled_amount'] = $total_settled_amount; + + return $this; + } + + /** * Gets transaction * diff --git a/wallee-sdk/lib/Model/RefundComment.php b/wallee-sdk/lib/Model/RefundComment.php index 4a78f0d..bf7ccc2 100644 --- a/wallee-sdk/lib/Model/RefundComment.php +++ b/wallee-sdk/lib/Model/RefundComment.php @@ -1,8 +1,8 @@ container['content']) && (mb_strlen($this->container['content']) > 262144)) { + $invalidProperties[] = "invalid value for 'content', the character length must be smaller than or equal to 262144."; + } + return $invalidProperties; } @@ -282,6 +286,10 @@ public function getContent() */ public function setContent($content) { + if (!is_null($content) && (mb_strlen($content) > 262144)) { + throw new \InvalidArgumentException('invalid length for $content when calling RefundComment., must be smaller than or equal to 262144.'); + } + $this->container['content'] = $content; return $this; diff --git a/wallee-sdk/lib/Model/RefundCommentActive.php b/wallee-sdk/lib/Model/RefundCommentActive.php index 8c2fdb8..5a1a5d8 100644 --- a/wallee-sdk/lib/Model/RefundCommentActive.php +++ b/wallee-sdk/lib/Model/RefundCommentActive.php @@ -1,8 +1,8 @@ container['external_id'] === null) { $invalidProperties[] = "'external_id' can't be null"; } + if ((mb_strlen($this->container['external_id']) > 100)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be smaller than or equal to 100."; + } + + if ((mb_strlen($this->container['external_id']) < 1)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be bigger than or equal to 1."; + } + + if (!is_null($this->container['merchant_reference']) && (mb_strlen($this->container['merchant_reference']) > 100)) { + $invalidProperties[] = "invalid value for 'merchant_reference', the character length must be smaller than or equal to 100."; + } + if ($this->container['type'] === null) { $invalidProperties[] = "'type' can't be null"; } @@ -317,6 +329,13 @@ public function getExternalId() */ public function setExternalId($external_id) { + if ((mb_strlen($external_id) > 100)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling RefundCreate., must be smaller than or equal to 100.'); + } + if ((mb_strlen($external_id) < 1)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling RefundCreate., must be bigger than or equal to 1.'); + } + $this->container['external_id'] = $external_id; return $this; @@ -342,6 +361,10 @@ public function getMerchantReference() */ public function setMerchantReference($merchant_reference) { + if (!is_null($merchant_reference) && (mb_strlen($merchant_reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $merchant_reference when calling RefundCreate., must be smaller than or equal to 100.'); + } + $this->container['merchant_reference'] = $merchant_reference; return $this; diff --git a/wallee-sdk/lib/Model/RefundState.php b/wallee-sdk/lib/Model/RefundState.php index 57d311c..482c148 100644 --- a/wallee-sdk/lib/Model/RefundState.php +++ b/wallee-sdk/lib/Model/RefundState.php @@ -1,8 +1,8 @@ 'map[string,string]', + 'icon' => 'string', 'id' => 'int', - 'name' => 'map[string,string]' + 'name' => 'map[string,string]', + 'parent' => '\Wallee\Sdk\Model\SalesChannel', + 'sort_order' => 'int' ]; /** @@ -61,8 +64,11 @@ class SalesChannel implements ModelInterface, ArrayAccess */ protected static $swaggerFormats = [ 'description' => null, + 'icon' => null, 'id' => 'int64', - 'name' => null + 'name' => null, + 'parent' => null, + 'sort_order' => 'int32' ]; /** @@ -73,8 +79,11 @@ class SalesChannel implements ModelInterface, ArrayAccess */ protected static $attributeMap = [ 'description' => 'description', + 'icon' => 'icon', 'id' => 'id', - 'name' => 'name' + 'name' => 'name', + 'parent' => 'parent', + 'sort_order' => 'sortOrder' ]; /** @@ -84,8 +93,11 @@ class SalesChannel implements ModelInterface, ArrayAccess */ protected static $setters = [ 'description' => 'setDescription', + 'icon' => 'setIcon', 'id' => 'setId', - 'name' => 'setName' + 'name' => 'setName', + 'parent' => 'setParent', + 'sort_order' => 'setSortOrder' ]; /** @@ -95,8 +107,11 @@ class SalesChannel implements ModelInterface, ArrayAccess */ protected static $getters = [ 'description' => 'getDescription', + 'icon' => 'getIcon', 'id' => 'getId', - 'name' => 'getName' + 'name' => 'getName', + 'parent' => 'getParent', + 'sort_order' => 'getSortOrder' ]; @@ -119,10 +134,16 @@ public function __construct(array $data = null) $this->container['description'] = isset($data['description']) ? $data['description'] : null; + $this->container['icon'] = isset($data['icon']) ? $data['icon'] : null; + $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['parent'] = isset($data['parent']) ? $data['parent'] : null; + + $this->container['sort_order'] = isset($data['sort_order']) ? $data['sort_order'] : null; + } /** @@ -239,6 +260,31 @@ public function setDescription($description) } + /** + * Gets icon + * + * @return string + */ + public function getIcon() + { + return $this->container['icon']; + } + + /** + * Sets icon + * + * @param string $icon + * + * @return $this + */ + public function setIcon($icon) + { + $this->container['icon'] = $icon; + + return $this; + } + + /** * Gets id * @@ -288,6 +334,56 @@ public function setName($name) return $this; } + + /** + * Gets parent + * + * @return \Wallee\Sdk\Model\SalesChannel + */ + public function getParent() + { + return $this->container['parent']; + } + + /** + * Sets parent + * + * @param \Wallee\Sdk\Model\SalesChannel $parent + * + * @return $this + */ + public function setParent($parent) + { + $this->container['parent'] = $parent; + + return $this; + } + + + /** + * Gets sort_order + * + * @return int + */ + public function getSortOrder() + { + return $this->container['sort_order']; + } + + /** + * Sets sort_order + * + * @param int $sort_order + * + * @return $this + */ + public function setSortOrder($sort_order) + { + $this->container['sort_order'] = $sort_order; + + return $this; + } + /** * Returns true if offset exists. False otherwise. * diff --git a/wallee-sdk/lib/Model/Scope.php b/wallee-sdk/lib/Model/Scope.php index 8c5670d..345eb7f 100644 --- a/wallee-sdk/lib/Model/Scope.php +++ b/wallee-sdk/lib/Model/Scope.php @@ -1,8 +1,8 @@ 'string', 'features' => '\Wallee\Sdk\Model\Feature[]', 'id' => 'int', + 'machine_name' => 'string', 'name' => 'string', 'planned_purge_date' => '\DateTime', 'port' => 'int', @@ -71,6 +72,7 @@ class Scope implements ModelInterface, ArrayAccess 'domain_name' => null, 'features' => null, 'id' => 'int64', + 'machine_name' => null, 'name' => null, 'planned_purge_date' => 'date-time', 'port' => 'int32', @@ -91,6 +93,7 @@ class Scope implements ModelInterface, ArrayAccess 'domain_name' => 'domainName', 'features' => 'features', 'id' => 'id', + 'machine_name' => 'machineName', 'name' => 'name', 'planned_purge_date' => 'plannedPurgeDate', 'port' => 'port', @@ -110,6 +113,7 @@ class Scope implements ModelInterface, ArrayAccess 'domain_name' => 'setDomainName', 'features' => 'setFeatures', 'id' => 'setId', + 'machine_name' => 'setMachineName', 'name' => 'setName', 'planned_purge_date' => 'setPlannedPurgeDate', 'port' => 'setPort', @@ -129,6 +133,7 @@ class Scope implements ModelInterface, ArrayAccess 'domain_name' => 'getDomainName', 'features' => 'getFeatures', 'id' => 'getId', + 'machine_name' => 'getMachineName', 'name' => 'getName', 'planned_purge_date' => 'getPlannedPurgeDate', 'port' => 'getPort', @@ -163,6 +168,8 @@ public function __construct(array $data = null) $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['machine_name'] = isset($data['machine_name']) ? $data['machine_name'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['planned_purge_date'] = isset($data['planned_purge_date']) ? $data['planned_purge_date'] : null; @@ -190,6 +197,18 @@ public function listInvalidProperties() { $invalidProperties = []; + if (!is_null($this->container['domain_name']) && (mb_strlen($this->container['domain_name']) > 40)) { + $invalidProperties[] = "invalid value for 'domain_name', the character length must be smaller than or equal to 40."; + } + + if (!is_null($this->container['machine_name']) && (mb_strlen($this->container['machine_name']) > 50)) { + $invalidProperties[] = "invalid value for 'machine_name', the character length must be smaller than or equal to 50."; + } + + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) > 50)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 50."; + } + return $invalidProperties; } @@ -289,6 +308,10 @@ public function getDomainName() */ public function setDomainName($domain_name) { + if (!is_null($domain_name) && (mb_strlen($domain_name) > 40)) { + throw new \InvalidArgumentException('invalid length for $domain_name when calling Scope., must be smaller than or equal to 40.'); + } + $this->container['domain_name'] = $domain_name; return $this; @@ -345,6 +368,35 @@ public function setId($id) } + /** + * Gets machine_name + * + * @return string + */ + public function getMachineName() + { + return $this->container['machine_name']; + } + + /** + * Sets machine_name + * + * @param string $machine_name + * + * @return $this + */ + public function setMachineName($machine_name) + { + if (!is_null($machine_name) && (mb_strlen($machine_name) > 50)) { + throw new \InvalidArgumentException('invalid length for $machine_name when calling Scope., must be smaller than or equal to 50.'); + } + + $this->container['machine_name'] = $machine_name; + + return $this; + } + + /** * Gets name * @@ -364,6 +416,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 50)) { + throw new \InvalidArgumentException('invalid length for $name when calling Scope., must be smaller than or equal to 50.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/ServerError.php b/wallee-sdk/lib/Model/ServerError.php index 71ade9c..7982c7d 100644 --- a/wallee-sdk/lib/Model/ServerError.php +++ b/wallee-sdk/lib/Model/ServerError.php @@ -1,8 +1,8 @@ '\Wallee\Sdk\Model\ShopifyAdditionalLineItemData[]', 'allow_invoice_download' => 'bool', 'allowed_payment_method_configurations' => '\Wallee\Sdk\Model\PaymentMethodConfiguration[]', - 'app_version' => '\Wallee\Sdk\Model\ShopifyIntegrationAppVersion', 'currency' => 'string', 'id' => 'int', 'integrated_payment_form_enabled' => 'bool', 'language' => 'string', 'login_name' => 'string', 'name' => 'string', + 'payment_app_version' => '\Wallee\Sdk\Model\ShopifyIntegrationPaymentAppVersion', + 'payment_installed' => 'bool', + 'payment_proxy_path' => 'string', 'planned_purge_date' => '\DateTime', - 'proxy_path' => 'string', 'replace_payment_method_image' => 'bool', 'shop_name' => 'string', 'show_payment_information' => 'bool', @@ -67,6 +69,9 @@ class ShopifyIntegration implements ModelInterface, ArrayAccess 'space_id' => 'int', 'space_view_id' => 'int', 'state' => '\Wallee\Sdk\Model\CreationEntityState', + 'subscription_app_version' => '\Wallee\Sdk\Model\ShopifyIntegrationSubscriptionAppVersion', + 'subscription_installed' => 'bool', + 'subscription_proxy_path' => 'string', 'version' => 'int' ]; @@ -76,17 +81,19 @@ class ShopifyIntegration implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerFormats = [ + 'additional_line_item_data' => null, 'allow_invoice_download' => null, 'allowed_payment_method_configurations' => null, - 'app_version' => null, 'currency' => null, 'id' => 'int64', 'integrated_payment_form_enabled' => null, 'language' => null, 'login_name' => null, 'name' => null, + 'payment_app_version' => null, + 'payment_installed' => null, + 'payment_proxy_path' => null, 'planned_purge_date' => 'date-time', - 'proxy_path' => null, 'replace_payment_method_image' => null, 'shop_name' => null, 'show_payment_information' => null, @@ -94,6 +101,9 @@ class ShopifyIntegration implements ModelInterface, ArrayAccess 'space_id' => 'int64', 'space_view_id' => 'int64', 'state' => null, + 'subscription_app_version' => null, + 'subscription_installed' => null, + 'subscription_proxy_path' => null, 'version' => 'int32' ]; @@ -104,17 +114,19 @@ class ShopifyIntegration implements ModelInterface, ArrayAccess * @var string[] */ protected static $attributeMap = [ + 'additional_line_item_data' => 'additionalLineItemData', 'allow_invoice_download' => 'allowInvoiceDownload', 'allowed_payment_method_configurations' => 'allowedPaymentMethodConfigurations', - 'app_version' => 'appVersion', 'currency' => 'currency', 'id' => 'id', 'integrated_payment_form_enabled' => 'integratedPaymentFormEnabled', 'language' => 'language', 'login_name' => 'loginName', 'name' => 'name', + 'payment_app_version' => 'paymentAppVersion', + 'payment_installed' => 'paymentInstalled', + 'payment_proxy_path' => 'paymentProxyPath', 'planned_purge_date' => 'plannedPurgeDate', - 'proxy_path' => 'proxyPath', 'replace_payment_method_image' => 'replacePaymentMethodImage', 'shop_name' => 'shopName', 'show_payment_information' => 'showPaymentInformation', @@ -122,6 +134,9 @@ class ShopifyIntegration implements ModelInterface, ArrayAccess 'space_id' => 'spaceId', 'space_view_id' => 'spaceViewId', 'state' => 'state', + 'subscription_app_version' => 'subscriptionAppVersion', + 'subscription_installed' => 'subscriptionInstalled', + 'subscription_proxy_path' => 'subscriptionProxyPath', 'version' => 'version' ]; @@ -131,17 +146,19 @@ class ShopifyIntegration implements ModelInterface, ArrayAccess * @var string[] */ protected static $setters = [ + 'additional_line_item_data' => 'setAdditionalLineItemData', 'allow_invoice_download' => 'setAllowInvoiceDownload', 'allowed_payment_method_configurations' => 'setAllowedPaymentMethodConfigurations', - 'app_version' => 'setAppVersion', 'currency' => 'setCurrency', 'id' => 'setId', 'integrated_payment_form_enabled' => 'setIntegratedPaymentFormEnabled', 'language' => 'setLanguage', 'login_name' => 'setLoginName', 'name' => 'setName', + 'payment_app_version' => 'setPaymentAppVersion', + 'payment_installed' => 'setPaymentInstalled', + 'payment_proxy_path' => 'setPaymentProxyPath', 'planned_purge_date' => 'setPlannedPurgeDate', - 'proxy_path' => 'setProxyPath', 'replace_payment_method_image' => 'setReplacePaymentMethodImage', 'shop_name' => 'setShopName', 'show_payment_information' => 'setShowPaymentInformation', @@ -149,6 +166,9 @@ class ShopifyIntegration implements ModelInterface, ArrayAccess 'space_id' => 'setSpaceId', 'space_view_id' => 'setSpaceViewId', 'state' => 'setState', + 'subscription_app_version' => 'setSubscriptionAppVersion', + 'subscription_installed' => 'setSubscriptionInstalled', + 'subscription_proxy_path' => 'setSubscriptionProxyPath', 'version' => 'setVersion' ]; @@ -158,17 +178,19 @@ class ShopifyIntegration implements ModelInterface, ArrayAccess * @var string[] */ protected static $getters = [ + 'additional_line_item_data' => 'getAdditionalLineItemData', 'allow_invoice_download' => 'getAllowInvoiceDownload', 'allowed_payment_method_configurations' => 'getAllowedPaymentMethodConfigurations', - 'app_version' => 'getAppVersion', 'currency' => 'getCurrency', 'id' => 'getId', 'integrated_payment_form_enabled' => 'getIntegratedPaymentFormEnabled', 'language' => 'getLanguage', 'login_name' => 'getLoginName', 'name' => 'getName', + 'payment_app_version' => 'getPaymentAppVersion', + 'payment_installed' => 'getPaymentInstalled', + 'payment_proxy_path' => 'getPaymentProxyPath', 'planned_purge_date' => 'getPlannedPurgeDate', - 'proxy_path' => 'getProxyPath', 'replace_payment_method_image' => 'getReplacePaymentMethodImage', 'shop_name' => 'getShopName', 'show_payment_information' => 'getShowPaymentInformation', @@ -176,6 +198,9 @@ class ShopifyIntegration implements ModelInterface, ArrayAccess 'space_id' => 'getSpaceId', 'space_view_id' => 'getSpaceViewId', 'state' => 'getState', + 'subscription_app_version' => 'getSubscriptionAppVersion', + 'subscription_installed' => 'getSubscriptionInstalled', + 'subscription_proxy_path' => 'getSubscriptionProxyPath', 'version' => 'getVersion' ]; @@ -197,12 +222,12 @@ class ShopifyIntegration implements ModelInterface, ArrayAccess public function __construct(array $data = null) { + $this->container['additional_line_item_data'] = isset($data['additional_line_item_data']) ? $data['additional_line_item_data'] : null; + $this->container['allow_invoice_download'] = isset($data['allow_invoice_download']) ? $data['allow_invoice_download'] : null; $this->container['allowed_payment_method_configurations'] = isset($data['allowed_payment_method_configurations']) ? $data['allowed_payment_method_configurations'] : null; - $this->container['app_version'] = isset($data['app_version']) ? $data['app_version'] : null; - $this->container['currency'] = isset($data['currency']) ? $data['currency'] : null; $this->container['id'] = isset($data['id']) ? $data['id'] : null; @@ -215,9 +240,13 @@ public function __construct(array $data = null) $this->container['name'] = isset($data['name']) ? $data['name'] : null; - $this->container['planned_purge_date'] = isset($data['planned_purge_date']) ? $data['planned_purge_date'] : null; + $this->container['payment_app_version'] = isset($data['payment_app_version']) ? $data['payment_app_version'] : null; + + $this->container['payment_installed'] = isset($data['payment_installed']) ? $data['payment_installed'] : null; + + $this->container['payment_proxy_path'] = isset($data['payment_proxy_path']) ? $data['payment_proxy_path'] : null; - $this->container['proxy_path'] = isset($data['proxy_path']) ? $data['proxy_path'] : null; + $this->container['planned_purge_date'] = isset($data['planned_purge_date']) ? $data['planned_purge_date'] : null; $this->container['replace_payment_method_image'] = isset($data['replace_payment_method_image']) ? $data['replace_payment_method_image'] : null; @@ -233,6 +262,12 @@ public function __construct(array $data = null) $this->container['state'] = isset($data['state']) ? $data['state'] : null; + $this->container['subscription_app_version'] = isset($data['subscription_app_version']) ? $data['subscription_app_version'] : null; + + $this->container['subscription_installed'] = isset($data['subscription_installed']) ? $data['subscription_installed'] : null; + + $this->container['subscription_proxy_path'] = isset($data['subscription_proxy_path']) ? $data['subscription_proxy_path'] : null; + $this->container['version'] = isset($data['version']) ? $data['version'] : null; } @@ -246,6 +281,18 @@ public function listInvalidProperties() { $invalidProperties = []; + if (!is_null($this->container['login_name']) && (mb_strlen($this->container['login_name']) > 100)) { + $invalidProperties[] = "invalid value for 'login_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) > 100)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['shop_name']) && (mb_strlen($this->container['shop_name']) > 100)) { + $invalidProperties[] = "invalid value for 'shop_name', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -327,75 +374,75 @@ public function valid() /** - * Gets allow_invoice_download + * Gets additional_line_item_data * - * @return bool + * @return \Wallee\Sdk\Model\ShopifyAdditionalLineItemData[] */ - public function getAllowInvoiceDownload() + public function getAdditionalLineItemData() { - return $this->container['allow_invoice_download']; + return $this->container['additional_line_item_data']; } /** - * Sets allow_invoice_download + * Sets additional_line_item_data * - * @param bool $allow_invoice_download + * @param \Wallee\Sdk\Model\ShopifyAdditionalLineItemData[] $additional_line_item_data * * @return $this */ - public function setAllowInvoiceDownload($allow_invoice_download) + public function setAdditionalLineItemData($additional_line_item_data) { - $this->container['allow_invoice_download'] = $allow_invoice_download; + $this->container['additional_line_item_data'] = $additional_line_item_data; return $this; } /** - * Gets allowed_payment_method_configurations + * Gets allow_invoice_download * - * @return \Wallee\Sdk\Model\PaymentMethodConfiguration[] + * @return bool */ - public function getAllowedPaymentMethodConfigurations() + public function getAllowInvoiceDownload() { - return $this->container['allowed_payment_method_configurations']; + return $this->container['allow_invoice_download']; } /** - * Sets allowed_payment_method_configurations + * Sets allow_invoice_download * - * @param \Wallee\Sdk\Model\PaymentMethodConfiguration[] $allowed_payment_method_configurations + * @param bool $allow_invoice_download * * @return $this */ - public function setAllowedPaymentMethodConfigurations($allowed_payment_method_configurations) + public function setAllowInvoiceDownload($allow_invoice_download) { - $this->container['allowed_payment_method_configurations'] = $allowed_payment_method_configurations; + $this->container['allow_invoice_download'] = $allow_invoice_download; return $this; } /** - * Gets app_version + * Gets allowed_payment_method_configurations * - * @return \Wallee\Sdk\Model\ShopifyIntegrationAppVersion + * @return \Wallee\Sdk\Model\PaymentMethodConfiguration[] */ - public function getAppVersion() + public function getAllowedPaymentMethodConfigurations() { - return $this->container['app_version']; + return $this->container['allowed_payment_method_configurations']; } /** - * Sets app_version + * Sets allowed_payment_method_configurations * - * @param \Wallee\Sdk\Model\ShopifyIntegrationAppVersion $app_version + * @param \Wallee\Sdk\Model\PaymentMethodConfiguration[] $allowed_payment_method_configurations * * @return $this */ - public function setAppVersion($app_version) + public function setAllowedPaymentMethodConfigurations($allowed_payment_method_configurations) { - $this->container['app_version'] = $app_version; + $this->container['allowed_payment_method_configurations'] = $allowed_payment_method_configurations; return $this; } @@ -520,6 +567,10 @@ public function getLoginName() */ public function setLoginName($login_name) { + if (!is_null($login_name) && (mb_strlen($login_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $login_name when calling ShopifyIntegration., must be smaller than or equal to 100.'); + } + $this->container['login_name'] = $login_name; return $this; @@ -545,6 +596,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 100)) { + throw new \InvalidArgumentException('invalid length for $name when calling ShopifyIntegration., must be smaller than or equal to 100.'); + } + $this->container['name'] = $name; return $this; @@ -552,50 +607,100 @@ public function setName($name) /** - * Gets planned_purge_date + * Gets payment_app_version * - * @return \DateTime + * @return \Wallee\Sdk\Model\ShopifyIntegrationPaymentAppVersion */ - public function getPlannedPurgeDate() + public function getPaymentAppVersion() { - return $this->container['planned_purge_date']; + return $this->container['payment_app_version']; } /** - * Sets planned_purge_date + * Sets payment_app_version * - * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * @param \Wallee\Sdk\Model\ShopifyIntegrationPaymentAppVersion $payment_app_version * * @return $this */ - public function setPlannedPurgeDate($planned_purge_date) + public function setPaymentAppVersion($payment_app_version) { - $this->container['planned_purge_date'] = $planned_purge_date; + $this->container['payment_app_version'] = $payment_app_version; return $this; } /** - * Gets proxy_path + * Gets payment_installed + * + * @return bool + */ + public function getPaymentInstalled() + { + return $this->container['payment_installed']; + } + + /** + * Sets payment_installed + * + * @param bool $payment_installed + * + * @return $this + */ + public function setPaymentInstalled($payment_installed) + { + $this->container['payment_installed'] = $payment_installed; + + return $this; + } + + + /** + * Gets payment_proxy_path * * @return string */ - public function getProxyPath() + public function getPaymentProxyPath() { - return $this->container['proxy_path']; + return $this->container['payment_proxy_path']; } /** - * Sets proxy_path + * Sets payment_proxy_path * - * @param string $proxy_path Define the path of the proxy URL. This only needs to be changed if the apps proxy URL is overwritten in the Shopify store. + * @param string $payment_proxy_path Define the path of the proxy URL. This only needs to be changed if the apps proxy URL is overwritten in the Shopify store. * * @return $this */ - public function setProxyPath($proxy_path) + public function setPaymentProxyPath($payment_proxy_path) { - $this->container['proxy_path'] = $proxy_path; + $this->container['payment_proxy_path'] = $payment_proxy_path; + + return $this; + } + + + /** + * Gets planned_purge_date + * + * @return \DateTime + */ + public function getPlannedPurgeDate() + { + return $this->container['planned_purge_date']; + } + + /** + * Sets planned_purge_date + * + * @param \DateTime $planned_purge_date The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed. + * + * @return $this + */ + public function setPlannedPurgeDate($planned_purge_date) + { + $this->container['planned_purge_date'] = $planned_purge_date; return $this; } @@ -645,6 +750,10 @@ public function getShopName() */ public function setShopName($shop_name) { + if (!is_null($shop_name) && (mb_strlen($shop_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $shop_name when calling ShopifyIntegration., must be smaller than or equal to 100.'); + } + $this->container['shop_name'] = $shop_name; return $this; @@ -776,6 +885,81 @@ public function setState($state) } + /** + * Gets subscription_app_version + * + * @return \Wallee\Sdk\Model\ShopifyIntegrationSubscriptionAppVersion + */ + public function getSubscriptionAppVersion() + { + return $this->container['subscription_app_version']; + } + + /** + * Sets subscription_app_version + * + * @param \Wallee\Sdk\Model\ShopifyIntegrationSubscriptionAppVersion $subscription_app_version + * + * @return $this + */ + public function setSubscriptionAppVersion($subscription_app_version) + { + $this->container['subscription_app_version'] = $subscription_app_version; + + return $this; + } + + + /** + * Gets subscription_installed + * + * @return bool + */ + public function getSubscriptionInstalled() + { + return $this->container['subscription_installed']; + } + + /** + * Sets subscription_installed + * + * @param bool $subscription_installed + * + * @return $this + */ + public function setSubscriptionInstalled($subscription_installed) + { + $this->container['subscription_installed'] = $subscription_installed; + + return $this; + } + + + /** + * Gets subscription_proxy_path + * + * @return string + */ + public function getSubscriptionProxyPath() + { + return $this->container['subscription_proxy_path']; + } + + /** + * Sets subscription_proxy_path + * + * @param string $subscription_proxy_path Define the path of the proxy URL. This only needs to be changed if the apps proxy URL is overwritten in the Shopify store. + * + * @return $this + */ + public function setSubscriptionProxyPath($subscription_proxy_path) + { + $this->container['subscription_proxy_path'] = $subscription_proxy_path; + + return $this; + } + + /** * Gets version * diff --git a/wallee-sdk/lib/Model/ShopifyIntegrationPaymentAppVersion.php b/wallee-sdk/lib/Model/ShopifyIntegrationPaymentAppVersion.php new file mode 100644 index 0000000..358ee6d --- /dev/null +++ b/wallee-sdk/lib/Model/ShopifyIntegrationPaymentAppVersion.php @@ -0,0 +1,52 @@ + 'string', 'created_on' => '\DateTime', 'failure_reason' => '\Wallee\Sdk\Model\FailureReason', + 'linked_space_id' => 'int', 'order_id' => 'string', 'order_name' => 'string', 'planned_execution_date' => '\DateTime', @@ -73,6 +74,7 @@ class ShopifyRecurringOrder extends TransactionAwareEntity 'checkout_token' => null, 'created_on' => 'date-time', 'failure_reason' => null, + 'linked_space_id' => 'int64', 'order_id' => null, 'order_name' => null, 'planned_execution_date' => 'date-time', @@ -96,6 +98,7 @@ class ShopifyRecurringOrder extends TransactionAwareEntity 'checkout_token' => 'checkoutToken', 'created_on' => 'createdOn', 'failure_reason' => 'failureReason', + 'linked_space_id' => 'linkedSpaceId', 'order_id' => 'orderId', 'order_name' => 'orderName', 'planned_execution_date' => 'plannedExecutionDate', @@ -118,6 +121,7 @@ class ShopifyRecurringOrder extends TransactionAwareEntity 'checkout_token' => 'setCheckoutToken', 'created_on' => 'setCreatedOn', 'failure_reason' => 'setFailureReason', + 'linked_space_id' => 'setLinkedSpaceId', 'order_id' => 'setOrderId', 'order_name' => 'setOrderName', 'planned_execution_date' => 'setPlannedExecutionDate', @@ -140,6 +144,7 @@ class ShopifyRecurringOrder extends TransactionAwareEntity 'checkout_token' => 'getCheckoutToken', 'created_on' => 'getCreatedOn', 'failure_reason' => 'getFailureReason', + 'linked_space_id' => 'getLinkedSpaceId', 'order_id' => 'getOrderId', 'order_name' => 'getOrderName', 'planned_execution_date' => 'getPlannedExecutionDate', @@ -174,6 +179,8 @@ public function __construct(array $data = null) $this->container['failure_reason'] = isset($data['failure_reason']) ? $data['failure_reason'] : null; + $this->container['linked_space_id'] = isset($data['linked_space_id']) ? $data['linked_space_id'] : null; + $this->container['order_id'] = isset($data['order_id']) ? $data['order_id'] : null; $this->container['order_name'] = isset($data['order_name']) ? $data['order_name'] : null; @@ -385,6 +392,31 @@ public function setFailureReason($failure_reason) } + /** + * Gets linked_space_id + * + * @return int + */ + public function getLinkedSpaceId() + { + return $this->container['linked_space_id']; + } + + /** + * Sets linked_space_id + * + * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * + * @return $this + */ + public function setLinkedSpaceId($linked_space_id) + { + $this->container['linked_space_id'] = $linked_space_id; + + return $this; + } + + /** * Gets order_id * diff --git a/wallee-sdk/lib/Model/ShopifyRecurringOrderState.php b/wallee-sdk/lib/Model/ShopifyRecurringOrderState.php index e4ed0ae..37592ea 100644 --- a/wallee-sdk/lib/Model/ShopifyRecurringOrderState.php +++ b/wallee-sdk/lib/Model/ShopifyRecurringOrderState.php @@ -1,8 +1,8 @@ 'string', + 'phone_number' => 'string', + 'shopify_customer_id' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'email_address' => null, + 'phone_number' => null, + 'shopify_customer_id' => null + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'email_address' => 'emailAddress', + 'phone_number' => 'phoneNumber', + 'shopify_customer_id' => 'shopifyCustomerId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'email_address' => 'setEmailAddress', + 'phone_number' => 'setPhoneNumber', + 'shopify_customer_id' => 'setShopifyCustomerId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'email_address' => 'getEmailAddress', + 'phone_number' => 'getPhoneNumber', + 'shopify_customer_id' => 'getShopifyCustomerId' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['email_address'] = isset($data['email_address']) ? $data['email_address'] : null; + + $this->container['phone_number'] = isset($data['phone_number']) ? $data['phone_number'] : null; + + $this->container['shopify_customer_id'] = isset($data['shopify_customer_id']) ? $data['shopify_customer_id'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['shopify_customer_id'] === null) { + $invalidProperties[] = "'shopify_customer_id' can't be null"; + } + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets email_address + * + * @return string + */ + public function getEmailAddress() + { + return $this->container['email_address']; + } + + /** + * Sets email_address + * + * @param string $email_address + * + * @return $this + */ + public function setEmailAddress($email_address) + { + $this->container['email_address'] = $email_address; + + return $this; + } + + + /** + * Gets phone_number + * + * @return string + */ + public function getPhoneNumber() + { + return $this->container['phone_number']; + } + + /** + * Sets phone_number + * + * @param string $phone_number + * + * @return $this + */ + public function setPhoneNumber($phone_number) + { + $this->container['phone_number'] = $phone_number; + + return $this; + } + + + /** + * Gets shopify_customer_id + * + * @return string + */ + public function getShopifyCustomerId() + { + return $this->container['shopify_customer_id']; + } + + /** + * Sets shopify_customer_id + * + * @param string $shopify_customer_id The customer ID has to correspond to the ID assigned to the customer by Shopify. When the subscriber already exists no new subscriber will be created. + * + * @return $this + */ + public function setShopifyCustomerId($shopify_customer_id) + { + $this->container['shopify_customer_id'] = $shopify_customer_id; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/wallee-sdk/lib/Model/ShopifySubscriberState.php b/wallee-sdk/lib/Model/ShopifySubscriberState.php index 8fb3c54..8c2862b 100644 --- a/wallee-sdk/lib/Model/ShopifySubscriberState.php +++ b/wallee-sdk/lib/Model/ShopifySubscriberState.php @@ -1,8 +1,8 @@ 'int', 'created_on' => '\DateTime', + 'external_id' => 'string', 'id' => 'int', - 'initial_transaction' => 'int', + 'initial_payment_transaction' => 'int', + 'initial_shopify_transaction' => 'int', 'language' => 'string', 'linked_space_id' => 'int', 'order_recurrence_number' => 'int', @@ -73,8 +75,10 @@ class ShopifySubscription implements ModelInterface, ArrayAccess protected static $swaggerFormats = [ 'created_by' => 'int64', 'created_on' => 'date-time', + 'external_id' => null, 'id' => 'int64', - 'initial_transaction' => 'int64', + 'initial_payment_transaction' => 'int64', + 'initial_shopify_transaction' => 'int64', 'language' => null, 'linked_space_id' => 'int64', 'order_recurrence_number' => 'int32', @@ -96,8 +100,10 @@ class ShopifySubscription implements ModelInterface, ArrayAccess protected static $attributeMap = [ 'created_by' => 'createdBy', 'created_on' => 'createdOn', + 'external_id' => 'externalId', 'id' => 'id', - 'initial_transaction' => 'initialTransaction', + 'initial_payment_transaction' => 'initialPaymentTransaction', + 'initial_shopify_transaction' => 'initialShopifyTransaction', 'language' => 'language', 'linked_space_id' => 'linkedSpaceId', 'order_recurrence_number' => 'orderRecurrenceNumber', @@ -118,8 +124,10 @@ class ShopifySubscription implements ModelInterface, ArrayAccess protected static $setters = [ 'created_by' => 'setCreatedBy', 'created_on' => 'setCreatedOn', + 'external_id' => 'setExternalId', 'id' => 'setId', - 'initial_transaction' => 'setInitialTransaction', + 'initial_payment_transaction' => 'setInitialPaymentTransaction', + 'initial_shopify_transaction' => 'setInitialShopifyTransaction', 'language' => 'setLanguage', 'linked_space_id' => 'setLinkedSpaceId', 'order_recurrence_number' => 'setOrderRecurrenceNumber', @@ -140,8 +148,10 @@ class ShopifySubscription implements ModelInterface, ArrayAccess protected static $getters = [ 'created_by' => 'getCreatedBy', 'created_on' => 'getCreatedOn', + 'external_id' => 'getExternalId', 'id' => 'getId', - 'initial_transaction' => 'getInitialTransaction', + 'initial_payment_transaction' => 'getInitialPaymentTransaction', + 'initial_shopify_transaction' => 'getInitialShopifyTransaction', 'language' => 'getLanguage', 'linked_space_id' => 'getLinkedSpaceId', 'order_recurrence_number' => 'getOrderRecurrenceNumber', @@ -176,9 +186,13 @@ public function __construct(array $data = null) $this->container['created_on'] = isset($data['created_on']) ? $data['created_on'] : null; + $this->container['external_id'] = isset($data['external_id']) ? $data['external_id'] : null; + $this->container['id'] = isset($data['id']) ? $data['id'] : null; - $this->container['initial_transaction'] = isset($data['initial_transaction']) ? $data['initial_transaction'] : null; + $this->container['initial_payment_transaction'] = isset($data['initial_payment_transaction']) ? $data['initial_payment_transaction'] : null; + + $this->container['initial_shopify_transaction'] = isset($data['initial_shopify_transaction']) ? $data['initial_shopify_transaction'] : null; $this->container['language'] = isset($data['language']) ? $data['language'] : null; @@ -211,6 +225,14 @@ public function listInvalidProperties() { $invalidProperties = []; + if (!is_null($this->container['external_id']) && (mb_strlen($this->container['external_id']) > 100)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['external_id']) && (mb_strlen($this->container['external_id']) < 1)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be bigger than or equal to 1."; + } + return $invalidProperties; } @@ -341,6 +363,38 @@ public function setCreatedOn($created_on) } + /** + * Gets external_id + * + * @return string + */ + public function getExternalId() + { + return $this->container['external_id']; + } + + /** + * Sets external_id + * + * @param string $external_id The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity. + * + * @return $this + */ + public function setExternalId($external_id) + { + if (!is_null($external_id) && (mb_strlen($external_id) > 100)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling ShopifySubscription., must be smaller than or equal to 100.'); + } + if (!is_null($external_id) && (mb_strlen($external_id) < 1)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling ShopifySubscription., must be bigger than or equal to 1.'); + } + + $this->container['external_id'] = $external_id; + + return $this; + } + + /** * Gets id * @@ -367,25 +421,50 @@ public function setId($id) /** - * Gets initial_transaction + * Gets initial_payment_transaction + * + * @return int + */ + public function getInitialPaymentTransaction() + { + return $this->container['initial_payment_transaction']; + } + + /** + * Sets initial_payment_transaction + * + * @param int $initial_payment_transaction + * + * @return $this + */ + public function setInitialPaymentTransaction($initial_payment_transaction) + { + $this->container['initial_payment_transaction'] = $initial_payment_transaction; + + return $this; + } + + + /** + * Gets initial_shopify_transaction * * @return int */ - public function getInitialTransaction() + public function getInitialShopifyTransaction() { - return $this->container['initial_transaction']; + return $this->container['initial_shopify_transaction']; } /** - * Sets initial_transaction + * Sets initial_shopify_transaction * - * @param int $initial_transaction + * @param int $initial_shopify_transaction * * @return $this */ - public function setInitialTransaction($initial_transaction) + public function setInitialShopifyTransaction($initial_shopify_transaction) { - $this->container['initial_transaction'] = $initial_transaction; + $this->container['initial_shopify_transaction'] = $initial_shopify_transaction; return $this; } diff --git a/wallee-sdk/lib/Model/ShopifySubscriptionAddress.php b/wallee-sdk/lib/Model/ShopifySubscriptionAddress.php index abf5403..7ca00d3 100644 --- a/wallee-sdk/lib/Model/ShopifySubscriptionAddress.php +++ b/wallee-sdk/lib/Model/ShopifySubscriptionAddress.php @@ -1,8 +1,8 @@ 'string', + 'country' => 'string', + 'family_name' => 'string', + 'postcode' => 'string', + 'street' => 'string' ]; /** @@ -56,7 +60,11 @@ class ShopifySubscriptionAddress extends Address * @var string[] */ protected static $swaggerFormats = [ - + 'city' => null, + 'country' => null, + 'family_name' => null, + 'postcode' => null, + 'street' => null ]; /** @@ -66,7 +74,11 @@ class ShopifySubscriptionAddress extends Address * @var string[] */ protected static $attributeMap = [ - + 'city' => 'city', + 'country' => 'country', + 'family_name' => 'familyName', + 'postcode' => 'postcode', + 'street' => 'street' ]; /** @@ -75,7 +87,11 @@ class ShopifySubscriptionAddress extends Address * @var string[] */ protected static $setters = [ - + 'city' => 'setCity', + 'country' => 'setCountry', + 'family_name' => 'setFamilyName', + 'postcode' => 'setPostcode', + 'street' => 'setStreet' ]; /** @@ -84,7 +100,11 @@ class ShopifySubscriptionAddress extends Address * @var string[] */ protected static $getters = [ - + 'city' => 'getCity', + 'country' => 'getCountry', + 'family_name' => 'getFamilyName', + 'postcode' => 'getPostcode', + 'street' => 'getStreet' ]; @@ -101,6 +121,16 @@ public function __construct(array $data = null) parent::__construct($data); + $this->container['city'] = isset($data['city']) ? $data['city'] : null; + + $this->container['country'] = isset($data['country']) ? $data['country'] : null; + + $this->container['family_name'] = isset($data['family_name']) ? $data['family_name'] : null; + + $this->container['postcode'] = isset($data['postcode']) ? $data['postcode'] : null; + + $this->container['street'] = isset($data['street']) ? $data['street'] : null; + } /** @@ -191,6 +221,131 @@ public function valid() } + + /** + * Gets city + * + * @return string + */ + public function getCity() + { + return $this->container['city']; + } + + /** + * Sets city + * + * @param string $city + * + * @return $this + */ + public function setCity($city) + { + $this->container['city'] = $city; + + return $this; + } + + + /** + * Gets country + * + * @return string + */ + public function getCountry() + { + return $this->container['country']; + } + + /** + * Sets country + * + * @param string $country + * + * @return $this + */ + public function setCountry($country) + { + $this->container['country'] = $country; + + return $this; + } + + + /** + * Gets family_name + * + * @return string + */ + public function getFamilyName() + { + return $this->container['family_name']; + } + + /** + * Sets family_name + * + * @param string $family_name + * + * @return $this + */ + public function setFamilyName($family_name) + { + $this->container['family_name'] = $family_name; + + return $this; + } + + + /** + * Gets postcode + * + * @return string + */ + public function getPostcode() + { + return $this->container['postcode']; + } + + /** + * Sets postcode + * + * @param string $postcode + * + * @return $this + */ + public function setPostcode($postcode) + { + $this->container['postcode'] = $postcode; + + return $this; + } + + + /** + * Gets street + * + * @return string + */ + public function getStreet() + { + return $this->container['street']; + } + + /** + * Sets street + * + * @param string $street + * + * @return $this + */ + public function setStreet($street) + { + $this->container['street'] = $street; + + return $this; + } + /** * Returns true if offset exists. False otherwise. * diff --git a/wallee-sdk/lib/Model/ShopifySubscriptionAddressCreate.php b/wallee-sdk/lib/Model/ShopifySubscriptionAddressCreate.php new file mode 100644 index 0000000..9bb9b3b --- /dev/null +++ b/wallee-sdk/lib/Model/ShopifySubscriptionAddressCreate.php @@ -0,0 +1,994 @@ + 'string', + 'commercial_register_number' => 'string', + 'country' => 'string', + 'date_of_birth' => '\DateTime', + 'dependent_locality' => 'string', + 'email_address' => 'string', + 'family_name' => 'string', + 'gender' => '\Wallee\Sdk\Model\Gender', + 'given_name' => 'string', + 'legal_organization_form' => 'int', + 'mobile_phone_number' => 'string', + 'organization_name' => 'string', + 'phone_number' => 'string', + 'postal_state' => 'string', + 'postcode' => 'string', + 'sales_tax_number' => 'string', + 'salutation' => 'string', + 'social_security_number' => 'string', + 'sorting_code' => 'string', + 'street' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'city' => null, + 'commercial_register_number' => null, + 'country' => null, + 'date_of_birth' => 'date', + 'dependent_locality' => null, + 'email_address' => null, + 'family_name' => null, + 'gender' => null, + 'given_name' => null, + 'legal_organization_form' => 'int64', + 'mobile_phone_number' => null, + 'organization_name' => null, + 'phone_number' => null, + 'postal_state' => null, + 'postcode' => null, + 'sales_tax_number' => null, + 'salutation' => null, + 'social_security_number' => null, + 'sorting_code' => null, + 'street' => null + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'city' => 'city', + 'commercial_register_number' => 'commercialRegisterNumber', + 'country' => 'country', + 'date_of_birth' => 'dateOfBirth', + 'dependent_locality' => 'dependentLocality', + 'email_address' => 'emailAddress', + 'family_name' => 'familyName', + 'gender' => 'gender', + 'given_name' => 'givenName', + 'legal_organization_form' => 'legalOrganizationForm', + 'mobile_phone_number' => 'mobilePhoneNumber', + 'organization_name' => 'organizationName', + 'phone_number' => 'phoneNumber', + 'postal_state' => 'postalState', + 'postcode' => 'postcode', + 'sales_tax_number' => 'salesTaxNumber', + 'salutation' => 'salutation', + 'social_security_number' => 'socialSecurityNumber', + 'sorting_code' => 'sortingCode', + 'street' => 'street' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'city' => 'setCity', + 'commercial_register_number' => 'setCommercialRegisterNumber', + 'country' => 'setCountry', + 'date_of_birth' => 'setDateOfBirth', + 'dependent_locality' => 'setDependentLocality', + 'email_address' => 'setEmailAddress', + 'family_name' => 'setFamilyName', + 'gender' => 'setGender', + 'given_name' => 'setGivenName', + 'legal_organization_form' => 'setLegalOrganizationForm', + 'mobile_phone_number' => 'setMobilePhoneNumber', + 'organization_name' => 'setOrganizationName', + 'phone_number' => 'setPhoneNumber', + 'postal_state' => 'setPostalState', + 'postcode' => 'setPostcode', + 'sales_tax_number' => 'setSalesTaxNumber', + 'salutation' => 'setSalutation', + 'social_security_number' => 'setSocialSecurityNumber', + 'sorting_code' => 'setSortingCode', + 'street' => 'setStreet' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'city' => 'getCity', + 'commercial_register_number' => 'getCommercialRegisterNumber', + 'country' => 'getCountry', + 'date_of_birth' => 'getDateOfBirth', + 'dependent_locality' => 'getDependentLocality', + 'email_address' => 'getEmailAddress', + 'family_name' => 'getFamilyName', + 'gender' => 'getGender', + 'given_name' => 'getGivenName', + 'legal_organization_form' => 'getLegalOrganizationForm', + 'mobile_phone_number' => 'getMobilePhoneNumber', + 'organization_name' => 'getOrganizationName', + 'phone_number' => 'getPhoneNumber', + 'postal_state' => 'getPostalState', + 'postcode' => 'getPostcode', + 'sales_tax_number' => 'getSalesTaxNumber', + 'salutation' => 'getSalutation', + 'social_security_number' => 'getSocialSecurityNumber', + 'sorting_code' => 'getSortingCode', + 'street' => 'getStreet' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['city'] = isset($data['city']) ? $data['city'] : null; + + $this->container['commercial_register_number'] = isset($data['commercial_register_number']) ? $data['commercial_register_number'] : null; + + $this->container['country'] = isset($data['country']) ? $data['country'] : null; + + $this->container['date_of_birth'] = isset($data['date_of_birth']) ? $data['date_of_birth'] : null; + + $this->container['dependent_locality'] = isset($data['dependent_locality']) ? $data['dependent_locality'] : null; + + $this->container['email_address'] = isset($data['email_address']) ? $data['email_address'] : null; + + $this->container['family_name'] = isset($data['family_name']) ? $data['family_name'] : null; + + $this->container['gender'] = isset($data['gender']) ? $data['gender'] : null; + + $this->container['given_name'] = isset($data['given_name']) ? $data['given_name'] : null; + + $this->container['legal_organization_form'] = isset($data['legal_organization_form']) ? $data['legal_organization_form'] : null; + + $this->container['mobile_phone_number'] = isset($data['mobile_phone_number']) ? $data['mobile_phone_number'] : null; + + $this->container['organization_name'] = isset($data['organization_name']) ? $data['organization_name'] : null; + + $this->container['phone_number'] = isset($data['phone_number']) ? $data['phone_number'] : null; + + $this->container['postal_state'] = isset($data['postal_state']) ? $data['postal_state'] : null; + + $this->container['postcode'] = isset($data['postcode']) ? $data['postcode'] : null; + + $this->container['sales_tax_number'] = isset($data['sales_tax_number']) ? $data['sales_tax_number'] : null; + + $this->container['salutation'] = isset($data['salutation']) ? $data['salutation'] : null; + + $this->container['social_security_number'] = isset($data['social_security_number']) ? $data['social_security_number'] : null; + + $this->container['sorting_code'] = isset($data['sorting_code']) ? $data['sorting_code'] : null; + + $this->container['street'] = isset($data['street']) ? $data['street'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if (!is_null($this->container['commercial_register_number']) && (mb_strlen($this->container['commercial_register_number']) > 100)) { + $invalidProperties[] = "invalid value for 'commercial_register_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['dependent_locality']) && (mb_strlen($this->container['dependent_locality']) > 100)) { + $invalidProperties[] = "invalid value for 'dependent_locality', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['email_address']) && (mb_strlen($this->container['email_address']) > 254)) { + $invalidProperties[] = "invalid value for 'email_address', the character length must be smaller than or equal to 254."; + } + + if (!is_null($this->container['given_name']) && (mb_strlen($this->container['given_name']) > 100)) { + $invalidProperties[] = "invalid value for 'given_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['mobile_phone_number']) && (mb_strlen($this->container['mobile_phone_number']) > 100)) { + $invalidProperties[] = "invalid value for 'mobile_phone_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['organization_name']) && (mb_strlen($this->container['organization_name']) > 100)) { + $invalidProperties[] = "invalid value for 'organization_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['phone_number']) && (mb_strlen($this->container['phone_number']) > 100)) { + $invalidProperties[] = "invalid value for 'phone_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['sales_tax_number']) && (mb_strlen($this->container['sales_tax_number']) > 100)) { + $invalidProperties[] = "invalid value for 'sales_tax_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['salutation']) && (mb_strlen($this->container['salutation']) > 20)) { + $invalidProperties[] = "invalid value for 'salutation', the character length must be smaller than or equal to 20."; + } + + if (!is_null($this->container['social_security_number']) && (mb_strlen($this->container['social_security_number']) > 100)) { + $invalidProperties[] = "invalid value for 'social_security_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['sorting_code']) && (mb_strlen($this->container['sorting_code']) > 100)) { + $invalidProperties[] = "invalid value for 'sorting_code', the character length must be smaller than or equal to 100."; + } + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets city + * + * @return string + */ + public function getCity() + { + return $this->container['city']; + } + + /** + * Sets city + * + * @param string $city + * + * @return $this + */ + public function setCity($city) + { + $this->container['city'] = $city; + + return $this; + } + + + /** + * Gets commercial_register_number + * + * @return string + */ + public function getCommercialRegisterNumber() + { + return $this->container['commercial_register_number']; + } + + /** + * Sets commercial_register_number + * + * @param string $commercial_register_number + * + * @return $this + */ + public function setCommercialRegisterNumber($commercial_register_number) + { + if (!is_null($commercial_register_number) && (mb_strlen($commercial_register_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $commercial_register_number when calling ShopifySubscriptionAddressCreate., must be smaller than or equal to 100.'); + } + + $this->container['commercial_register_number'] = $commercial_register_number; + + return $this; + } + + + /** + * Gets country + * + * @return string + */ + public function getCountry() + { + return $this->container['country']; + } + + /** + * Sets country + * + * @param string $country + * + * @return $this + */ + public function setCountry($country) + { + $this->container['country'] = $country; + + return $this; + } + + + /** + * Gets date_of_birth + * + * @return \DateTime + */ + public function getDateOfBirth() + { + return $this->container['date_of_birth']; + } + + /** + * Sets date_of_birth + * + * @param \DateTime $date_of_birth + * + * @return $this + */ + public function setDateOfBirth($date_of_birth) + { + $this->container['date_of_birth'] = $date_of_birth; + + return $this; + } + + + /** + * Gets dependent_locality + * + * @return string + */ + public function getDependentLocality() + { + return $this->container['dependent_locality']; + } + + /** + * Sets dependent_locality + * + * @param string $dependent_locality + * + * @return $this + */ + public function setDependentLocality($dependent_locality) + { + if (!is_null($dependent_locality) && (mb_strlen($dependent_locality) > 100)) { + throw new \InvalidArgumentException('invalid length for $dependent_locality when calling ShopifySubscriptionAddressCreate., must be smaller than or equal to 100.'); + } + + $this->container['dependent_locality'] = $dependent_locality; + + return $this; + } + + + /** + * Gets email_address + * + * @return string + */ + public function getEmailAddress() + { + return $this->container['email_address']; + } + + /** + * Sets email_address + * + * @param string $email_address + * + * @return $this + */ + public function setEmailAddress($email_address) + { + if (!is_null($email_address) && (mb_strlen($email_address) > 254)) { + throw new \InvalidArgumentException('invalid length for $email_address when calling ShopifySubscriptionAddressCreate., must be smaller than or equal to 254.'); + } + + $this->container['email_address'] = $email_address; + + return $this; + } + + + /** + * Gets family_name + * + * @return string + */ + public function getFamilyName() + { + return $this->container['family_name']; + } + + /** + * Sets family_name + * + * @param string $family_name + * + * @return $this + */ + public function setFamilyName($family_name) + { + $this->container['family_name'] = $family_name; + + return $this; + } + + + /** + * Gets gender + * + * @return \Wallee\Sdk\Model\Gender + */ + public function getGender() + { + return $this->container['gender']; + } + + /** + * Sets gender + * + * @param \Wallee\Sdk\Model\Gender $gender + * + * @return $this + */ + public function setGender($gender) + { + $this->container['gender'] = $gender; + + return $this; + } + + + /** + * Gets given_name + * + * @return string + */ + public function getGivenName() + { + return $this->container['given_name']; + } + + /** + * Sets given_name + * + * @param string $given_name + * + * @return $this + */ + public function setGivenName($given_name) + { + if (!is_null($given_name) && (mb_strlen($given_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $given_name when calling ShopifySubscriptionAddressCreate., must be smaller than or equal to 100.'); + } + + $this->container['given_name'] = $given_name; + + return $this; + } + + + /** + * Gets legal_organization_form + * + * @return int + */ + public function getLegalOrganizationForm() + { + return $this->container['legal_organization_form']; + } + + /** + * Sets legal_organization_form + * + * @param int $legal_organization_form + * + * @return $this + */ + public function setLegalOrganizationForm($legal_organization_form) + { + $this->container['legal_organization_form'] = $legal_organization_form; + + return $this; + } + + + /** + * Gets mobile_phone_number + * + * @return string + */ + public function getMobilePhoneNumber() + { + return $this->container['mobile_phone_number']; + } + + /** + * Sets mobile_phone_number + * + * @param string $mobile_phone_number + * + * @return $this + */ + public function setMobilePhoneNumber($mobile_phone_number) + { + if (!is_null($mobile_phone_number) && (mb_strlen($mobile_phone_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $mobile_phone_number when calling ShopifySubscriptionAddressCreate., must be smaller than or equal to 100.'); + } + + $this->container['mobile_phone_number'] = $mobile_phone_number; + + return $this; + } + + + /** + * Gets organization_name + * + * @return string + */ + public function getOrganizationName() + { + return $this->container['organization_name']; + } + + /** + * Sets organization_name + * + * @param string $organization_name + * + * @return $this + */ + public function setOrganizationName($organization_name) + { + if (!is_null($organization_name) && (mb_strlen($organization_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $organization_name when calling ShopifySubscriptionAddressCreate., must be smaller than or equal to 100.'); + } + + $this->container['organization_name'] = $organization_name; + + return $this; + } + + + /** + * Gets phone_number + * + * @return string + */ + public function getPhoneNumber() + { + return $this->container['phone_number']; + } + + /** + * Sets phone_number + * + * @param string $phone_number + * + * @return $this + */ + public function setPhoneNumber($phone_number) + { + if (!is_null($phone_number) && (mb_strlen($phone_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $phone_number when calling ShopifySubscriptionAddressCreate., must be smaller than or equal to 100.'); + } + + $this->container['phone_number'] = $phone_number; + + return $this; + } + + + /** + * Gets postal_state + * + * @return string + */ + public function getPostalState() + { + return $this->container['postal_state']; + } + + /** + * Sets postal_state + * + * @param string $postal_state + * + * @return $this + */ + public function setPostalState($postal_state) + { + $this->container['postal_state'] = $postal_state; + + return $this; + } + + + /** + * Gets postcode + * + * @return string + */ + public function getPostcode() + { + return $this->container['postcode']; + } + + /** + * Sets postcode + * + * @param string $postcode + * + * @return $this + */ + public function setPostcode($postcode) + { + $this->container['postcode'] = $postcode; + + return $this; + } + + + /** + * Gets sales_tax_number + * + * @return string + */ + public function getSalesTaxNumber() + { + return $this->container['sales_tax_number']; + } + + /** + * Sets sales_tax_number + * + * @param string $sales_tax_number + * + * @return $this + */ + public function setSalesTaxNumber($sales_tax_number) + { + if (!is_null($sales_tax_number) && (mb_strlen($sales_tax_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $sales_tax_number when calling ShopifySubscriptionAddressCreate., must be smaller than or equal to 100.'); + } + + $this->container['sales_tax_number'] = $sales_tax_number; + + return $this; + } + + + /** + * Gets salutation + * + * @return string + */ + public function getSalutation() + { + return $this->container['salutation']; + } + + /** + * Sets salutation + * + * @param string $salutation + * + * @return $this + */ + public function setSalutation($salutation) + { + if (!is_null($salutation) && (mb_strlen($salutation) > 20)) { + throw new \InvalidArgumentException('invalid length for $salutation when calling ShopifySubscriptionAddressCreate., must be smaller than or equal to 20.'); + } + + $this->container['salutation'] = $salutation; + + return $this; + } + + + /** + * Gets social_security_number + * + * @return string + */ + public function getSocialSecurityNumber() + { + return $this->container['social_security_number']; + } + + /** + * Sets social_security_number + * + * @param string $social_security_number + * + * @return $this + */ + public function setSocialSecurityNumber($social_security_number) + { + if (!is_null($social_security_number) && (mb_strlen($social_security_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $social_security_number when calling ShopifySubscriptionAddressCreate., must be smaller than or equal to 100.'); + } + + $this->container['social_security_number'] = $social_security_number; + + return $this; + } + + + /** + * Gets sorting_code + * + * @return string + */ + public function getSortingCode() + { + return $this->container['sorting_code']; + } + + /** + * Sets sorting_code + * + * @param string $sorting_code The sorting code identifies the post office at which the post box is located in. + * + * @return $this + */ + public function setSortingCode($sorting_code) + { + if (!is_null($sorting_code) && (mb_strlen($sorting_code) > 100)) { + throw new \InvalidArgumentException('invalid length for $sorting_code when calling ShopifySubscriptionAddressCreate., must be smaller than or equal to 100.'); + } + + $this->container['sorting_code'] = $sorting_code; + + return $this; + } + + + /** + * Gets street + * + * @return string + */ + public function getStreet() + { + return $this->container['street']; + } + + /** + * Sets street + * + * @param string $street + * + * @return $this + */ + public function setStreet($street) + { + $this->container['street'] = $street; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/wallee-sdk/lib/Model/ShopifySubscriptionBillingIntervalUnit.php b/wallee-sdk/lib/Model/ShopifySubscriptionBillingIntervalUnit.php index a4a7694..9af2009 100644 --- a/wallee-sdk/lib/Model/ShopifySubscriptionBillingIntervalUnit.php +++ b/wallee-sdk/lib/Model/ShopifySubscriptionBillingIntervalUnit.php @@ -1,8 +1,8 @@ '\Wallee\Sdk\Model\ShopifySubscriptionAddressCreate', + 'billing_configuration' => '\Wallee\Sdk\Model\ShopifySubscriptionModelBillingConfiguration', + 'currency' => 'string', + 'external_id' => 'string', + 'integration' => 'int', + 'items' => '\Wallee\Sdk\Model\ShopifySubscriptionModelItem[]', + 'language' => 'string', + 'shipping_address' => '\Wallee\Sdk\Model\ShopifySubscriptionAddressCreate', + 'shipping_method_name' => 'string', + 'space_view_id' => 'int', + 'store_order_confirmation_email_enabled' => 'bool', + 'subscriber' => '\Wallee\Sdk\Model\ShopifySubscriberCreation', + 'subscriber_suspension_allowed' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'billing_address' => null, + 'billing_configuration' => null, + 'currency' => null, + 'external_id' => null, + 'integration' => 'int64', + 'items' => null, + 'language' => null, + 'shipping_address' => null, + 'shipping_method_name' => null, + 'space_view_id' => 'int64', + 'store_order_confirmation_email_enabled' => null, + 'subscriber' => null, + 'subscriber_suspension_allowed' => null + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'billing_address' => 'billingAddress', + 'billing_configuration' => 'billingConfiguration', + 'currency' => 'currency', + 'external_id' => 'externalId', + 'integration' => 'integration', + 'items' => 'items', + 'language' => 'language', + 'shipping_address' => 'shippingAddress', + 'shipping_method_name' => 'shippingMethodName', + 'space_view_id' => 'spaceViewId', + 'store_order_confirmation_email_enabled' => 'storeOrderConfirmationEmailEnabled', + 'subscriber' => 'subscriber', + 'subscriber_suspension_allowed' => 'subscriberSuspensionAllowed' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'billing_address' => 'setBillingAddress', + 'billing_configuration' => 'setBillingConfiguration', + 'currency' => 'setCurrency', + 'external_id' => 'setExternalId', + 'integration' => 'setIntegration', + 'items' => 'setItems', + 'language' => 'setLanguage', + 'shipping_address' => 'setShippingAddress', + 'shipping_method_name' => 'setShippingMethodName', + 'space_view_id' => 'setSpaceViewId', + 'store_order_confirmation_email_enabled' => 'setStoreOrderConfirmationEmailEnabled', + 'subscriber' => 'setSubscriber', + 'subscriber_suspension_allowed' => 'setSubscriberSuspensionAllowed' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'billing_address' => 'getBillingAddress', + 'billing_configuration' => 'getBillingConfiguration', + 'currency' => 'getCurrency', + 'external_id' => 'getExternalId', + 'integration' => 'getIntegration', + 'items' => 'getItems', + 'language' => 'getLanguage', + 'shipping_address' => 'getShippingAddress', + 'shipping_method_name' => 'getShippingMethodName', + 'space_view_id' => 'getSpaceViewId', + 'store_order_confirmation_email_enabled' => 'getStoreOrderConfirmationEmailEnabled', + 'subscriber' => 'getSubscriber', + 'subscriber_suspension_allowed' => 'getSubscriberSuspensionAllowed' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['billing_address'] = isset($data['billing_address']) ? $data['billing_address'] : null; + + $this->container['billing_configuration'] = isset($data['billing_configuration']) ? $data['billing_configuration'] : null; + + $this->container['currency'] = isset($data['currency']) ? $data['currency'] : null; + + $this->container['external_id'] = isset($data['external_id']) ? $data['external_id'] : null; + + $this->container['integration'] = isset($data['integration']) ? $data['integration'] : null; + + $this->container['items'] = isset($data['items']) ? $data['items'] : null; + + $this->container['language'] = isset($data['language']) ? $data['language'] : null; + + $this->container['shipping_address'] = isset($data['shipping_address']) ? $data['shipping_address'] : null; + + $this->container['shipping_method_name'] = isset($data['shipping_method_name']) ? $data['shipping_method_name'] : null; + + $this->container['space_view_id'] = isset($data['space_view_id']) ? $data['space_view_id'] : null; + + $this->container['store_order_confirmation_email_enabled'] = isset($data['store_order_confirmation_email_enabled']) ? $data['store_order_confirmation_email_enabled'] : null; + + $this->container['subscriber'] = isset($data['subscriber']) ? $data['subscriber'] : null; + + $this->container['subscriber_suspension_allowed'] = isset($data['subscriber_suspension_allowed']) ? $data['subscriber_suspension_allowed'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['billing_address'] === null) { + $invalidProperties[] = "'billing_address' can't be null"; + } + if ($this->container['currency'] === null) { + $invalidProperties[] = "'currency' can't be null"; + } + if ($this->container['external_id'] === null) { + $invalidProperties[] = "'external_id' can't be null"; + } + if ($this->container['integration'] === null) { + $invalidProperties[] = "'integration' can't be null"; + } + if ($this->container['items'] === null) { + $invalidProperties[] = "'items' can't be null"; + } + if ($this->container['language'] === null) { + $invalidProperties[] = "'language' can't be null"; + } + if ($this->container['shipping_address'] === null) { + $invalidProperties[] = "'shipping_address' can't be null"; + } + if ($this->container['subscriber'] === null) { + $invalidProperties[] = "'subscriber' can't be null"; + } + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets billing_address + * + * @return \Wallee\Sdk\Model\ShopifySubscriptionAddressCreate + */ + public function getBillingAddress() + { + return $this->container['billing_address']; + } + + /** + * Sets billing_address + * + * @param \Wallee\Sdk\Model\ShopifySubscriptionAddressCreate $billing_address + * + * @return $this + */ + public function setBillingAddress($billing_address) + { + $this->container['billing_address'] = $billing_address; + + return $this; + } + + + /** + * Gets billing_configuration + * + * @return \Wallee\Sdk\Model\ShopifySubscriptionModelBillingConfiguration + */ + public function getBillingConfiguration() + { + return $this->container['billing_configuration']; + } + + /** + * Sets billing_configuration + * + * @param \Wallee\Sdk\Model\ShopifySubscriptionModelBillingConfiguration $billing_configuration + * + * @return $this + */ + public function setBillingConfiguration($billing_configuration) + { + $this->container['billing_configuration'] = $billing_configuration; + + return $this; + } + + + /** + * Gets currency + * + * @return string + */ + public function getCurrency() + { + return $this->container['currency']; + } + + /** + * Sets currency + * + * @param string $currency + * + * @return $this + */ + public function setCurrency($currency) + { + $this->container['currency'] = $currency; + + return $this; + } + + + /** + * Gets external_id + * + * @return string + */ + public function getExternalId() + { + return $this->container['external_id']; + } + + /** + * Sets external_id + * + * @param string $external_id The external id helps to identify the entity and a subsequent creation of an entity with the same ID will not create a new entity. + * + * @return $this + */ + public function setExternalId($external_id) + { + $this->container['external_id'] = $external_id; + + return $this; + } + + + /** + * Gets integration + * + * @return int + */ + public function getIntegration() + { + return $this->container['integration']; + } + + /** + * Sets integration + * + * @param int $integration + * + * @return $this + */ + public function setIntegration($integration) + { + $this->container['integration'] = $integration; + + return $this; + } + + + /** + * Gets items + * + * @return \Wallee\Sdk\Model\ShopifySubscriptionModelItem[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \Wallee\Sdk\Model\ShopifySubscriptionModelItem[] $items + * + * @return $this + */ + public function setItems($items) + { + $this->container['items'] = $items; + + return $this; + } + + + /** + * Gets language + * + * @return string + */ + public function getLanguage() + { + return $this->container['language']; + } + + /** + * Sets language + * + * @param string $language + * + * @return $this + */ + public function setLanguage($language) + { + $this->container['language'] = $language; + + return $this; + } + + + /** + * Gets shipping_address + * + * @return \Wallee\Sdk\Model\ShopifySubscriptionAddressCreate + */ + public function getShippingAddress() + { + return $this->container['shipping_address']; + } + + /** + * Sets shipping_address + * + * @param \Wallee\Sdk\Model\ShopifySubscriptionAddressCreate $shipping_address + * + * @return $this + */ + public function setShippingAddress($shipping_address) + { + $this->container['shipping_address'] = $shipping_address; + + return $this; + } + + + /** + * Gets shipping_method_name + * + * @return string + */ + public function getShippingMethodName() + { + return $this->container['shipping_method_name']; + } + + /** + * Sets shipping_method_name + * + * @param string $shipping_method_name + * + * @return $this + */ + public function setShippingMethodName($shipping_method_name) + { + $this->container['shipping_method_name'] = $shipping_method_name; + + return $this; + } + + + /** + * Gets space_view_id + * + * @return int + */ + public function getSpaceViewId() + { + return $this->container['space_view_id']; + } + + /** + * Sets space_view_id + * + * @param int $space_view_id + * + * @return $this + */ + public function setSpaceViewId($space_view_id) + { + $this->container['space_view_id'] = $space_view_id; + + return $this; + } + + + /** + * Gets store_order_confirmation_email_enabled + * + * @return bool + */ + public function getStoreOrderConfirmationEmailEnabled() + { + return $this->container['store_order_confirmation_email_enabled']; + } + + /** + * Sets store_order_confirmation_email_enabled + * + * @param bool $store_order_confirmation_email_enabled + * + * @return $this + */ + public function setStoreOrderConfirmationEmailEnabled($store_order_confirmation_email_enabled) + { + $this->container['store_order_confirmation_email_enabled'] = $store_order_confirmation_email_enabled; + + return $this; + } + + + /** + * Gets subscriber + * + * @return \Wallee\Sdk\Model\ShopifySubscriberCreation + */ + public function getSubscriber() + { + return $this->container['subscriber']; + } + + /** + * Sets subscriber + * + * @param \Wallee\Sdk\Model\ShopifySubscriberCreation $subscriber + * + * @return $this + */ + public function setSubscriber($subscriber) + { + $this->container['subscriber'] = $subscriber; + + return $this; + } + + + /** + * Gets subscriber_suspension_allowed + * + * @return bool + */ + public function getSubscriberSuspensionAllowed() + { + return $this->container['subscriber_suspension_allowed']; + } + + /** + * Sets subscriber_suspension_allowed + * + * @param bool $subscriber_suspension_allowed + * + * @return $this + */ + public function setSubscriberSuspensionAllowed($subscriber_suspension_allowed) + { + $this->container['subscriber_suspension_allowed'] = $subscriber_suspension_allowed; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/wallee-sdk/lib/Model/ShopifySubscriptionModelBillingConfiguration.php b/wallee-sdk/lib/Model/ShopifySubscriptionModelBillingConfiguration.php new file mode 100644 index 0000000..34339dc --- /dev/null +++ b/wallee-sdk/lib/Model/ShopifySubscriptionModelBillingConfiguration.php @@ -0,0 +1,522 @@ + 'int', + 'billing_interval_amount' => 'int', + 'billing_interval_unit' => '\Wallee\Sdk\Model\ShopifySubscriptionBillingIntervalUnit', + 'billing_weekday' => '\Wallee\Sdk\Model\ShopifySubscriptionWeekday', + 'maximal_billing_cycles' => 'int', + 'maximal_suspendable_cycles' => 'int', + 'minimal_billing_cycles' => 'int', + 'termination_billing_cycles' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'billing_day_of_month' => 'int32', + 'billing_interval_amount' => 'int32', + 'billing_interval_unit' => null, + 'billing_weekday' => null, + 'maximal_billing_cycles' => 'int32', + 'maximal_suspendable_cycles' => 'int32', + 'minimal_billing_cycles' => 'int32', + 'termination_billing_cycles' => 'int32' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'billing_day_of_month' => 'billingDayOfMonth', + 'billing_interval_amount' => 'billingIntervalAmount', + 'billing_interval_unit' => 'billingIntervalUnit', + 'billing_weekday' => 'billingWeekday', + 'maximal_billing_cycles' => 'maximalBillingCycles', + 'maximal_suspendable_cycles' => 'maximalSuspendableCycles', + 'minimal_billing_cycles' => 'minimalBillingCycles', + 'termination_billing_cycles' => 'terminationBillingCycles' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'billing_day_of_month' => 'setBillingDayOfMonth', + 'billing_interval_amount' => 'setBillingIntervalAmount', + 'billing_interval_unit' => 'setBillingIntervalUnit', + 'billing_weekday' => 'setBillingWeekday', + 'maximal_billing_cycles' => 'setMaximalBillingCycles', + 'maximal_suspendable_cycles' => 'setMaximalSuspendableCycles', + 'minimal_billing_cycles' => 'setMinimalBillingCycles', + 'termination_billing_cycles' => 'setTerminationBillingCycles' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'billing_day_of_month' => 'getBillingDayOfMonth', + 'billing_interval_amount' => 'getBillingIntervalAmount', + 'billing_interval_unit' => 'getBillingIntervalUnit', + 'billing_weekday' => 'getBillingWeekday', + 'maximal_billing_cycles' => 'getMaximalBillingCycles', + 'maximal_suspendable_cycles' => 'getMaximalSuspendableCycles', + 'minimal_billing_cycles' => 'getMinimalBillingCycles', + 'termination_billing_cycles' => 'getTerminationBillingCycles' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['billing_day_of_month'] = isset($data['billing_day_of_month']) ? $data['billing_day_of_month'] : null; + + $this->container['billing_interval_amount'] = isset($data['billing_interval_amount']) ? $data['billing_interval_amount'] : null; + + $this->container['billing_interval_unit'] = isset($data['billing_interval_unit']) ? $data['billing_interval_unit'] : null; + + $this->container['billing_weekday'] = isset($data['billing_weekday']) ? $data['billing_weekday'] : null; + + $this->container['maximal_billing_cycles'] = isset($data['maximal_billing_cycles']) ? $data['maximal_billing_cycles'] : null; + + $this->container['maximal_suspendable_cycles'] = isset($data['maximal_suspendable_cycles']) ? $data['maximal_suspendable_cycles'] : null; + + $this->container['minimal_billing_cycles'] = isset($data['minimal_billing_cycles']) ? $data['minimal_billing_cycles'] : null; + + $this->container['termination_billing_cycles'] = isset($data['termination_billing_cycles']) ? $data['termination_billing_cycles'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets billing_day_of_month + * + * @return int + */ + public function getBillingDayOfMonth() + { + return $this->container['billing_day_of_month']; + } + + /** + * Sets billing_day_of_month + * + * @param int $billing_day_of_month Define the day of the month on which the recurring orders should be created. + * + * @return $this + */ + public function setBillingDayOfMonth($billing_day_of_month) + { + $this->container['billing_day_of_month'] = $billing_day_of_month; + + return $this; + } + + + /** + * Gets billing_interval_amount + * + * @return int + */ + public function getBillingIntervalAmount() + { + return $this->container['billing_interval_amount']; + } + + /** + * Sets billing_interval_amount + * + * @param int $billing_interval_amount + * + * @return $this + */ + public function setBillingIntervalAmount($billing_interval_amount) + { + $this->container['billing_interval_amount'] = $billing_interval_amount; + + return $this; + } + + + /** + * Gets billing_interval_unit + * + * @return \Wallee\Sdk\Model\ShopifySubscriptionBillingIntervalUnit + */ + public function getBillingIntervalUnit() + { + return $this->container['billing_interval_unit']; + } + + /** + * Sets billing_interval_unit + * + * @param \Wallee\Sdk\Model\ShopifySubscriptionBillingIntervalUnit $billing_interval_unit Define how frequently recurring orders should be created. + * + * @return $this + */ + public function setBillingIntervalUnit($billing_interval_unit) + { + $this->container['billing_interval_unit'] = $billing_interval_unit; + + return $this; + } + + + /** + * Gets billing_weekday + * + * @return \Wallee\Sdk\Model\ShopifySubscriptionWeekday + */ + public function getBillingWeekday() + { + return $this->container['billing_weekday']; + } + + /** + * Sets billing_weekday + * + * @param \Wallee\Sdk\Model\ShopifySubscriptionWeekday $billing_weekday Define the weekday on which the recurring orders should be created. + * + * @return $this + */ + public function setBillingWeekday($billing_weekday) + { + $this->container['billing_weekday'] = $billing_weekday; + + return $this; + } + + + /** + * Gets maximal_billing_cycles + * + * @return int + */ + public function getMaximalBillingCycles() + { + return $this->container['maximal_billing_cycles']; + } + + /** + * Sets maximal_billing_cycles + * + * @param int $maximal_billing_cycles Define the maximum number of orders the subscription will run for. + * + * @return $this + */ + public function setMaximalBillingCycles($maximal_billing_cycles) + { + $this->container['maximal_billing_cycles'] = $maximal_billing_cycles; + + return $this; + } + + + /** + * Gets maximal_suspendable_cycles + * + * @return int + */ + public function getMaximalSuspendableCycles() + { + return $this->container['maximal_suspendable_cycles']; + } + + /** + * Sets maximal_suspendable_cycles + * + * @param int $maximal_suspendable_cycles Define the maximum number of orders the subscription can be suspended for at a time. + * + * @return $this + */ + public function setMaximalSuspendableCycles($maximal_suspendable_cycles) + { + $this->container['maximal_suspendable_cycles'] = $maximal_suspendable_cycles; + + return $this; + } + + + /** + * Gets minimal_billing_cycles + * + * @return int + */ + public function getMinimalBillingCycles() + { + return $this->container['minimal_billing_cycles']; + } + + /** + * Sets minimal_billing_cycles + * + * @param int $minimal_billing_cycles Define the minimal number of orders the subscription will run for. + * + * @return $this + */ + public function setMinimalBillingCycles($minimal_billing_cycles) + { + $this->container['minimal_billing_cycles'] = $minimal_billing_cycles; + + return $this; + } + + + /** + * Gets termination_billing_cycles + * + * @return int + */ + public function getTerminationBillingCycles() + { + return $this->container['termination_billing_cycles']; + } + + /** + * Sets termination_billing_cycles + * + * @param int $termination_billing_cycles Define the number of orders the subscription will keep running for after its termination has been requested. + * + * @return $this + */ + public function setTerminationBillingCycles($termination_billing_cycles) + { + $this->container['termination_billing_cycles'] = $termination_billing_cycles; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/wallee-sdk/lib/Model/ShopifySubscriptionEditModelItem.php b/wallee-sdk/lib/Model/ShopifySubscriptionModelItem.php similarity index 94% rename from wallee-sdk/lib/Model/ShopifySubscriptionEditModelItem.php rename to wallee-sdk/lib/Model/ShopifySubscriptionModelItem.php index 01b9823..f085f8d 100644 --- a/wallee-sdk/lib/Model/ShopifySubscriptionEditModelItem.php +++ b/wallee-sdk/lib/Model/ShopifySubscriptionModelItem.php @@ -1,8 +1,8 @@ 'int', 'quantity' => 'float', 'recalculate_price' => 'bool', - 'tax_lines' => '\Wallee\Sdk\Model\ShopifySubscriptionEditModelTaxLine[]' + 'tax_lines' => '\Wallee\Sdk\Model\ShopifySubscriptionModelTaxLine[]' ]; /** @@ -331,7 +331,7 @@ public function setRecalculatePrice($recalculate_price) /** * Gets tax_lines * - * @return \Wallee\Sdk\Model\ShopifySubscriptionEditModelTaxLine[] + * @return \Wallee\Sdk\Model\ShopifySubscriptionModelTaxLine[] */ public function getTaxLines() { @@ -341,7 +341,7 @@ public function getTaxLines() /** * Sets tax_lines * - * @param \Wallee\Sdk\Model\ShopifySubscriptionEditModelTaxLine[] $tax_lines + * @param \Wallee\Sdk\Model\ShopifySubscriptionModelTaxLine[] $tax_lines * * @return $this */ diff --git a/wallee-sdk/lib/Model/ShopifySubscriptionEditModelTaxLine.php b/wallee-sdk/lib/Model/ShopifySubscriptionModelTaxLine.php similarity index 96% rename from wallee-sdk/lib/Model/ShopifySubscriptionEditModelTaxLine.php rename to wallee-sdk/lib/Model/ShopifySubscriptionModelTaxLine.php index 5b7baeb..ab12042 100644 --- a/wallee-sdk/lib/Model/ShopifySubscriptionEditModelTaxLine.php +++ b/wallee-sdk/lib/Model/ShopifySubscriptionModelTaxLine.php @@ -1,8 +1,8 @@ 'bool', 'subscriber_suspension_allowed' => 'bool', 'termination_billing_cycles' => 'int', + 'updated_at' => '\DateTime', 'version' => 'int' ]; @@ -112,6 +113,7 @@ class ShopifySubscriptionProduct implements ModelInterface, ArrayAccess 'store_order_confirmation_email_enabled' => null, 'subscriber_suspension_allowed' => null, 'termination_billing_cycles' => 'int32', + 'updated_at' => 'date-time', 'version' => 'int32' ]; @@ -149,6 +151,7 @@ class ShopifySubscriptionProduct implements ModelInterface, ArrayAccess 'store_order_confirmation_email_enabled' => 'storeOrderConfirmationEmailEnabled', 'subscriber_suspension_allowed' => 'subscriberSuspensionAllowed', 'termination_billing_cycles' => 'terminationBillingCycles', + 'updated_at' => 'updatedAt', 'version' => 'version' ]; @@ -185,6 +188,7 @@ class ShopifySubscriptionProduct implements ModelInterface, ArrayAccess 'store_order_confirmation_email_enabled' => 'setStoreOrderConfirmationEmailEnabled', 'subscriber_suspension_allowed' => 'setSubscriberSuspensionAllowed', 'termination_billing_cycles' => 'setTerminationBillingCycles', + 'updated_at' => 'setUpdatedAt', 'version' => 'setVersion' ]; @@ -221,6 +225,7 @@ class ShopifySubscriptionProduct implements ModelInterface, ArrayAccess 'store_order_confirmation_email_enabled' => 'getStoreOrderConfirmationEmailEnabled', 'subscriber_suspension_allowed' => 'getSubscriberSuspensionAllowed', 'termination_billing_cycles' => 'getTerminationBillingCycles', + 'updated_at' => 'getUpdatedAt', 'version' => 'getVersion' ]; @@ -296,6 +301,8 @@ public function __construct(array $data = null) $this->container['termination_billing_cycles'] = isset($data['termination_billing_cycles']) ? $data['termination_billing_cycles'] : null; + $this->container['updated_at'] = isset($data['updated_at']) ? $data['updated_at'] : null; + $this->container['version'] = isset($data['version']) ? $data['version'] : null; } @@ -1064,6 +1071,31 @@ public function setTerminationBillingCycles($termination_billing_cycles) } + /** + * Gets updated_at + * + * @return \DateTime + */ + public function getUpdatedAt() + { + return $this->container['updated_at']; + } + + /** + * Sets updated_at + * + * @param \DateTime $updated_at + * + * @return $this + */ + public function setUpdatedAt($updated_at) + { + $this->container['updated_at'] = $updated_at; + + return $this; + } + + /** * Gets version * diff --git a/wallee-sdk/lib/Model/ShopifySubscriptionProductCreate.php b/wallee-sdk/lib/Model/ShopifySubscriptionProductCreate.php index be8f37d..e0b0a1e 100644 --- a/wallee-sdk/lib/Model/ShopifySubscriptionProductCreate.php +++ b/wallee-sdk/lib/Model/ShopifySubscriptionProductCreate.php @@ -1,8 +1,8 @@ container['state'] === null) { - $invalidProperties[] = "'state' can't be null"; + if ($this->container['product_id'] === null) { + $invalidProperties[] = "'product_id' can't be null"; } if ($this->container['product_variant_id'] === null) { $invalidProperties[] = "'product_variant_id' can't be null"; } + if ($this->container['shop'] === null) { + $invalidProperties[] = "'shop' can't be null"; + } return $invalidProperties; } diff --git a/wallee-sdk/lib/Model/ShopifySubscriptionProductPricingOption.php b/wallee-sdk/lib/Model/ShopifySubscriptionProductPricingOption.php index 44464e7..7c1b6b0 100644 --- a/wallee-sdk/lib/Model/ShopifySubscriptionProductPricingOption.php +++ b/wallee-sdk/lib/Model/ShopifySubscriptionProductPricingOption.php @@ -1,8 +1,8 @@ '\Wallee\Sdk\Model\ShopifySubscriptionAddressCreate', + 'id' => 'int', + 'shipping_address' => '\Wallee\Sdk\Model\ShopifySubscriptionAddressCreate' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'billing_address' => null, + 'id' => 'int64', + 'shipping_address' => null + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'billing_address' => 'billingAddress', + 'id' => 'id', + 'shipping_address' => 'shippingAddress' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'billing_address' => 'setBillingAddress', + 'id' => 'setId', + 'shipping_address' => 'setShippingAddress' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'billing_address' => 'getBillingAddress', + 'id' => 'getId', + 'shipping_address' => 'getShippingAddress' + ]; + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + + $this->container['billing_address'] = isset($data['billing_address']) ? $data['billing_address'] : null; + + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + + $this->container['shipping_address'] = isset($data['shipping_address']) ? $data['shipping_address'] : null; + + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$swaggerModelName; + } + + + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + + /** + * Gets billing_address + * + * @return \Wallee\Sdk\Model\ShopifySubscriptionAddressCreate + */ + public function getBillingAddress() + { + return $this->container['billing_address']; + } + + /** + * Sets billing_address + * + * @param \Wallee\Sdk\Model\ShopifySubscriptionAddressCreate $billing_address + * + * @return $this + */ + public function setBillingAddress($billing_address) + { + $this->container['billing_address'] = $billing_address; + + return $this; + } + + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + + /** + * Gets shipping_address + * + * @return \Wallee\Sdk\Model\ShopifySubscriptionAddressCreate + */ + public function getShippingAddress() + { + return $this->container['shipping_address']; + } + + /** + * Sets shipping_address + * + * @param \Wallee\Sdk\Model\ShopifySubscriptionAddressCreate $shipping_address + * + * @return $this + */ + public function setShippingAddress($shipping_address) + { + $this->container['shipping_address'] = $shipping_address; + + return $this; + } + + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/wallee-sdk/lib/Model/ShopifySubscriptionUpdateRequest.php b/wallee-sdk/lib/Model/ShopifySubscriptionUpdateRequest.php index 22f2aa4..ac61109 100644 --- a/wallee-sdk/lib/Model/ShopifySubscriptionUpdateRequest.php +++ b/wallee-sdk/lib/Model/ShopifySubscriptionUpdateRequest.php @@ -1,8 +1,8 @@ 'int', - 'billing_interval_amount' => 'int', - 'billing_interval_unit' => '\Wallee\Sdk\Model\ShopifySubscriptionBillingIntervalUnit', - 'billing_weekday' => '\Wallee\Sdk\Model\ShopifySubscriptionWeekday', + 'billing_configuration' => '\Wallee\Sdk\Model\ShopifySubscriptionModelBillingConfiguration', 'id' => 'int', - 'items' => '\Wallee\Sdk\Model\ShopifySubscriptionEditModelItem[]', - 'maximal_billing_cycles' => 'int', - 'maximal_suspendable_cycles' => 'int', - 'minimal_billing_cycles' => 'int', + 'items' => '\Wallee\Sdk\Model\ShopifySubscriptionModelItem[]', 'store_order_confirmation_email_enabled' => 'bool', - 'subscriber_suspension_allowed' => 'bool', - 'termination_billing_cycles' => 'int' + 'subscriber_suspension_allowed' => 'bool' ]; /** @@ -69,18 +62,11 @@ class ShopifySubscriptionUpdateRequest implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'billing_day_of_month' => 'int32', - 'billing_interval_amount' => 'int32', - 'billing_interval_unit' => null, - 'billing_weekday' => null, + 'billing_configuration' => null, 'id' => 'int64', 'items' => null, - 'maximal_billing_cycles' => 'int32', - 'maximal_suspendable_cycles' => 'int32', - 'minimal_billing_cycles' => 'int32', 'store_order_confirmation_email_enabled' => null, - 'subscriber_suspension_allowed' => null, - 'termination_billing_cycles' => 'int32' + 'subscriber_suspension_allowed' => null ]; /** @@ -90,18 +76,11 @@ class ShopifySubscriptionUpdateRequest implements ModelInterface, ArrayAccess * @var string[] */ protected static $attributeMap = [ - 'billing_day_of_month' => 'billingDayOfMonth', - 'billing_interval_amount' => 'billingIntervalAmount', - 'billing_interval_unit' => 'billingIntervalUnit', - 'billing_weekday' => 'billingWeekday', + 'billing_configuration' => 'billingConfiguration', 'id' => 'id', 'items' => 'items', - 'maximal_billing_cycles' => 'maximalBillingCycles', - 'maximal_suspendable_cycles' => 'maximalSuspendableCycles', - 'minimal_billing_cycles' => 'minimalBillingCycles', 'store_order_confirmation_email_enabled' => 'storeOrderConfirmationEmailEnabled', - 'subscriber_suspension_allowed' => 'subscriberSuspensionAllowed', - 'termination_billing_cycles' => 'terminationBillingCycles' + 'subscriber_suspension_allowed' => 'subscriberSuspensionAllowed' ]; /** @@ -110,18 +89,11 @@ class ShopifySubscriptionUpdateRequest implements ModelInterface, ArrayAccess * @var string[] */ protected static $setters = [ - 'billing_day_of_month' => 'setBillingDayOfMonth', - 'billing_interval_amount' => 'setBillingIntervalAmount', - 'billing_interval_unit' => 'setBillingIntervalUnit', - 'billing_weekday' => 'setBillingWeekday', + 'billing_configuration' => 'setBillingConfiguration', 'id' => 'setId', 'items' => 'setItems', - 'maximal_billing_cycles' => 'setMaximalBillingCycles', - 'maximal_suspendable_cycles' => 'setMaximalSuspendableCycles', - 'minimal_billing_cycles' => 'setMinimalBillingCycles', 'store_order_confirmation_email_enabled' => 'setStoreOrderConfirmationEmailEnabled', - 'subscriber_suspension_allowed' => 'setSubscriberSuspensionAllowed', - 'termination_billing_cycles' => 'setTerminationBillingCycles' + 'subscriber_suspension_allowed' => 'setSubscriberSuspensionAllowed' ]; /** @@ -130,18 +102,11 @@ class ShopifySubscriptionUpdateRequest implements ModelInterface, ArrayAccess * @var string[] */ protected static $getters = [ - 'billing_day_of_month' => 'getBillingDayOfMonth', - 'billing_interval_amount' => 'getBillingIntervalAmount', - 'billing_interval_unit' => 'getBillingIntervalUnit', - 'billing_weekday' => 'getBillingWeekday', + 'billing_configuration' => 'getBillingConfiguration', 'id' => 'getId', 'items' => 'getItems', - 'maximal_billing_cycles' => 'getMaximalBillingCycles', - 'maximal_suspendable_cycles' => 'getMaximalSuspendableCycles', - 'minimal_billing_cycles' => 'getMinimalBillingCycles', 'store_order_confirmation_email_enabled' => 'getStoreOrderConfirmationEmailEnabled', - 'subscriber_suspension_allowed' => 'getSubscriberSuspensionAllowed', - 'termination_billing_cycles' => 'getTerminationBillingCycles' + 'subscriber_suspension_allowed' => 'getSubscriberSuspensionAllowed' ]; @@ -162,30 +127,16 @@ class ShopifySubscriptionUpdateRequest implements ModelInterface, ArrayAccess public function __construct(array $data = null) { - $this->container['billing_day_of_month'] = isset($data['billing_day_of_month']) ? $data['billing_day_of_month'] : null; - - $this->container['billing_interval_amount'] = isset($data['billing_interval_amount']) ? $data['billing_interval_amount'] : null; - - $this->container['billing_interval_unit'] = isset($data['billing_interval_unit']) ? $data['billing_interval_unit'] : null; - - $this->container['billing_weekday'] = isset($data['billing_weekday']) ? $data['billing_weekday'] : null; + $this->container['billing_configuration'] = isset($data['billing_configuration']) ? $data['billing_configuration'] : null; $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['items'] = isset($data['items']) ? $data['items'] : null; - $this->container['maximal_billing_cycles'] = isset($data['maximal_billing_cycles']) ? $data['maximal_billing_cycles'] : null; - - $this->container['maximal_suspendable_cycles'] = isset($data['maximal_suspendable_cycles']) ? $data['maximal_suspendable_cycles'] : null; - - $this->container['minimal_billing_cycles'] = isset($data['minimal_billing_cycles']) ? $data['minimal_billing_cycles'] : null; - $this->container['store_order_confirmation_email_enabled'] = isset($data['store_order_confirmation_email_enabled']) ? $data['store_order_confirmation_email_enabled'] : null; $this->container['subscriber_suspension_allowed'] = isset($data['subscriber_suspension_allowed']) ? $data['subscriber_suspension_allowed'] : null; - $this->container['termination_billing_cycles'] = isset($data['termination_billing_cycles']) ? $data['termination_billing_cycles'] : null; - } /** @@ -278,100 +229,25 @@ public function valid() /** - * Gets billing_day_of_month - * - * @return int - */ - public function getBillingDayOfMonth() - { - return $this->container['billing_day_of_month']; - } - - /** - * Sets billing_day_of_month - * - * @param int $billing_day_of_month Define the day of the month on which the recurring orders should be created. - * - * @return $this - */ - public function setBillingDayOfMonth($billing_day_of_month) - { - $this->container['billing_day_of_month'] = $billing_day_of_month; - - return $this; - } - - - /** - * Gets billing_interval_amount - * - * @return int - */ - public function getBillingIntervalAmount() - { - return $this->container['billing_interval_amount']; - } - - /** - * Sets billing_interval_amount - * - * @param int $billing_interval_amount - * - * @return $this - */ - public function setBillingIntervalAmount($billing_interval_amount) - { - $this->container['billing_interval_amount'] = $billing_interval_amount; - - return $this; - } - - - /** - * Gets billing_interval_unit + * Gets billing_configuration * - * @return \Wallee\Sdk\Model\ShopifySubscriptionBillingIntervalUnit + * @return \Wallee\Sdk\Model\ShopifySubscriptionModelBillingConfiguration */ - public function getBillingIntervalUnit() + public function getBillingConfiguration() { - return $this->container['billing_interval_unit']; + return $this->container['billing_configuration']; } /** - * Sets billing_interval_unit + * Sets billing_configuration * - * @param \Wallee\Sdk\Model\ShopifySubscriptionBillingIntervalUnit $billing_interval_unit Define how frequently recurring orders should be created. + * @param \Wallee\Sdk\Model\ShopifySubscriptionModelBillingConfiguration $billing_configuration * * @return $this */ - public function setBillingIntervalUnit($billing_interval_unit) + public function setBillingConfiguration($billing_configuration) { - $this->container['billing_interval_unit'] = $billing_interval_unit; - - return $this; - } - - - /** - * Gets billing_weekday - * - * @return \Wallee\Sdk\Model\ShopifySubscriptionWeekday - */ - public function getBillingWeekday() - { - return $this->container['billing_weekday']; - } - - /** - * Sets billing_weekday - * - * @param \Wallee\Sdk\Model\ShopifySubscriptionWeekday $billing_weekday Define the weekday on which the recurring orders should be created. - * - * @return $this - */ - public function setBillingWeekday($billing_weekday) - { - $this->container['billing_weekday'] = $billing_weekday; + $this->container['billing_configuration'] = $billing_configuration; return $this; } @@ -405,7 +281,7 @@ public function setId($id) /** * Gets items * - * @return \Wallee\Sdk\Model\ShopifySubscriptionEditModelItem[] + * @return \Wallee\Sdk\Model\ShopifySubscriptionModelItem[] */ public function getItems() { @@ -415,7 +291,7 @@ public function getItems() /** * Sets items * - * @param \Wallee\Sdk\Model\ShopifySubscriptionEditModelItem[] $items + * @param \Wallee\Sdk\Model\ShopifySubscriptionModelItem[] $items * * @return $this */ @@ -427,81 +303,6 @@ public function setItems($items) } - /** - * Gets maximal_billing_cycles - * - * @return int - */ - public function getMaximalBillingCycles() - { - return $this->container['maximal_billing_cycles']; - } - - /** - * Sets maximal_billing_cycles - * - * @param int $maximal_billing_cycles Define the maximum number of orders the subscription will run for. - * - * @return $this - */ - public function setMaximalBillingCycles($maximal_billing_cycles) - { - $this->container['maximal_billing_cycles'] = $maximal_billing_cycles; - - return $this; - } - - - /** - * Gets maximal_suspendable_cycles - * - * @return int - */ - public function getMaximalSuspendableCycles() - { - return $this->container['maximal_suspendable_cycles']; - } - - /** - * Sets maximal_suspendable_cycles - * - * @param int $maximal_suspendable_cycles Define the maximum number of orders the subscription can be suspended for at a time. - * - * @return $this - */ - public function setMaximalSuspendableCycles($maximal_suspendable_cycles) - { - $this->container['maximal_suspendable_cycles'] = $maximal_suspendable_cycles; - - return $this; - } - - - /** - * Gets minimal_billing_cycles - * - * @return int - */ - public function getMinimalBillingCycles() - { - return $this->container['minimal_billing_cycles']; - } - - /** - * Sets minimal_billing_cycles - * - * @param int $minimal_billing_cycles Define the minimal number of orders the subscription will run for. - * - * @return $this - */ - public function setMinimalBillingCycles($minimal_billing_cycles) - { - $this->container['minimal_billing_cycles'] = $minimal_billing_cycles; - - return $this; - } - - /** * Gets store_order_confirmation_email_enabled * @@ -551,31 +352,6 @@ public function setSubscriberSuspensionAllowed($subscriber_suspension_allowed) return $this; } - - /** - * Gets termination_billing_cycles - * - * @return int - */ - public function getTerminationBillingCycles() - { - return $this->container['termination_billing_cycles']; - } - - /** - * Sets termination_billing_cycles - * - * @param int $termination_billing_cycles Define the number of orders the subscription will keep running for after its termination has been requested. - * - * @return $this - */ - public function setTerminationBillingCycles($termination_billing_cycles) - { - $this->container['termination_billing_cycles'] = $termination_billing_cycles; - - return $this; - } - /** * Returns true if offset exists. False otherwise. * diff --git a/wallee-sdk/lib/Model/ShopifySubscriptionVersion.php b/wallee-sdk/lib/Model/ShopifySubscriptionVersion.php index 5a67dd4..4a2ea36 100644 --- a/wallee-sdk/lib/Model/ShopifySubscriptionVersion.php +++ b/wallee-sdk/lib/Model/ShopifySubscriptionVersion.php @@ -1,8 +1,8 @@ 'string', 'created_on' => '\DateTime', 'integration' => '\Wallee\Sdk\Model\ShopifyIntegration', + 'linked_space_id' => 'int', 'order_id' => 'string', 'order_name' => 'string', 'planned_purge_date' => '\DateTime', @@ -67,6 +68,7 @@ class ShopifyTransaction extends TransactionAwareEntity 'checkout_id' => null, 'created_on' => 'date-time', 'integration' => null, + 'linked_space_id' => 'int64', 'order_id' => null, 'order_name' => null, 'planned_purge_date' => 'date-time', @@ -85,6 +87,7 @@ class ShopifyTransaction extends TransactionAwareEntity 'checkout_id' => 'checkoutId', 'created_on' => 'createdOn', 'integration' => 'integration', + 'linked_space_id' => 'linkedSpaceId', 'order_id' => 'orderId', 'order_name' => 'orderName', 'planned_purge_date' => 'plannedPurgeDate', @@ -102,6 +105,7 @@ class ShopifyTransaction extends TransactionAwareEntity 'checkout_id' => 'setCheckoutId', 'created_on' => 'setCreatedOn', 'integration' => 'setIntegration', + 'linked_space_id' => 'setLinkedSpaceId', 'order_id' => 'setOrderId', 'order_name' => 'setOrderName', 'planned_purge_date' => 'setPlannedPurgeDate', @@ -119,6 +123,7 @@ class ShopifyTransaction extends TransactionAwareEntity 'checkout_id' => 'getCheckoutId', 'created_on' => 'getCreatedOn', 'integration' => 'getIntegration', + 'linked_space_id' => 'getLinkedSpaceId', 'order_id' => 'getOrderId', 'order_name' => 'getOrderName', 'planned_purge_date' => 'getPlannedPurgeDate', @@ -147,6 +152,8 @@ public function __construct(array $data = null) $this->container['integration'] = isset($data['integration']) ? $data['integration'] : null; + $this->container['linked_space_id'] = isset($data['linked_space_id']) ? $data['linked_space_id'] : null; + $this->container['order_id'] = isset($data['order_id']) ? $data['order_id'] : null; $this->container['order_name'] = isset($data['order_name']) ? $data['order_name'] : null; @@ -325,6 +332,31 @@ public function setIntegration($integration) } + /** + * Gets linked_space_id + * + * @return int + */ + public function getLinkedSpaceId() + { + return $this->container['linked_space_id']; + } + + /** + * Sets linked_space_id + * + * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * + * @return $this + */ + public function setLinkedSpaceId($linked_space_id) + { + $this->container['linked_space_id'] = $linked_space_id; + + return $this; + } + + /** * Gets order_id * diff --git a/wallee-sdk/lib/Model/ShopifyTransactionState.php b/wallee-sdk/lib/Model/ShopifyTransactionState.php index 8a7055b..292cf16 100644 --- a/wallee-sdk/lib/Model/ShopifyTransactionState.php +++ b/wallee-sdk/lib/Model/ShopifyTransactionState.php @@ -1,8 +1,8 @@ '\Wallee\Sdk\Model\Account', 'active' => 'bool', 'active_or_restricted_active' => 'bool', + 'created_by' => 'int', + 'created_on' => '\DateTime', 'database' => '\Wallee\Sdk\Model\TenantDatabase', + 'deleted_by' => 'int', + 'deleted_on' => '\DateTime', 'id' => 'int', + 'last_modified_date' => '\DateTime', 'name' => 'string', 'planned_purge_date' => '\DateTime', 'postal_address' => '\Wallee\Sdk\Model\SpaceAddress', @@ -75,8 +80,13 @@ class Space implements ModelInterface, ArrayAccess 'account' => null, 'active' => null, 'active_or_restricted_active' => null, + 'created_by' => 'int64', + 'created_on' => 'date-time', 'database' => null, + 'deleted_by' => 'int64', + 'deleted_on' => 'date-time', 'id' => 'int64', + 'last_modified_date' => 'date-time', 'name' => null, 'planned_purge_date' => 'date-time', 'postal_address' => null, @@ -99,8 +109,13 @@ class Space implements ModelInterface, ArrayAccess 'account' => 'account', 'active' => 'active', 'active_or_restricted_active' => 'activeOrRestrictedActive', + 'created_by' => 'createdBy', + 'created_on' => 'createdOn', 'database' => 'database', + 'deleted_by' => 'deletedBy', + 'deleted_on' => 'deletedOn', 'id' => 'id', + 'last_modified_date' => 'lastModifiedDate', 'name' => 'name', 'planned_purge_date' => 'plannedPurgeDate', 'postal_address' => 'postalAddress', @@ -122,8 +137,13 @@ class Space implements ModelInterface, ArrayAccess 'account' => 'setAccount', 'active' => 'setActive', 'active_or_restricted_active' => 'setActiveOrRestrictedActive', + 'created_by' => 'setCreatedBy', + 'created_on' => 'setCreatedOn', 'database' => 'setDatabase', + 'deleted_by' => 'setDeletedBy', + 'deleted_on' => 'setDeletedOn', 'id' => 'setId', + 'last_modified_date' => 'setLastModifiedDate', 'name' => 'setName', 'planned_purge_date' => 'setPlannedPurgeDate', 'postal_address' => 'setPostalAddress', @@ -145,8 +165,13 @@ class Space implements ModelInterface, ArrayAccess 'account' => 'getAccount', 'active' => 'getActive', 'active_or_restricted_active' => 'getActiveOrRestrictedActive', + 'created_by' => 'getCreatedBy', + 'created_on' => 'getCreatedOn', 'database' => 'getDatabase', + 'deleted_by' => 'getDeletedBy', + 'deleted_on' => 'getDeletedOn', 'id' => 'getId', + 'last_modified_date' => 'getLastModifiedDate', 'name' => 'getName', 'planned_purge_date' => 'getPlannedPurgeDate', 'postal_address' => 'getPostalAddress', @@ -183,10 +208,20 @@ public function __construct(array $data = null) $this->container['active_or_restricted_active'] = isset($data['active_or_restricted_active']) ? $data['active_or_restricted_active'] : null; + $this->container['created_by'] = isset($data['created_by']) ? $data['created_by'] : null; + + $this->container['created_on'] = isset($data['created_on']) ? $data['created_on'] : null; + $this->container['database'] = isset($data['database']) ? $data['database'] : null; + $this->container['deleted_by'] = isset($data['deleted_by']) ? $data['deleted_by'] : null; + + $this->container['deleted_on'] = isset($data['deleted_on']) ? $data['deleted_on'] : null; + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['last_modified_date'] = isset($data['last_modified_date']) ? $data['last_modified_date'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['planned_purge_date'] = isset($data['planned_purge_date']) ? $data['planned_purge_date'] : null; @@ -218,6 +253,14 @@ public function listInvalidProperties() { $invalidProperties = []; + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) > 200)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 200."; + } + + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) < 3)) { + $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 3."; + } + return $invalidProperties; } @@ -373,6 +416,56 @@ public function setActiveOrRestrictedActive($active_or_restricted_active) } + /** + * Gets created_by + * + * @return int + */ + public function getCreatedBy() + { + return $this->container['created_by']; + } + + /** + * Sets created_by + * + * @param int $created_by The ID of the user who created this entity. + * + * @return $this + */ + public function setCreatedBy($created_by) + { + $this->container['created_by'] = $created_by; + + return $this; + } + + + /** + * Gets created_on + * + * @return \DateTime + */ + public function getCreatedOn() + { + return $this->container['created_on']; + } + + /** + * Sets created_on + * + * @param \DateTime $created_on The date and time when this entity was created. + * + * @return $this + */ + public function setCreatedOn($created_on) + { + $this->container['created_on'] = $created_on; + + return $this; + } + + /** * Gets database * @@ -398,6 +491,56 @@ public function setDatabase($database) } + /** + * Gets deleted_by + * + * @return int + */ + public function getDeletedBy() + { + return $this->container['deleted_by']; + } + + /** + * Sets deleted_by + * + * @param int $deleted_by The ID of a user that deleted this entity. + * + * @return $this + */ + public function setDeletedBy($deleted_by) + { + $this->container['deleted_by'] = $deleted_by; + + return $this; + } + + + /** + * Gets deleted_on + * + * @return \DateTime + */ + public function getDeletedOn() + { + return $this->container['deleted_on']; + } + + /** + * Sets deleted_on + * + * @param \DateTime $deleted_on The date and time when this entity was deleted. + * + * @return $this + */ + public function setDeletedOn($deleted_on) + { + $this->container['deleted_on'] = $deleted_on; + + return $this; + } + + /** * Gets id * @@ -423,6 +566,31 @@ public function setId($id) } + /** + * Gets last_modified_date + * + * @return \DateTime + */ + public function getLastModifiedDate() + { + return $this->container['last_modified_date']; + } + + /** + * Sets last_modified_date + * + * @param \DateTime $last_modified_date + * + * @return $this + */ + public function setLastModifiedDate($last_modified_date) + { + $this->container['last_modified_date'] = $last_modified_date; + + return $this; + } + + /** * Gets name * @@ -442,6 +610,13 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 200)) { + throw new \InvalidArgumentException('invalid length for $name when calling Space., must be smaller than or equal to 200.'); + } + if (!is_null($name) && (mb_strlen($name) < 3)) { + throw new \InvalidArgumentException('invalid length for $name when calling Space., must be bigger than or equal to 3.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/SpaceAddress.php b/wallee-sdk/lib/Model/SpaceAddress.php index 04b5617..57a1c24 100644 --- a/wallee-sdk/lib/Model/SpaceAddress.php +++ b/wallee-sdk/lib/Model/SpaceAddress.php @@ -1,8 +1,8 @@ container['dependent_locality']) && (mb_strlen($this->container['dependent_locality']) > 100)) { + $invalidProperties[] = "invalid value for 'dependent_locality', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['family_name']) && (mb_strlen($this->container['family_name']) > 100)) { + $invalidProperties[] = "invalid value for 'family_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['given_name']) && (mb_strlen($this->container['given_name']) > 100)) { + $invalidProperties[] = "invalid value for 'given_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['organization_name']) && (mb_strlen($this->container['organization_name']) > 100)) { + $invalidProperties[] = "invalid value for 'organization_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['sales_tax_number']) && (mb_strlen($this->container['sales_tax_number']) > 100)) { + $invalidProperties[] = "invalid value for 'sales_tax_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['salutation']) && (mb_strlen($this->container['salutation']) > 20)) { + $invalidProperties[] = "invalid value for 'salutation', the character length must be smaller than or equal to 20."; + } + + if (!is_null($this->container['sorting_code']) && (mb_strlen($this->container['sorting_code']) > 100)) { + $invalidProperties[] = "invalid value for 'sorting_code', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -353,6 +381,10 @@ public function getDependentLocality() */ public function setDependentLocality($dependent_locality) { + if (!is_null($dependent_locality) && (mb_strlen($dependent_locality) > 100)) { + throw new \InvalidArgumentException('invalid length for $dependent_locality when calling SpaceAddress., must be smaller than or equal to 100.'); + } + $this->container['dependent_locality'] = $dependent_locality; return $this; @@ -403,6 +435,10 @@ public function getFamilyName() */ public function setFamilyName($family_name) { + if (!is_null($family_name) && (mb_strlen($family_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $family_name when calling SpaceAddress., must be smaller than or equal to 100.'); + } + $this->container['family_name'] = $family_name; return $this; @@ -428,6 +464,10 @@ public function getGivenName() */ public function setGivenName($given_name) { + if (!is_null($given_name) && (mb_strlen($given_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $given_name when calling SpaceAddress., must be smaller than or equal to 100.'); + } + $this->container['given_name'] = $given_name; return $this; @@ -453,6 +493,10 @@ public function getOrganizationName() */ public function setOrganizationName($organization_name) { + if (!is_null($organization_name) && (mb_strlen($organization_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $organization_name when calling SpaceAddress., must be smaller than or equal to 100.'); + } + $this->container['organization_name'] = $organization_name; return $this; @@ -528,6 +572,10 @@ public function getSalesTaxNumber() */ public function setSalesTaxNumber($sales_tax_number) { + if (!is_null($sales_tax_number) && (mb_strlen($sales_tax_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $sales_tax_number when calling SpaceAddress., must be smaller than or equal to 100.'); + } + $this->container['sales_tax_number'] = $sales_tax_number; return $this; @@ -553,6 +601,10 @@ public function getSalutation() */ public function setSalutation($salutation) { + if (!is_null($salutation) && (mb_strlen($salutation) > 20)) { + throw new \InvalidArgumentException('invalid length for $salutation when calling SpaceAddress., must be smaller than or equal to 20.'); + } + $this->container['salutation'] = $salutation; return $this; @@ -578,6 +630,10 @@ public function getSortingCode() */ public function setSortingCode($sorting_code) { + if (!is_null($sorting_code) && (mb_strlen($sorting_code) > 100)) { + throw new \InvalidArgumentException('invalid length for $sorting_code when calling SpaceAddress., must be smaller than or equal to 100.'); + } + $this->container['sorting_code'] = $sorting_code; return $this; diff --git a/wallee-sdk/lib/Model/SpaceAddressCreate.php b/wallee-sdk/lib/Model/SpaceAddressCreate.php index 8c716be..30558eb 100644 --- a/wallee-sdk/lib/Model/SpaceAddressCreate.php +++ b/wallee-sdk/lib/Model/SpaceAddressCreate.php @@ -1,8 +1,8 @@ container['dependent_locality']) && (mb_strlen($this->container['dependent_locality']) > 100)) { + $invalidProperties[] = "invalid value for 'dependent_locality', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['family_name']) && (mb_strlen($this->container['family_name']) > 100)) { + $invalidProperties[] = "invalid value for 'family_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['given_name']) && (mb_strlen($this->container['given_name']) > 100)) { + $invalidProperties[] = "invalid value for 'given_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['organization_name']) && (mb_strlen($this->container['organization_name']) > 100)) { + $invalidProperties[] = "invalid value for 'organization_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['sales_tax_number']) && (mb_strlen($this->container['sales_tax_number']) > 100)) { + $invalidProperties[] = "invalid value for 'sales_tax_number', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['salutation']) && (mb_strlen($this->container['salutation']) > 20)) { + $invalidProperties[] = "invalid value for 'salutation', the character length must be smaller than or equal to 20."; + } + + if (!is_null($this->container['sorting_code']) && (mb_strlen($this->container['sorting_code']) > 100)) { + $invalidProperties[] = "invalid value for 'sorting_code', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -353,6 +381,10 @@ public function getDependentLocality() */ public function setDependentLocality($dependent_locality) { + if (!is_null($dependent_locality) && (mb_strlen($dependent_locality) > 100)) { + throw new \InvalidArgumentException('invalid length for $dependent_locality when calling SpaceAddressCreate., must be smaller than or equal to 100.'); + } + $this->container['dependent_locality'] = $dependent_locality; return $this; @@ -403,6 +435,10 @@ public function getFamilyName() */ public function setFamilyName($family_name) { + if (!is_null($family_name) && (mb_strlen($family_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $family_name when calling SpaceAddressCreate., must be smaller than or equal to 100.'); + } + $this->container['family_name'] = $family_name; return $this; @@ -428,6 +464,10 @@ public function getGivenName() */ public function setGivenName($given_name) { + if (!is_null($given_name) && (mb_strlen($given_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $given_name when calling SpaceAddressCreate., must be smaller than or equal to 100.'); + } + $this->container['given_name'] = $given_name; return $this; @@ -453,6 +493,10 @@ public function getOrganizationName() */ public function setOrganizationName($organization_name) { + if (!is_null($organization_name) && (mb_strlen($organization_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $organization_name when calling SpaceAddressCreate., must be smaller than or equal to 100.'); + } + $this->container['organization_name'] = $organization_name; return $this; @@ -528,6 +572,10 @@ public function getSalesTaxNumber() */ public function setSalesTaxNumber($sales_tax_number) { + if (!is_null($sales_tax_number) && (mb_strlen($sales_tax_number) > 100)) { + throw new \InvalidArgumentException('invalid length for $sales_tax_number when calling SpaceAddressCreate., must be smaller than or equal to 100.'); + } + $this->container['sales_tax_number'] = $sales_tax_number; return $this; @@ -553,6 +601,10 @@ public function getSalutation() */ public function setSalutation($salutation) { + if (!is_null($salutation) && (mb_strlen($salutation) > 20)) { + throw new \InvalidArgumentException('invalid length for $salutation when calling SpaceAddressCreate., must be smaller than or equal to 20.'); + } + $this->container['salutation'] = $salutation; return $this; @@ -578,6 +630,10 @@ public function getSortingCode() */ public function setSortingCode($sorting_code) { + if (!is_null($sorting_code) && (mb_strlen($sorting_code) > 100)) { + throw new \InvalidArgumentException('invalid length for $sorting_code when calling SpaceAddressCreate., must be smaller than or equal to 100.'); + } + $this->container['sorting_code'] = $sorting_code; return $this; diff --git a/wallee-sdk/lib/Model/SpaceCreate.php b/wallee-sdk/lib/Model/SpaceCreate.php index bb3cd9e..be1c82c 100644 --- a/wallee-sdk/lib/Model/SpaceCreate.php +++ b/wallee-sdk/lib/Model/SpaceCreate.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 200)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 200."; + } + + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) < 3)) { + $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 3."; + } + return $invalidProperties; } @@ -311,6 +319,13 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 200)) { + throw new \InvalidArgumentException('invalid length for $name when calling SpaceView., must be smaller than or equal to 200.'); + } + if (!is_null($name) && (mb_strlen($name) < 3)) { + throw new \InvalidArgumentException('invalid length for $name when calling SpaceView., must be bigger than or equal to 3.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/StaticValue.php b/wallee-sdk/lib/Model/StaticValue.php index 33c4f3f..c8d57fc 100644 --- a/wallee-sdk/lib/Model/StaticValue.php +++ b/wallee-sdk/lib/Model/StaticValue.php @@ -1,8 +1,8 @@ container['description']) && (mb_strlen($this->container['description']) > 200)) { + $invalidProperties[] = "invalid value for 'description', the character length must be smaller than or equal to 200."; + } + + if (!is_null($this->container['email_address']) && (mb_strlen($this->container['email_address']) > 254)) { + $invalidProperties[] = "invalid value for 'email_address', the character length must be smaller than or equal to 254."; + } + + if (!is_null($this->container['reference']) && (mb_strlen($this->container['reference']) > 100)) { + $invalidProperties[] = "invalid value for 'reference', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -367,6 +379,10 @@ public function getDescription() */ public function setDescription($description) { + if (!is_null($description) && (mb_strlen($description) > 200)) { + throw new \InvalidArgumentException('invalid length for $description when calling Subscriber., must be smaller than or equal to 200.'); + } + $this->container['description'] = $description; return $this; @@ -417,6 +433,10 @@ public function getEmailAddress() */ public function setEmailAddress($email_address) { + if (!is_null($email_address) && (mb_strlen($email_address) > 254)) { + throw new \InvalidArgumentException('invalid length for $email_address when calling Subscriber., must be smaller than or equal to 254.'); + } + $this->container['email_address'] = $email_address; return $this; @@ -592,6 +612,10 @@ public function getReference() */ public function setReference($reference) { + if (!is_null($reference) && (mb_strlen($reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $reference when calling Subscriber., must be smaller than or equal to 100.'); + } + $this->container['reference'] = $reference; return $this; diff --git a/wallee-sdk/lib/Model/SubscriberActive.php b/wallee-sdk/lib/Model/SubscriberActive.php index 3f22f66..9e7c91a 100644 --- a/wallee-sdk/lib/Model/SubscriberActive.php +++ b/wallee-sdk/lib/Model/SubscriberActive.php @@ -1,8 +1,8 @@ container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } - if ($this->container['version'] === null) { - $invalidProperties[] = "'version' can't be null"; - } return $invalidProperties; } diff --git a/wallee-sdk/lib/Model/SubscriberCreate.php b/wallee-sdk/lib/Model/SubscriberCreate.php index a8168a2..779c047 100644 --- a/wallee-sdk/lib/Model/SubscriberCreate.php +++ b/wallee-sdk/lib/Model/SubscriberCreate.php @@ -1,8 +1,8 @@ container['version'] === null) { $invalidProperties[] = "'version' can't be null"; } + if (!is_null($this->container['description']) && (mb_strlen($this->container['description']) > 200)) { + $invalidProperties[] = "invalid value for 'description', the character length must be smaller than or equal to 200."; + } + + if (!is_null($this->container['email_address']) && (mb_strlen($this->container['email_address']) > 254)) { + $invalidProperties[] = "invalid value for 'email_address', the character length must be smaller than or equal to 254."; + } + + if (!is_null($this->container['reference']) && (mb_strlen($this->container['reference']) > 100)) { + $invalidProperties[] = "invalid value for 'reference', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -395,6 +407,10 @@ public function getDescription() */ public function setDescription($description) { + if (!is_null($description) && (mb_strlen($description) > 200)) { + throw new \InvalidArgumentException('invalid length for $description when calling SubscriberUpdate., must be smaller than or equal to 200.'); + } + $this->container['description'] = $description; return $this; @@ -445,6 +461,10 @@ public function getEmailAddress() */ public function setEmailAddress($email_address) { + if (!is_null($email_address) && (mb_strlen($email_address) > 254)) { + throw new \InvalidArgumentException('invalid length for $email_address when calling SubscriberUpdate., must be smaller than or equal to 254.'); + } + $this->container['email_address'] = $email_address; return $this; @@ -520,6 +540,10 @@ public function getReference() */ public function setReference($reference) { + if (!is_null($reference) && (mb_strlen($reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $reference when calling SubscriberUpdate., must be smaller than or equal to 100.'); + } + $this->container['reference'] = $reference; return $this; diff --git a/wallee-sdk/lib/Model/Subscription.php b/wallee-sdk/lib/Model/Subscription.php index ee8a31d..ef5733d 100644 --- a/wallee-sdk/lib/Model/Subscription.php +++ b/wallee-sdk/lib/Model/Subscription.php @@ -1,8 +1,8 @@ '\DateTime', 'affiliate' => '\Wallee\Sdk\Model\SubscriptionAffiliate', 'created_on' => '\DateTime', + 'current_product_version' => '\Wallee\Sdk\Model\SubscriptionProductVersion', 'description' => 'string', 'id' => 'int', 'initialized_on' => '\DateTime', @@ -65,6 +66,7 @@ class Subscription implements ModelInterface, ArrayAccess 'terminated_by' => 'int', 'terminated_on' => '\DateTime', 'terminating_on' => '\DateTime', + 'termination_scheduled_on' => '\DateTime', 'token' => '\Wallee\Sdk\Model\Token', 'version' => 'int' ]; @@ -78,6 +80,7 @@ class Subscription implements ModelInterface, ArrayAccess 'activated_on' => 'date-time', 'affiliate' => null, 'created_on' => 'date-time', + 'current_product_version' => null, 'description' => null, 'id' => 'int64', 'initialized_on' => 'date-time', @@ -91,6 +94,7 @@ class Subscription implements ModelInterface, ArrayAccess 'terminated_by' => 'int64', 'terminated_on' => 'date-time', 'terminating_on' => 'date-time', + 'termination_scheduled_on' => 'date-time', 'token' => null, 'version' => 'int32' ]; @@ -105,6 +109,7 @@ class Subscription implements ModelInterface, ArrayAccess 'activated_on' => 'activatedOn', 'affiliate' => 'affiliate', 'created_on' => 'createdOn', + 'current_product_version' => 'currentProductVersion', 'description' => 'description', 'id' => 'id', 'initialized_on' => 'initializedOn', @@ -118,6 +123,7 @@ class Subscription implements ModelInterface, ArrayAccess 'terminated_by' => 'terminatedBy', 'terminated_on' => 'terminatedOn', 'terminating_on' => 'terminatingOn', + 'termination_scheduled_on' => 'terminationScheduledOn', 'token' => 'token', 'version' => 'version' ]; @@ -131,6 +137,7 @@ class Subscription implements ModelInterface, ArrayAccess 'activated_on' => 'setActivatedOn', 'affiliate' => 'setAffiliate', 'created_on' => 'setCreatedOn', + 'current_product_version' => 'setCurrentProductVersion', 'description' => 'setDescription', 'id' => 'setId', 'initialized_on' => 'setInitializedOn', @@ -144,6 +151,7 @@ class Subscription implements ModelInterface, ArrayAccess 'terminated_by' => 'setTerminatedBy', 'terminated_on' => 'setTerminatedOn', 'terminating_on' => 'setTerminatingOn', + 'termination_scheduled_on' => 'setTerminationScheduledOn', 'token' => 'setToken', 'version' => 'setVersion' ]; @@ -157,6 +165,7 @@ class Subscription implements ModelInterface, ArrayAccess 'activated_on' => 'getActivatedOn', 'affiliate' => 'getAffiliate', 'created_on' => 'getCreatedOn', + 'current_product_version' => 'getCurrentProductVersion', 'description' => 'getDescription', 'id' => 'getId', 'initialized_on' => 'getInitializedOn', @@ -170,6 +179,7 @@ class Subscription implements ModelInterface, ArrayAccess 'terminated_by' => 'getTerminatedBy', 'terminated_on' => 'getTerminatedOn', 'terminating_on' => 'getTerminatingOn', + 'termination_scheduled_on' => 'getTerminationScheduledOn', 'token' => 'getToken', 'version' => 'getVersion' ]; @@ -198,6 +208,8 @@ public function __construct(array $data = null) $this->container['created_on'] = isset($data['created_on']) ? $data['created_on'] : null; + $this->container['current_product_version'] = isset($data['current_product_version']) ? $data['current_product_version'] : null; + $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['id'] = isset($data['id']) ? $data['id'] : null; @@ -224,6 +236,8 @@ public function __construct(array $data = null) $this->container['terminating_on'] = isset($data['terminating_on']) ? $data['terminating_on'] : null; + $this->container['termination_scheduled_on'] = isset($data['termination_scheduled_on']) ? $data['termination_scheduled_on'] : null; + $this->container['token'] = isset($data['token']) ? $data['token'] : null; $this->container['version'] = isset($data['version']) ? $data['version'] : null; @@ -239,6 +253,14 @@ public function listInvalidProperties() { $invalidProperties = []; + if (!is_null($this->container['description']) && (mb_strlen($this->container['description']) > 200)) { + $invalidProperties[] = "invalid value for 'description', the character length must be smaller than or equal to 200."; + } + + if (!is_null($this->container['reference']) && (mb_strlen($this->container['reference']) > 100)) { + $invalidProperties[] = "invalid value for 'reference', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -394,6 +416,31 @@ public function setCreatedOn($created_on) } + /** + * Gets current_product_version + * + * @return \Wallee\Sdk\Model\SubscriptionProductVersion + */ + public function getCurrentProductVersion() + { + return $this->container['current_product_version']; + } + + /** + * Sets current_product_version + * + * @param \Wallee\Sdk\Model\SubscriptionProductVersion $current_product_version + * + * @return $this + */ + public function setCurrentProductVersion($current_product_version) + { + $this->container['current_product_version'] = $current_product_version; + + return $this; + } + + /** * Gets description * @@ -413,6 +460,10 @@ public function getDescription() */ public function setDescription($description) { + if (!is_null($description) && (mb_strlen($description) > 200)) { + throw new \InvalidArgumentException('invalid length for $description when calling Subscription., must be smaller than or equal to 200.'); + } + $this->container['description'] = $description; return $this; @@ -588,6 +639,10 @@ public function getReference() */ public function setReference($reference) { + if (!is_null($reference) && (mb_strlen($reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $reference when calling Subscription., must be smaller than or equal to 100.'); + } + $this->container['reference'] = $reference; return $this; @@ -719,6 +774,31 @@ public function setTerminatingOn($terminating_on) } + /** + * Gets termination_scheduled_on + * + * @return \DateTime + */ + public function getTerminationScheduledOn() + { + return $this->container['termination_scheduled_on']; + } + + /** + * Sets termination_scheduled_on + * + * @param \DateTime $termination_scheduled_on + * + * @return $this + */ + public function setTerminationScheduledOn($termination_scheduled_on) + { + $this->container['termination_scheduled_on'] = $termination_scheduled_on; + + return $this; + } + + /** * Gets token * diff --git a/wallee-sdk/lib/Model/SubscriptionAffiliate.php b/wallee-sdk/lib/Model/SubscriptionAffiliate.php index c46390a..e2f7b68 100644 --- a/wallee-sdk/lib/Model/SubscriptionAffiliate.php +++ b/wallee-sdk/lib/Model/SubscriptionAffiliate.php @@ -1,8 +1,8 @@ container['external_id']) && (mb_strlen($this->container['external_id']) > 100)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['external_id']) && (mb_strlen($this->container['external_id']) < 1)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be bigger than or equal to 1."; + } + + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) > 255)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 255."; + } + + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) < 3)) { + $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 3."; + } + + if (!is_null($this->container['reference']) && (mb_strlen($this->container['reference']) > 100)) { + $invalidProperties[] = "invalid value for 'reference', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['reference']) && (mb_strlen($this->container['reference']) < 3)) { + $invalidProperties[] = "invalid value for 'reference', the character length must be bigger than or equal to 3."; + } + return $invalidProperties; } @@ -282,6 +306,13 @@ public function getExternalId() */ public function setExternalId($external_id) { + if (!is_null($external_id) && (mb_strlen($external_id) > 100)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling SubscriptionAffiliate., must be smaller than or equal to 100.'); + } + if (!is_null($external_id) && (mb_strlen($external_id) < 1)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling SubscriptionAffiliate., must be bigger than or equal to 1.'); + } + $this->container['external_id'] = $external_id; return $this; @@ -407,6 +438,13 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 255)) { + throw new \InvalidArgumentException('invalid length for $name when calling SubscriptionAffiliate., must be smaller than or equal to 255.'); + } + if (!is_null($name) && (mb_strlen($name) < 3)) { + throw new \InvalidArgumentException('invalid length for $name when calling SubscriptionAffiliate., must be bigger than or equal to 3.'); + } + $this->container['name'] = $name; return $this; @@ -457,6 +495,13 @@ public function getReference() */ public function setReference($reference) { + if (!is_null($reference) && (mb_strlen($reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $reference when calling SubscriptionAffiliate., must be smaller than or equal to 100.'); + } + if (!is_null($reference) && (mb_strlen($reference) < 3)) { + throw new \InvalidArgumentException('invalid length for $reference when calling SubscriptionAffiliate., must be bigger than or equal to 3.'); + } + $this->container['reference'] = $reference; return $this; diff --git a/wallee-sdk/lib/Model/SubscriptionAffiliateCreate.php b/wallee-sdk/lib/Model/SubscriptionAffiliateCreate.php index 61b87bc..bd64528 100644 --- a/wallee-sdk/lib/Model/SubscriptionAffiliateCreate.php +++ b/wallee-sdk/lib/Model/SubscriptionAffiliateCreate.php @@ -1,8 +1,8 @@ 'string', - 'reference' => 'string' + 'reference' => 'string', + 'state' => '\Wallee\Sdk\Model\CreationEntityState' ]; /** @@ -58,7 +59,8 @@ class SubscriptionAffiliateCreate extends AbstractSubscriptionAffiliateUpdate */ protected static $swaggerFormats = [ 'external_id' => null, - 'reference' => null + 'reference' => null, + 'state' => null ]; /** @@ -69,7 +71,8 @@ class SubscriptionAffiliateCreate extends AbstractSubscriptionAffiliateUpdate */ protected static $attributeMap = [ 'external_id' => 'externalId', - 'reference' => 'reference' + 'reference' => 'reference', + 'state' => 'state' ]; /** @@ -79,7 +82,8 @@ class SubscriptionAffiliateCreate extends AbstractSubscriptionAffiliateUpdate */ protected static $setters = [ 'external_id' => 'setExternalId', - 'reference' => 'setReference' + 'reference' => 'setReference', + 'state' => 'setState' ]; /** @@ -89,7 +93,8 @@ class SubscriptionAffiliateCreate extends AbstractSubscriptionAffiliateUpdate */ protected static $getters = [ 'external_id' => 'getExternalId', - 'reference' => 'getReference' + 'reference' => 'getReference', + 'state' => 'getState' ]; @@ -110,6 +115,8 @@ public function __construct(array $data = null) $this->container['reference'] = isset($data['reference']) ? $data['reference'] : null; + $this->container['state'] = isset($data['state']) ? $data['state'] : null; + } /** @@ -124,9 +131,25 @@ public function listInvalidProperties() if ($this->container['external_id'] === null) { $invalidProperties[] = "'external_id' can't be null"; } + if ((mb_strlen($this->container['external_id']) > 100)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be smaller than or equal to 100."; + } + + if ((mb_strlen($this->container['external_id']) < 1)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be bigger than or equal to 1."; + } + if ($this->container['reference'] === null) { $invalidProperties[] = "'reference' can't be null"; } + if ((mb_strlen($this->container['reference']) > 100)) { + $invalidProperties[] = "invalid value for 'reference', the character length must be smaller than or equal to 100."; + } + + if ((mb_strlen($this->container['reference']) < 3)) { + $invalidProperties[] = "invalid value for 'reference', the character length must be bigger than or equal to 3."; + } + return $invalidProperties; } @@ -226,6 +249,13 @@ public function getExternalId() */ public function setExternalId($external_id) { + if ((mb_strlen($external_id) > 100)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling SubscriptionAffiliateCreate., must be smaller than or equal to 100.'); + } + if ((mb_strlen($external_id) < 1)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling SubscriptionAffiliateCreate., must be bigger than or equal to 1.'); + } + $this->container['external_id'] = $external_id; return $this; @@ -251,11 +281,43 @@ public function getReference() */ public function setReference($reference) { + if ((mb_strlen($reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $reference when calling SubscriptionAffiliateCreate., must be smaller than or equal to 100.'); + } + if ((mb_strlen($reference) < 3)) { + throw new \InvalidArgumentException('invalid length for $reference when calling SubscriptionAffiliateCreate., must be bigger than or equal to 3.'); + } + $this->container['reference'] = $reference; return $this; } + + /** + * Gets state + * + * @return \Wallee\Sdk\Model\CreationEntityState + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param \Wallee\Sdk\Model\CreationEntityState $state + * + * @return $this + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + /** * Returns true if offset exists. False otherwise. * diff --git a/wallee-sdk/lib/Model/SubscriptionAffiliateDeleted.php b/wallee-sdk/lib/Model/SubscriptionAffiliateDeleted.php index 9607bf3..1b05d85 100644 --- a/wallee-sdk/lib/Model/SubscriptionAffiliateDeleted.php +++ b/wallee-sdk/lib/Model/SubscriptionAffiliateDeleted.php @@ -1,8 +1,8 @@ container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } - if ($this->container['version'] === null) { - $invalidProperties[] = "'version' can't be null"; - } return $invalidProperties; } diff --git a/wallee-sdk/lib/Model/SubscriptionAffiliateUpdate.php b/wallee-sdk/lib/Model/SubscriptionAffiliateUpdate.php index b5c8d9b..0ddb423 100644 --- a/wallee-sdk/lib/Model/SubscriptionAffiliateUpdate.php +++ b/wallee-sdk/lib/Model/SubscriptionAffiliateUpdate.php @@ -1,8 +1,8 @@ container['version'] === null) { $invalidProperties[] = "'version' can't be null"; } + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) > 255)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 255."; + } + + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) < 3)) { + $invalidProperties[] = "invalid value for 'name', the character length must be bigger than or equal to 3."; + } + return $invalidProperties; } @@ -360,6 +368,13 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 255)) { + throw new \InvalidArgumentException('invalid length for $name when calling SubscriptionAffiliateUpdate., must be smaller than or equal to 255.'); + } + if (!is_null($name) && (mb_strlen($name) < 3)) { + throw new \InvalidArgumentException('invalid length for $name when calling SubscriptionAffiliateUpdate., must be bigger than or equal to 3.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/SubscriptionChangeRequest.php b/wallee-sdk/lib/Model/SubscriptionChangeRequest.php index 04199b6..df80a8b 100644 --- a/wallee-sdk/lib/Model/SubscriptionChangeRequest.php +++ b/wallee-sdk/lib/Model/SubscriptionChangeRequest.php @@ -1,8 +1,8 @@ container['failed_url']) && (mb_strlen($this->container['failed_url']) > 500)) { + $invalidProperties[] = "invalid value for 'failed_url', the character length must be smaller than or equal to 500."; + } + + if (!is_null($this->container['failed_url']) && (mb_strlen($this->container['failed_url']) < 9)) { + $invalidProperties[] = "invalid value for 'failed_url', the character length must be bigger than or equal to 9."; + } + + if (!is_null($this->container['reference']) && (mb_strlen($this->container['reference']) > 100)) { + $invalidProperties[] = "invalid value for 'reference', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['success_url']) && (mb_strlen($this->container['success_url']) > 500)) { + $invalidProperties[] = "invalid value for 'success_url', the character length must be smaller than or equal to 500."; + } + + if (!is_null($this->container['success_url']) && (mb_strlen($this->container['success_url']) < 9)) { + $invalidProperties[] = "invalid value for 'success_url', the character length must be bigger than or equal to 9."; + } + return $invalidProperties; } @@ -484,6 +504,13 @@ public function getFailedUrl() */ public function setFailedUrl($failed_url) { + if (!is_null($failed_url) && (mb_strlen($failed_url) > 500)) { + throw new \InvalidArgumentException('invalid length for $failed_url when calling SubscriptionCharge., must be smaller than or equal to 500.'); + } + if (!is_null($failed_url) && (mb_strlen($failed_url) < 9)) { + throw new \InvalidArgumentException('invalid length for $failed_url when calling SubscriptionCharge., must be bigger than or equal to 9.'); + } + $this->container['failed_url'] = $failed_url; return $this; @@ -684,6 +711,10 @@ public function getReference() */ public function setReference($reference) { + if (!is_null($reference) && (mb_strlen($reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $reference when calling SubscriptionCharge., must be smaller than or equal to 100.'); + } + $this->container['reference'] = $reference; return $this; @@ -784,6 +815,13 @@ public function getSuccessUrl() */ public function setSuccessUrl($success_url) { + if (!is_null($success_url) && (mb_strlen($success_url) > 500)) { + throw new \InvalidArgumentException('invalid length for $success_url when calling SubscriptionCharge., must be smaller than or equal to 500.'); + } + if (!is_null($success_url) && (mb_strlen($success_url) < 9)) { + throw new \InvalidArgumentException('invalid length for $success_url when calling SubscriptionCharge., must be bigger than or equal to 9.'); + } + $this->container['success_url'] = $success_url; return $this; diff --git a/wallee-sdk/lib/Model/SubscriptionChargeCreate.php b/wallee-sdk/lib/Model/SubscriptionChargeCreate.php index 722566f..c7e160a 100644 --- a/wallee-sdk/lib/Model/SubscriptionChargeCreate.php +++ b/wallee-sdk/lib/Model/SubscriptionChargeCreate.php @@ -1,8 +1,8 @@ container['external_id'] === null) { $invalidProperties[] = "'external_id' can't be null"; } + if (!is_null($this->container['failed_url']) && (mb_strlen($this->container['failed_url']) > 500)) { + $invalidProperties[] = "invalid value for 'failed_url', the character length must be smaller than or equal to 500."; + } + + if (!is_null($this->container['failed_url']) && (mb_strlen($this->container['failed_url']) < 9)) { + $invalidProperties[] = "invalid value for 'failed_url', the character length must be bigger than or equal to 9."; + } + if ($this->container['processing_type'] === null) { $invalidProperties[] = "'processing_type' can't be null"; } + if (!is_null($this->container['reference']) && (mb_strlen($this->container['reference']) > 100)) { + $invalidProperties[] = "invalid value for 'reference', the character length must be smaller than or equal to 100."; + } + if ($this->container['subscription'] === null) { $invalidProperties[] = "'subscription' can't be null"; } + if (!is_null($this->container['success_url']) && (mb_strlen($this->container['success_url']) > 500)) { + $invalidProperties[] = "invalid value for 'success_url', the character length must be smaller than or equal to 500."; + } + + if (!is_null($this->container['success_url']) && (mb_strlen($this->container['success_url']) < 9)) { + $invalidProperties[] = "invalid value for 'success_url', the character length must be bigger than or equal to 9."; + } + return $invalidProperties; } @@ -295,6 +315,13 @@ public function getFailedUrl() */ public function setFailedUrl($failed_url) { + if (!is_null($failed_url) && (mb_strlen($failed_url) > 500)) { + throw new \InvalidArgumentException('invalid length for $failed_url when calling SubscriptionChargeCreate., must be smaller than or equal to 500.'); + } + if (!is_null($failed_url) && (mb_strlen($failed_url) < 9)) { + throw new \InvalidArgumentException('invalid length for $failed_url when calling SubscriptionChargeCreate., must be bigger than or equal to 9.'); + } + $this->container['failed_url'] = $failed_url; return $this; @@ -370,6 +397,10 @@ public function getReference() */ public function setReference($reference) { + if (!is_null($reference) && (mb_strlen($reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $reference when calling SubscriptionChargeCreate., must be smaller than or equal to 100.'); + } + $this->container['reference'] = $reference; return $this; @@ -420,6 +451,13 @@ public function getSuccessUrl() */ public function setSuccessUrl($success_url) { + if (!is_null($success_url) && (mb_strlen($success_url) > 500)) { + throw new \InvalidArgumentException('invalid length for $success_url when calling SubscriptionChargeCreate., must be smaller than or equal to 500.'); + } + if (!is_null($success_url) && (mb_strlen($success_url) < 9)) { + throw new \InvalidArgumentException('invalid length for $success_url when calling SubscriptionChargeCreate., must be bigger than or equal to 9.'); + } + $this->container['success_url'] = $success_url; return $this; diff --git a/wallee-sdk/lib/Model/SubscriptionChargeProcessingType.php b/wallee-sdk/lib/Model/SubscriptionChargeProcessingType.php index 58b4406..1a2314a 100644 --- a/wallee-sdk/lib/Model/SubscriptionChargeProcessingType.php +++ b/wallee-sdk/lib/Model/SubscriptionChargeProcessingType.php @@ -1,8 +1,8 @@ 'string', 'product' => 'int', 'selected_components' => '\Wallee\Sdk\Model\SubscriptionProductComponentReference[]', - 'subscription' => 'int' + 'subscription' => '\Wallee\Sdk\Model\SubscriptionPending' ]; /** @@ -66,7 +66,7 @@ class SubscriptionCreateRequest implements ModelInterface, ArrayAccess 'currency' => null, 'product' => 'int64', 'selected_components' => null, - 'subscription' => 'int64' + 'subscription' => null ]; /** @@ -340,7 +340,7 @@ public function setSelectedComponents($selected_components) /** * Gets subscription * - * @return int + * @return \Wallee\Sdk\Model\SubscriptionPending */ public function getSubscription() { @@ -350,7 +350,7 @@ public function getSubscription() /** * Sets subscription * - * @param int $subscription + * @param \Wallee\Sdk\Model\SubscriptionPending $subscription * * @return $this */ diff --git a/wallee-sdk/lib/Model/SubscriptionLedgerEntry.php b/wallee-sdk/lib/Model/SubscriptionLedgerEntry.php index 77f3f6c..449ddc3 100644 --- a/wallee-sdk/lib/Model/SubscriptionLedgerEntry.php +++ b/wallee-sdk/lib/Model/SubscriptionLedgerEntry.php @@ -1,8 +1,8 @@ container['title']) && (mb_strlen($this->container['title']) > 150)) { + $invalidProperties[] = "invalid value for 'title', the character length must be smaller than or equal to 150."; + } + + if (!is_null($this->container['title']) && (mb_strlen($this->container['title']) < 1)) { + $invalidProperties[] = "invalid value for 'title', the character length must be bigger than or equal to 1."; + } + return $invalidProperties; } @@ -674,6 +682,13 @@ public function getTitle() */ public function setTitle($title) { + if (!is_null($title) && (mb_strlen($title) > 150)) { + throw new \InvalidArgumentException('invalid length for $title when calling SubscriptionLedgerEntry., must be smaller than or equal to 150.'); + } + if (!is_null($title) && (mb_strlen($title) < 1)) { + throw new \InvalidArgumentException('invalid length for $title when calling SubscriptionLedgerEntry., must be bigger than or equal to 1.'); + } + $this->container['title'] = $title; return $this; diff --git a/wallee-sdk/lib/Model/SubscriptionLedgerEntryCreate.php b/wallee-sdk/lib/Model/SubscriptionLedgerEntryCreate.php index 5fa314a..81eaca3 100644 --- a/wallee-sdk/lib/Model/SubscriptionLedgerEntryCreate.php +++ b/wallee-sdk/lib/Model/SubscriptionLedgerEntryCreate.php @@ -1,8 +1,8 @@ container['title'] === null) { $invalidProperties[] = "'title' can't be null"; } + if ((mb_strlen($this->container['title']) > 150)) { + $invalidProperties[] = "invalid value for 'title', the character length must be smaller than or equal to 150."; + } + + if ((mb_strlen($this->container['title']) < 1)) { + $invalidProperties[] = "invalid value for 'title', the character length must be bigger than or equal to 1."; + } + return $invalidProperties; } @@ -394,6 +402,13 @@ public function getTitle() */ public function setTitle($title) { + if ((mb_strlen($title) > 150)) { + throw new \InvalidArgumentException('invalid length for $title when calling SubscriptionLedgerEntryCreate., must be smaller than or equal to 150.'); + } + if ((mb_strlen($title) < 1)) { + throw new \InvalidArgumentException('invalid length for $title when calling SubscriptionLedgerEntryCreate., must be bigger than or equal to 1.'); + } + $this->container['title'] = $title; return $this; diff --git a/wallee-sdk/lib/Model/SubscriptionLedgerEntryState.php b/wallee-sdk/lib/Model/SubscriptionLedgerEntryState.php index 1403730..d86c107 100644 --- a/wallee-sdk/lib/Model/SubscriptionLedgerEntryState.php +++ b/wallee-sdk/lib/Model/SubscriptionLedgerEntryState.php @@ -1,8 +1,8 @@ container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } - if ($this->container['version'] === null) { - $invalidProperties[] = "'version' can't be null"; - } return $invalidProperties; } diff --git a/wallee-sdk/lib/Model/SubscriptionMetricCreate.php b/wallee-sdk/lib/Model/SubscriptionMetricCreate.php index b4b4229..e781baf 100644 --- a/wallee-sdk/lib/Model/SubscriptionMetricCreate.php +++ b/wallee-sdk/lib/Model/SubscriptionMetricCreate.php @@ -1,8 +1,8 @@ '\Wallee\Sdk\Model\DatabaseTranslatedStringCreate', + 'name' => '\Wallee\Sdk\Model\DatabaseTranslatedStringCreate', 'type' => 'int' ]; @@ -56,6 +58,8 @@ class SubscriptionMetricCreate extends AbstractSubscriptionMetricUpdate * @var string[] */ protected static $swaggerFormats = [ + 'description' => null, + 'name' => null, 'type' => 'int64' ]; @@ -66,6 +70,8 @@ class SubscriptionMetricCreate extends AbstractSubscriptionMetricUpdate * @var string[] */ protected static $attributeMap = [ + 'description' => 'description', + 'name' => 'name', 'type' => 'type' ]; @@ -75,6 +81,8 @@ class SubscriptionMetricCreate extends AbstractSubscriptionMetricUpdate * @var string[] */ protected static $setters = [ + 'description' => 'setDescription', + 'name' => 'setName', 'type' => 'setType' ]; @@ -84,6 +92,8 @@ class SubscriptionMetricCreate extends AbstractSubscriptionMetricUpdate * @var string[] */ protected static $getters = [ + 'description' => 'getDescription', + 'name' => 'getName', 'type' => 'getType' ]; @@ -101,6 +111,10 @@ public function __construct(array $data = null) parent::__construct($data); + $this->container['description'] = isset($data['description']) ? $data['description'] : null; + + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['type'] = isset($data['type']) ? $data['type'] : null; } @@ -200,6 +214,56 @@ public function valid() + /** + * Gets description + * + * @return \Wallee\Sdk\Model\DatabaseTranslatedStringCreate + */ + public function getDescription() + { + return $this->container['description']; + } + + /** + * Sets description + * + * @param \Wallee\Sdk\Model\DatabaseTranslatedStringCreate $description + * + * @return $this + */ + public function setDescription($description) + { + $this->container['description'] = $description; + + return $this; + } + + + /** + * Gets name + * + * @return \Wallee\Sdk\Model\DatabaseTranslatedStringCreate + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param \Wallee\Sdk\Model\DatabaseTranslatedStringCreate $name + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** * Gets type * diff --git a/wallee-sdk/lib/Model/SubscriptionMetricType.php b/wallee-sdk/lib/Model/SubscriptionMetricType.php index 2e4ffc1..38bb730 100644 --- a/wallee-sdk/lib/Model/SubscriptionMetricType.php +++ b/wallee-sdk/lib/Model/SubscriptionMetricType.php @@ -1,8 +1,8 @@ container['description']) && (mb_strlen($this->container['description']) > 100)) { + $invalidProperties[] = "invalid value for 'description', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -364,6 +368,10 @@ public function getDescription() */ public function setDescription($description) { + if (!is_null($description) && (mb_strlen($description) > 100)) { + throw new \InvalidArgumentException('invalid length for $description when calling SubscriptionMetricUsageReport., must be smaller than or equal to 100.'); + } + $this->container['description'] = $description; return $this; diff --git a/wallee-sdk/lib/Model/SubscriptionMetricUsageReportCreate.php b/wallee-sdk/lib/Model/SubscriptionMetricUsageReportCreate.php index 1177837..c5c5643 100644 --- a/wallee-sdk/lib/Model/SubscriptionMetricUsageReportCreate.php +++ b/wallee-sdk/lib/Model/SubscriptionMetricUsageReportCreate.php @@ -1,8 +1,8 @@ container['consumed_units'] === null) { $invalidProperties[] = "'consumed_units' can't be null"; } + if (!is_null($this->container['description']) && (mb_strlen($this->container['description']) > 100)) { + $invalidProperties[] = "invalid value for 'description', the character length must be smaller than or equal to 100."; + } + if ($this->container['external_id'] === null) { $invalidProperties[] = "'external_id' can't be null"; } @@ -284,6 +288,10 @@ public function getDescription() */ public function setDescription($description) { + if (!is_null($description) && (mb_strlen($description) > 100)) { + throw new \InvalidArgumentException('invalid length for $description when calling SubscriptionMetricUsageReportCreate., must be smaller than or equal to 100.'); + } + $this->container['description'] = $description; return $this; diff --git a/wallee-sdk/lib/Model/SubscriptionPending.php b/wallee-sdk/lib/Model/SubscriptionPending.php index a7b588b..32803c1 100644 --- a/wallee-sdk/lib/Model/SubscriptionPending.php +++ b/wallee-sdk/lib/Model/SubscriptionPending.php @@ -1,8 +1,8 @@ 'int', 'reference' => 'string', 'subscriber' => 'int', 'token' => 'int' @@ -58,6 +59,7 @@ class SubscriptionPending extends SubscriptionUpdate * @var string[] */ protected static $swaggerFormats = [ + 'affiliate' => 'int64', 'reference' => null, 'subscriber' => 'int64', 'token' => 'int64' @@ -70,6 +72,7 @@ class SubscriptionPending extends SubscriptionUpdate * @var string[] */ protected static $attributeMap = [ + 'affiliate' => 'affiliate', 'reference' => 'reference', 'subscriber' => 'subscriber', 'token' => 'token' @@ -81,6 +84,7 @@ class SubscriptionPending extends SubscriptionUpdate * @var string[] */ protected static $setters = [ + 'affiliate' => 'setAffiliate', 'reference' => 'setReference', 'subscriber' => 'setSubscriber', 'token' => 'setToken' @@ -92,6 +96,7 @@ class SubscriptionPending extends SubscriptionUpdate * @var string[] */ protected static $getters = [ + 'affiliate' => 'getAffiliate', 'reference' => 'getReference', 'subscriber' => 'getSubscriber', 'token' => 'getToken' @@ -111,6 +116,8 @@ public function __construct(array $data = null) parent::__construct($data); + $this->container['affiliate'] = isset($data['affiliate']) ? $data['affiliate'] : null; + $this->container['reference'] = isset($data['reference']) ? $data['reference'] : null; $this->container['subscriber'] = isset($data['subscriber']) ? $data['subscriber'] : null; @@ -128,12 +135,10 @@ public function listInvalidProperties() { $invalidProperties = parent::listInvalidProperties(); - if ($this->container['id'] === null) { - $invalidProperties[] = "'id' can't be null"; - } - if ($this->container['version'] === null) { - $invalidProperties[] = "'version' can't be null"; + if (!is_null($this->container['reference']) && (mb_strlen($this->container['reference']) > 100)) { + $invalidProperties[] = "invalid value for 'reference', the character length must be smaller than or equal to 100."; } + return $invalidProperties; } @@ -214,6 +219,31 @@ public function valid() + /** + * Gets affiliate + * + * @return int + */ + public function getAffiliate() + { + return $this->container['affiliate']; + } + + /** + * Sets affiliate + * + * @param int $affiliate + * + * @return $this + */ + public function setAffiliate($affiliate) + { + $this->container['affiliate'] = $affiliate; + + return $this; + } + + /** * Gets reference * @@ -233,6 +263,10 @@ public function getReference() */ public function setReference($reference) { + if (!is_null($reference) && (mb_strlen($reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $reference when calling SubscriptionPending., must be smaller than or equal to 100.'); + } + $this->container['reference'] = $reference; return $this; diff --git a/wallee-sdk/lib/Model/SubscriptionPeriodBill.php b/wallee-sdk/lib/Model/SubscriptionPeriodBill.php index 3c09592..ff8a68a 100644 --- a/wallee-sdk/lib/Model/SubscriptionPeriodBill.php +++ b/wallee-sdk/lib/Model/SubscriptionPeriodBill.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 100)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['reference']) && (mb_strlen($this->container['reference']) > 100)) { + $invalidProperties[] = "invalid value for 'reference', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -389,6 +397,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 100)) { + throw new \InvalidArgumentException('invalid length for $name when calling SubscriptionProduct., must be smaller than or equal to 100.'); + } + $this->container['name'] = $name; return $this; @@ -439,6 +451,10 @@ public function getReference() */ public function setReference($reference) { + if (!is_null($reference) && (mb_strlen($reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $reference when calling SubscriptionProduct., must be smaller than or equal to 100.'); + } + $this->container['reference'] = $reference; return $this; diff --git a/wallee-sdk/lib/Model/SubscriptionProductActive.php b/wallee-sdk/lib/Model/SubscriptionProductActive.php index c43833f..6c75bf9 100644 --- a/wallee-sdk/lib/Model/SubscriptionProductActive.php +++ b/wallee-sdk/lib/Model/SubscriptionProductActive.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 100)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -311,6 +315,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 100)) { + throw new \InvalidArgumentException('invalid length for $name when calling SubscriptionProductComponentReference., must be smaller than or equal to 100.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/SubscriptionProductComponentReferenceState.php b/wallee-sdk/lib/Model/SubscriptionProductComponentReferenceState.php index 4e0b167..332534e 100644 --- a/wallee-sdk/lib/Model/SubscriptionProductComponentReferenceState.php +++ b/wallee-sdk/lib/Model/SubscriptionProductComponentReferenceState.php @@ -1,8 +1,8 @@ container['reference'] === null) { $invalidProperties[] = "'reference' can't be null"; } + if ((mb_strlen($this->container['reference']) > 100)) { + $invalidProperties[] = "invalid value for 'reference', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -216,6 +220,10 @@ public function getReference() */ public function setReference($reference) { + if ((mb_strlen($reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $reference when calling SubscriptionProductCreate., must be smaller than or equal to 100.'); + } + $this->container['reference'] = $reference; return $this; diff --git a/wallee-sdk/lib/Model/SubscriptionProductRetirement.php b/wallee-sdk/lib/Model/SubscriptionProductRetirement.php index 580addf..2d9a783 100644 --- a/wallee-sdk/lib/Model/SubscriptionProductRetirement.php +++ b/wallee-sdk/lib/Model/SubscriptionProductRetirement.php @@ -1,8 +1,8 @@ '\DateTime', 'retiring_started_on' => '\DateTime', 'state' => '\Wallee\Sdk\Model\SubscriptionProductVersionState', + 'tax_calculation' => '\Wallee\Sdk\Model\TaxCalculation', 'version' => 'int' ]; @@ -96,6 +97,7 @@ class SubscriptionProductVersion implements ModelInterface, ArrayAccess 'retiring_finished_on' => 'date-time', 'retiring_started_on' => 'date-time', 'state' => null, + 'tax_calculation' => null, 'version' => 'int32' ]; @@ -125,6 +127,7 @@ class SubscriptionProductVersion implements ModelInterface, ArrayAccess 'retiring_finished_on' => 'retiringFinishedOn', 'retiring_started_on' => 'retiringStartedOn', 'state' => 'state', + 'tax_calculation' => 'taxCalculation', 'version' => 'version' ]; @@ -153,6 +156,7 @@ class SubscriptionProductVersion implements ModelInterface, ArrayAccess 'retiring_finished_on' => 'setRetiringFinishedOn', 'retiring_started_on' => 'setRetiringStartedOn', 'state' => 'setState', + 'tax_calculation' => 'setTaxCalculation', 'version' => 'setVersion' ]; @@ -181,6 +185,7 @@ class SubscriptionProductVersion implements ModelInterface, ArrayAccess 'retiring_finished_on' => 'getRetiringFinishedOn', 'retiring_started_on' => 'getRetiringStartedOn', 'state' => 'getState', + 'tax_calculation' => 'getTaxCalculation', 'version' => 'getVersion' ]; @@ -240,6 +245,8 @@ public function __construct(array $data = null) $this->container['state'] = isset($data['state']) ? $data['state'] : null; + $this->container['tax_calculation'] = isset($data['tax_calculation']) ? $data['tax_calculation'] : null; + $this->container['version'] = isset($data['version']) ? $data['version'] : null; } @@ -253,6 +260,10 @@ public function listInvalidProperties() { $invalidProperties = []; + if (!is_null($this->container['reference']) && (mb_strlen($this->container['reference']) > 125)) { + $invalidProperties[] = "invalid value for 'reference', the character length must be smaller than or equal to 125."; + } + return $invalidProperties; } @@ -727,6 +738,10 @@ public function getReference() */ public function setReference($reference) { + if (!is_null($reference) && (mb_strlen($reference) > 125)) { + throw new \InvalidArgumentException('invalid length for $reference when calling SubscriptionProductVersion., must be smaller than or equal to 125.'); + } + $this->container['reference'] = $reference; return $this; @@ -808,6 +823,31 @@ public function setState($state) } + /** + * Gets tax_calculation + * + * @return \Wallee\Sdk\Model\TaxCalculation + */ + public function getTaxCalculation() + { + return $this->container['tax_calculation']; + } + + /** + * Sets tax_calculation + * + * @param \Wallee\Sdk\Model\TaxCalculation $tax_calculation Strategy that is used for tax calculation in fees. + * + * @return $this + */ + public function setTaxCalculation($tax_calculation) + { + $this->container['tax_calculation'] = $tax_calculation; + + return $this; + } + + /** * Gets version * diff --git a/wallee-sdk/lib/Model/SubscriptionProductVersionPending.php b/wallee-sdk/lib/Model/SubscriptionProductVersionPending.php index 151a264..f254c59 100644 --- a/wallee-sdk/lib/Model/SubscriptionProductVersionPending.php +++ b/wallee-sdk/lib/Model/SubscriptionProductVersionPending.php @@ -1,8 +1,8 @@ '\Wallee\Sdk\Model\DatabaseTranslatedStringCreate', 'number_of_notice_periods' => 'int', 'product' => 'int', - 'state' => '\Wallee\Sdk\Model\SubscriptionProductVersionState' + 'state' => '\Wallee\Sdk\Model\SubscriptionProductVersionState', + 'tax_calculation' => '\Wallee\Sdk\Model\TaxCalculation' ]; /** @@ -78,7 +79,8 @@ class SubscriptionProductVersionPending implements ModelInterface, ArrayAccess 'name' => null, 'number_of_notice_periods' => 'int32', 'product' => 'int64', - 'state' => null + 'state' => null, + 'tax_calculation' => null ]; /** @@ -98,7 +100,8 @@ class SubscriptionProductVersionPending implements ModelInterface, ArrayAccess 'name' => 'name', 'number_of_notice_periods' => 'numberOfNoticePeriods', 'product' => 'product', - 'state' => 'state' + 'state' => 'state', + 'tax_calculation' => 'taxCalculation' ]; /** @@ -117,7 +120,8 @@ class SubscriptionProductVersionPending implements ModelInterface, ArrayAccess 'name' => 'setName', 'number_of_notice_periods' => 'setNumberOfNoticePeriods', 'product' => 'setProduct', - 'state' => 'setState' + 'state' => 'setState', + 'tax_calculation' => 'setTaxCalculation' ]; /** @@ -136,7 +140,8 @@ class SubscriptionProductVersionPending implements ModelInterface, ArrayAccess 'name' => 'getName', 'number_of_notice_periods' => 'getNumberOfNoticePeriods', 'product' => 'getProduct', - 'state' => 'getState' + 'state' => 'getState', + 'tax_calculation' => 'getTaxCalculation' ]; @@ -179,6 +184,8 @@ public function __construct(array $data = null) $this->container['state'] = isset($data['state']) ? $data['state'] : null; + $this->container['tax_calculation'] = isset($data['tax_calculation']) ? $data['tax_calculation'] : null; + } /** @@ -550,6 +557,31 @@ public function setState($state) return $this; } + + /** + * Gets tax_calculation + * + * @return \Wallee\Sdk\Model\TaxCalculation + */ + public function getTaxCalculation() + { + return $this->container['tax_calculation']; + } + + /** + * Sets tax_calculation + * + * @param \Wallee\Sdk\Model\TaxCalculation $tax_calculation Strategy that is used for tax calculation in fees. + * + * @return $this + */ + public function setTaxCalculation($tax_calculation) + { + $this->container['tax_calculation'] = $tax_calculation; + + return $this; + } + /** * Returns true if offset exists. False otherwise. * diff --git a/wallee-sdk/lib/Model/SubscriptionProductVersionRetirement.php b/wallee-sdk/lib/Model/SubscriptionProductVersionRetirement.php index 0ca05ed..dfd1922 100644 --- a/wallee-sdk/lib/Model/SubscriptionProductVersionRetirement.php +++ b/wallee-sdk/lib/Model/SubscriptionProductVersionRetirement.php @@ -1,8 +1,8 @@ container['note']) && (mb_strlen($this->container['note']) > 300)) { + $invalidProperties[] = "invalid value for 'note', the character length must be smaller than or equal to 300."; + } + return $invalidProperties; } @@ -460,6 +464,10 @@ public function getNote() */ public function setNote($note) { + if (!is_null($note) && (mb_strlen($note) > 300)) { + throw new \InvalidArgumentException('invalid length for $note when calling SubscriptionSuspension., must be smaller than or equal to 300.'); + } + $this->container['note'] = $note; return $this; diff --git a/wallee-sdk/lib/Model/SubscriptionSuspensionAction.php b/wallee-sdk/lib/Model/SubscriptionSuspensionAction.php index b736bfa..052ee30 100644 --- a/wallee-sdk/lib/Model/SubscriptionSuspensionAction.php +++ b/wallee-sdk/lib/Model/SubscriptionSuspensionAction.php @@ -1,8 +1,8 @@ container['end_action'] === null) { $invalidProperties[] = "'end_action' can't be null"; } + if (!is_null($this->container['note']) && (mb_strlen($this->container['note']) > 300)) { + $invalidProperties[] = "invalid value for 'note', the character length must be smaller than or equal to 300."; + } + if ($this->container['planned_end_date'] === null) { $invalidProperties[] = "'planned_end_date' can't be null"; } @@ -274,6 +278,10 @@ public function getNote() */ public function setNote($note) { + if (!is_null($note) && (mb_strlen($note) > 300)) { + throw new \InvalidArgumentException('invalid length for $note when calling SubscriptionSuspensionCreate., must be smaller than or equal to 300.'); + } + $this->container['note'] = $note; return $this; diff --git a/wallee-sdk/lib/Model/SubscriptionSuspensionReason.php b/wallee-sdk/lib/Model/SubscriptionSuspensionReason.php index 60814ef..4e4c7b9 100644 --- a/wallee-sdk/lib/Model/SubscriptionSuspensionReason.php +++ b/wallee-sdk/lib/Model/SubscriptionSuspensionReason.php @@ -1,8 +1,8 @@ container['version'] === null) { $invalidProperties[] = "'version' can't be null"; } + if (!is_null($this->container['description']) && (mb_strlen($this->container['description']) > 200)) { + $invalidProperties[] = "invalid value for 'description', the character length must be smaller than or equal to 200."; + } + return $invalidProperties; } @@ -328,6 +332,10 @@ public function getDescription() */ public function setDescription($description) { + if (!is_null($description) && (mb_strlen($description) > 200)) { + throw new \InvalidArgumentException('invalid length for $description when calling SubscriptionUpdate., must be smaller than or equal to 200.'); + } + $this->container['description'] = $description; return $this; diff --git a/wallee-sdk/lib/Model/SubscriptionVersion.php b/wallee-sdk/lib/Model/SubscriptionVersion.php index d2a8ced..2cdc149 100644 --- a/wallee-sdk/lib/Model/SubscriptionVersion.php +++ b/wallee-sdk/lib/Model/SubscriptionVersion.php @@ -1,8 +1,8 @@ container['title']) && (mb_strlen($this->container['title']) > 40)) { + $invalidProperties[] = "invalid value for 'title', the character length must be smaller than or equal to 40."; + } + + if (!is_null($this->container['title']) && (mb_strlen($this->container['title']) < 2)) { + $invalidProperties[] = "invalid value for 'title', the character length must be bigger than or equal to 2."; + } + return $invalidProperties; } @@ -251,6 +259,13 @@ public function getTitle() */ public function setTitle($title) { + if (!is_null($title) && (mb_strlen($title) > 40)) { + throw new \InvalidArgumentException('invalid length for $title when calling Tax., must be smaller than or equal to 40.'); + } + if (!is_null($title) && (mb_strlen($title) < 2)) { + throw new \InvalidArgumentException('invalid length for $title when calling Tax., must be bigger than or equal to 2.'); + } + $this->container['title'] = $title; return $this; diff --git a/wallee-sdk/lib/Model/TaxCalculation.php b/wallee-sdk/lib/Model/TaxCalculation.php new file mode 100644 index 0000000..b222a81 --- /dev/null +++ b/wallee-sdk/lib/Model/TaxCalculation.php @@ -0,0 +1,54 @@ +container['name']) && (mb_strlen($this->container['name']) > 100)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -311,6 +315,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 100)) { + throw new \InvalidArgumentException('invalid length for $name when calling TaxClass., must be smaller than or equal to 100.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/TaxCreate.php b/wallee-sdk/lib/Model/TaxCreate.php index 62cd987..e7381b5 100644 --- a/wallee-sdk/lib/Model/TaxCreate.php +++ b/wallee-sdk/lib/Model/TaxCreate.php @@ -1,8 +1,8 @@ container['title'] === null) { $invalidProperties[] = "'title' can't be null"; } + if ((mb_strlen($this->container['title']) > 40)) { + $invalidProperties[] = "invalid value for 'title', the character length must be smaller than or equal to 40."; + } + + if ((mb_strlen($this->container['title']) < 2)) { + $invalidProperties[] = "invalid value for 'title', the character length must be bigger than or equal to 2."; + } + return $invalidProperties; } @@ -257,6 +265,13 @@ public function getTitle() */ public function setTitle($title) { + if ((mb_strlen($title) > 40)) { + throw new \InvalidArgumentException('invalid length for $title when calling TaxCreate., must be smaller than or equal to 40.'); + } + if ((mb_strlen($title) < 2)) { + throw new \InvalidArgumentException('invalid length for $title when calling TaxCreate., must be bigger than or equal to 2.'); + } + $this->container['title'] = $title; return $this; diff --git a/wallee-sdk/lib/Model/TenantDatabase.php b/wallee-sdk/lib/Model/TenantDatabase.php index 1c38e1e..77ab592 100644 --- a/wallee-sdk/lib/Model/TenantDatabase.php +++ b/wallee-sdk/lib/Model/TenantDatabase.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 200)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 200."; + } + return $invalidProperties; } @@ -258,6 +262,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 200)) { + throw new \InvalidArgumentException('invalid length for $name when calling TenantDatabase., must be smaller than or equal to 200.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/Token.php b/wallee-sdk/lib/Model/Token.php index 068349d..f51d48d 100644 --- a/wallee-sdk/lib/Model/Token.php +++ b/wallee-sdk/lib/Model/Token.php @@ -1,8 +1,8 @@ container['customer_email_address']) && (mb_strlen($this->container['customer_email_address']) > 150)) { + $invalidProperties[] = "invalid value for 'customer_email_address', the character length must be smaller than or equal to 150."; + } + + if (!is_null($this->container['external_id']) && (mb_strlen($this->container['external_id']) > 100)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['external_id']) && (mb_strlen($this->container['external_id']) < 1)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be bigger than or equal to 1."; + } + + if (!is_null($this->container['token_reference']) && (mb_strlen($this->container['token_reference']) > 100)) { + $invalidProperties[] = "invalid value for 'token_reference', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -328,6 +344,10 @@ public function getCustomerEmailAddress() */ public function setCustomerEmailAddress($customer_email_address) { + if (!is_null($customer_email_address) && (mb_strlen($customer_email_address) > 150)) { + throw new \InvalidArgumentException('invalid length for $customer_email_address when calling Token., must be smaller than or equal to 150.'); + } + $this->container['customer_email_address'] = $customer_email_address; return $this; @@ -403,6 +423,13 @@ public function getExternalId() */ public function setExternalId($external_id) { + if (!is_null($external_id) && (mb_strlen($external_id) > 100)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling Token., must be smaller than or equal to 100.'); + } + if (!is_null($external_id) && (mb_strlen($external_id) < 1)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling Token., must be bigger than or equal to 1.'); + } + $this->container['external_id'] = $external_id; return $this; @@ -578,6 +605,10 @@ public function getTokenReference() */ public function setTokenReference($token_reference) { + if (!is_null($token_reference) && (mb_strlen($token_reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $token_reference when calling Token., must be smaller than or equal to 100.'); + } + $this->container['token_reference'] = $token_reference; return $this; diff --git a/wallee-sdk/lib/Model/TokenCreate.php b/wallee-sdk/lib/Model/TokenCreate.php index 84a9a55..3ec12ad 100644 --- a/wallee-sdk/lib/Model/TokenCreate.php +++ b/wallee-sdk/lib/Model/TokenCreate.php @@ -1,8 +1,8 @@ container['external_id'] === null) { $invalidProperties[] = "'external_id' can't be null"; } + if ((mb_strlen($this->container['external_id']) > 100)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be smaller than or equal to 100."; + } + + if ((mb_strlen($this->container['external_id']) < 1)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be bigger than or equal to 1."; + } + return $invalidProperties; } @@ -223,6 +231,13 @@ public function getExternalId() */ public function setExternalId($external_id) { + if ((mb_strlen($external_id) > 100)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling TokenCreate., must be smaller than or equal to 100.'); + } + if ((mb_strlen($external_id) < 1)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling TokenCreate., must be bigger than or equal to 1.'); + } + $this->container['external_id'] = $external_id; return $this; diff --git a/wallee-sdk/lib/Model/TokenUpdate.php b/wallee-sdk/lib/Model/TokenUpdate.php index 7d78e7e..4ed7268 100644 --- a/wallee-sdk/lib/Model/TokenUpdate.php +++ b/wallee-sdk/lib/Model/TokenUpdate.php @@ -1,8 +1,8 @@ '\DateTime', 'environment' => '\Wallee\Sdk\Model\ChargeAttemptEnvironment', 'expires_on' => '\DateTime', + 'icon_url' => 'string', 'id' => 'int', 'labels' => '\Wallee\Sdk\Model\Label[]', 'language' => 'string', @@ -84,6 +85,7 @@ class TokenVersion implements ModelInterface, ArrayAccess 'created_on' => 'date-time', 'environment' => null, 'expires_on' => 'date-time', + 'icon_url' => null, 'id' => 'int64', 'labels' => null, 'language' => null, @@ -115,6 +117,7 @@ class TokenVersion implements ModelInterface, ArrayAccess 'created_on' => 'createdOn', 'environment' => 'environment', 'expires_on' => 'expiresOn', + 'icon_url' => 'iconUrl', 'id' => 'id', 'labels' => 'labels', 'language' => 'language', @@ -145,6 +148,7 @@ class TokenVersion implements ModelInterface, ArrayAccess 'created_on' => 'setCreatedOn', 'environment' => 'setEnvironment', 'expires_on' => 'setExpiresOn', + 'icon_url' => 'setIconUrl', 'id' => 'setId', 'labels' => 'setLabels', 'language' => 'setLanguage', @@ -175,6 +179,7 @@ class TokenVersion implements ModelInterface, ArrayAccess 'created_on' => 'getCreatedOn', 'environment' => 'getEnvironment', 'expires_on' => 'getExpiresOn', + 'icon_url' => 'getIconUrl', 'id' => 'getId', 'labels' => 'getLabels', 'language' => 'getLanguage', @@ -222,6 +227,8 @@ public function __construct(array $data = null) $this->container['expires_on'] = isset($data['expires_on']) ? $data['expires_on'] : null; + $this->container['icon_url'] = isset($data['icon_url']) ? $data['icon_url'] : null; + $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['labels'] = isset($data['labels']) ? $data['labels'] : null; @@ -267,6 +274,14 @@ public function listInvalidProperties() { $invalidProperties = []; + if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) > 150)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 150."; + } + + if (!is_null($this->container['processor_token']) && (mb_strlen($this->container['processor_token']) > 150)) { + $invalidProperties[] = "invalid value for 'processor_token', the character length must be smaller than or equal to 150."; + } + return $invalidProperties; } @@ -472,6 +487,31 @@ public function setExpiresOn($expires_on) } + /** + * Gets icon_url + * + * @return string + */ + public function getIconUrl() + { + return $this->container['icon_url']; + } + + /** + * Sets icon_url + * + * @param string $icon_url + * + * @return $this + */ + public function setIconUrl($icon_url) + { + $this->container['icon_url'] = $icon_url; + + return $this; + } + + /** * Gets id * @@ -591,6 +631,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 150)) { + throw new \InvalidArgumentException('invalid length for $name when calling TokenVersion., must be smaller than or equal to 150.'); + } + $this->container['name'] = $name; return $this; @@ -766,6 +810,10 @@ public function getProcessorToken() */ public function setProcessorToken($processor_token) { + if (!is_null($processor_token) && (mb_strlen($processor_token) > 150)) { + throw new \InvalidArgumentException('invalid length for $processor_token when calling TokenVersion., must be smaller than or equal to 150.'); + } + $this->container['processor_token'] = $processor_token; return $this; diff --git a/wallee-sdk/lib/Model/TokenVersionState.php b/wallee-sdk/lib/Model/TokenVersionState.php index 18c4064..8f31151 100644 --- a/wallee-sdk/lib/Model/TokenVersionState.php +++ b/wallee-sdk/lib/Model/TokenVersionState.php @@ -1,8 +1,8 @@ 'bool', 'completed_amount' => 'float', 'completed_on' => '\DateTime', + 'completion_behavior' => '\Wallee\Sdk\Model\TransactionCompletionBehavior', 'completion_timeout_on' => '\DateTime', 'confirmed_by' => 'int', 'confirmed_on' => '\DateTime', @@ -101,9 +102,12 @@ class Transaction implements ModelInterface, ArrayAccess 'space_view_id' => 'int', 'state' => '\Wallee\Sdk\Model\TransactionState', 'success_url' => 'string', + 'terminal' => '\Wallee\Sdk\Model\PaymentTerminal', 'time_zone' => 'string', 'token' => '\Wallee\Sdk\Model\Token', 'tokenization_mode' => '\Wallee\Sdk\Model\TokenizationMode', + 'total_applied_fees' => 'float', + 'total_settled_amount' => 'float', 'user_agent_header' => 'string', 'user_failure_message' => 'string', 'user_interface_type' => '\Wallee\Sdk\Model\TransactionUserInterfaceType', @@ -130,6 +134,7 @@ class Transaction implements ModelInterface, ArrayAccess 'charge_retry_enabled' => null, 'completed_amount' => null, 'completed_on' => 'date-time', + 'completion_behavior' => null, 'completion_timeout_on' => 'date-time', 'confirmed_by' => 'int64', 'confirmed_on' => 'date-time', @@ -168,9 +173,12 @@ class Transaction implements ModelInterface, ArrayAccess 'space_view_id' => 'int64', 'state' => null, 'success_url' => null, + 'terminal' => null, 'time_zone' => null, 'token' => null, 'tokenization_mode' => null, + 'total_applied_fees' => null, + 'total_settled_amount' => null, 'user_agent_header' => null, 'user_failure_message' => null, 'user_interface_type' => null, @@ -198,6 +206,7 @@ class Transaction implements ModelInterface, ArrayAccess 'charge_retry_enabled' => 'chargeRetryEnabled', 'completed_amount' => 'completedAmount', 'completed_on' => 'completedOn', + 'completion_behavior' => 'completionBehavior', 'completion_timeout_on' => 'completionTimeoutOn', 'confirmed_by' => 'confirmedBy', 'confirmed_on' => 'confirmedOn', @@ -236,9 +245,12 @@ class Transaction implements ModelInterface, ArrayAccess 'space_view_id' => 'spaceViewId', 'state' => 'state', 'success_url' => 'successUrl', + 'terminal' => 'terminal', 'time_zone' => 'timeZone', 'token' => 'token', 'tokenization_mode' => 'tokenizationMode', + 'total_applied_fees' => 'totalAppliedFees', + 'total_settled_amount' => 'totalSettledAmount', 'user_agent_header' => 'userAgentHeader', 'user_failure_message' => 'userFailureMessage', 'user_interface_type' => 'userInterfaceType', @@ -265,6 +277,7 @@ class Transaction implements ModelInterface, ArrayAccess 'charge_retry_enabled' => 'setChargeRetryEnabled', 'completed_amount' => 'setCompletedAmount', 'completed_on' => 'setCompletedOn', + 'completion_behavior' => 'setCompletionBehavior', 'completion_timeout_on' => 'setCompletionTimeoutOn', 'confirmed_by' => 'setConfirmedBy', 'confirmed_on' => 'setConfirmedOn', @@ -303,9 +316,12 @@ class Transaction implements ModelInterface, ArrayAccess 'space_view_id' => 'setSpaceViewId', 'state' => 'setState', 'success_url' => 'setSuccessUrl', + 'terminal' => 'setTerminal', 'time_zone' => 'setTimeZone', 'token' => 'setToken', 'tokenization_mode' => 'setTokenizationMode', + 'total_applied_fees' => 'setTotalAppliedFees', + 'total_settled_amount' => 'setTotalSettledAmount', 'user_agent_header' => 'setUserAgentHeader', 'user_failure_message' => 'setUserFailureMessage', 'user_interface_type' => 'setUserInterfaceType', @@ -332,6 +348,7 @@ class Transaction implements ModelInterface, ArrayAccess 'charge_retry_enabled' => 'getChargeRetryEnabled', 'completed_amount' => 'getCompletedAmount', 'completed_on' => 'getCompletedOn', + 'completion_behavior' => 'getCompletionBehavior', 'completion_timeout_on' => 'getCompletionTimeoutOn', 'confirmed_by' => 'getConfirmedBy', 'confirmed_on' => 'getConfirmedOn', @@ -370,9 +387,12 @@ class Transaction implements ModelInterface, ArrayAccess 'space_view_id' => 'getSpaceViewId', 'state' => 'getState', 'success_url' => 'getSuccessUrl', + 'terminal' => 'getTerminal', 'time_zone' => 'getTimeZone', 'token' => 'getToken', 'tokenization_mode' => 'getTokenizationMode', + 'total_applied_fees' => 'getTotalAppliedFees', + 'total_settled_amount' => 'getTotalSettledAmount', 'user_agent_header' => 'getUserAgentHeader', 'user_failure_message' => 'getUserFailureMessage', 'user_interface_type' => 'getUserInterfaceType', @@ -425,6 +445,8 @@ public function __construct(array $data = null) $this->container['completed_on'] = isset($data['completed_on']) ? $data['completed_on'] : null; + $this->container['completion_behavior'] = isset($data['completion_behavior']) ? $data['completion_behavior'] : null; + $this->container['completion_timeout_on'] = isset($data['completion_timeout_on']) ? $data['completion_timeout_on'] : null; $this->container['confirmed_by'] = isset($data['confirmed_by']) ? $data['confirmed_by'] : null; @@ -501,12 +523,18 @@ public function __construct(array $data = null) $this->container['success_url'] = isset($data['success_url']) ? $data['success_url'] : null; + $this->container['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['time_zone'] = isset($data['time_zone']) ? $data['time_zone'] : null; $this->container['token'] = isset($data['token']) ? $data['token'] : null; $this->container['tokenization_mode'] = isset($data['tokenization_mode']) ? $data['tokenization_mode'] : null; + $this->container['total_applied_fees'] = isset($data['total_applied_fees']) ? $data['total_applied_fees'] : null; + + $this->container['total_settled_amount'] = isset($data['total_settled_amount']) ? $data['total_settled_amount'] : null; + $this->container['user_agent_header'] = isset($data['user_agent_header']) ? $data['user_agent_header'] : null; $this->container['user_failure_message'] = isset($data['user_failure_message']) ? $data['user_failure_message'] : null; @@ -526,6 +554,46 @@ public function listInvalidProperties() { $invalidProperties = []; + if (!is_null($this->container['customer_email_address']) && (mb_strlen($this->container['customer_email_address']) > 254)) { + $invalidProperties[] = "invalid value for 'customer_email_address', the character length must be smaller than or equal to 254."; + } + + if (!is_null($this->container['device_session_identifier']) && (mb_strlen($this->container['device_session_identifier']) > 40)) { + $invalidProperties[] = "invalid value for 'device_session_identifier', the character length must be smaller than or equal to 40."; + } + + if (!is_null($this->container['device_session_identifier']) && (mb_strlen($this->container['device_session_identifier']) < 10)) { + $invalidProperties[] = "invalid value for 'device_session_identifier', the character length must be bigger than or equal to 10."; + } + + if (!is_null($this->container['failed_url']) && (mb_strlen($this->container['failed_url']) > 1000)) { + $invalidProperties[] = "invalid value for 'failed_url', the character length must be smaller than or equal to 1000."; + } + + if (!is_null($this->container['failed_url']) && (mb_strlen($this->container['failed_url']) < 9)) { + $invalidProperties[] = "invalid value for 'failed_url', the character length must be bigger than or equal to 9."; + } + + if (!is_null($this->container['invoice_merchant_reference']) && (mb_strlen($this->container['invoice_merchant_reference']) > 100)) { + $invalidProperties[] = "invalid value for 'invoice_merchant_reference', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['merchant_reference']) && (mb_strlen($this->container['merchant_reference']) > 100)) { + $invalidProperties[] = "invalid value for 'merchant_reference', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['shipping_method']) && (mb_strlen($this->container['shipping_method']) > 200)) { + $invalidProperties[] = "invalid value for 'shipping_method', the character length must be smaller than or equal to 200."; + } + + if (!is_null($this->container['success_url']) && (mb_strlen($this->container['success_url']) > 1000)) { + $invalidProperties[] = "invalid value for 'success_url', the character length must be smaller than or equal to 1000."; + } + + if (!is_null($this->container['success_url']) && (mb_strlen($this->container['success_url']) < 9)) { + $invalidProperties[] = "invalid value for 'success_url', the character length must be bigger than or equal to 9."; + } + return $invalidProperties; } @@ -956,6 +1024,31 @@ public function setCompletedOn($completed_on) } + /** + * Gets completion_behavior + * + * @return \Wallee\Sdk\Model\TransactionCompletionBehavior + */ + public function getCompletionBehavior() + { + return $this->container['completion_behavior']; + } + + /** + * Sets completion_behavior + * + * @param \Wallee\Sdk\Model\TransactionCompletionBehavior $completion_behavior The completion behavior controls when the transaction is completed. + * + * @return $this + */ + public function setCompletionBehavior($completion_behavior) + { + $this->container['completion_behavior'] = $completion_behavior; + + return $this; + } + + /** * Gets completion_timeout_on * @@ -1125,6 +1218,10 @@ public function getCustomerEmailAddress() */ public function setCustomerEmailAddress($customer_email_address) { + if (!is_null($customer_email_address) && (mb_strlen($customer_email_address) > 254)) { + throw new \InvalidArgumentException('invalid length for $customer_email_address when calling Transaction., must be smaller than or equal to 254.'); + } + $this->container['customer_email_address'] = $customer_email_address; return $this; @@ -1225,6 +1322,13 @@ public function getDeviceSessionIdentifier() */ public function setDeviceSessionIdentifier($device_session_identifier) { + if (!is_null($device_session_identifier) && (mb_strlen($device_session_identifier) > 40)) { + throw new \InvalidArgumentException('invalid length for $device_session_identifier when calling Transaction., must be smaller than or equal to 40.'); + } + if (!is_null($device_session_identifier) && (mb_strlen($device_session_identifier) < 10)) { + throw new \InvalidArgumentException('invalid length for $device_session_identifier when calling Transaction., must be bigger than or equal to 10.'); + } + $this->container['device_session_identifier'] = $device_session_identifier; return $this; @@ -1375,6 +1479,13 @@ public function getFailedUrl() */ public function setFailedUrl($failed_url) { + if (!is_null($failed_url) && (mb_strlen($failed_url) > 1000)) { + throw new \InvalidArgumentException('invalid length for $failed_url when calling Transaction., must be smaller than or equal to 1000.'); + } + if (!is_null($failed_url) && (mb_strlen($failed_url) < 9)) { + throw new \InvalidArgumentException('invalid length for $failed_url when calling Transaction., must be bigger than or equal to 9.'); + } + $this->container['failed_url'] = $failed_url; return $this; @@ -1525,6 +1636,10 @@ public function getInvoiceMerchantReference() */ public function setInvoiceMerchantReference($invoice_merchant_reference) { + if (!is_null($invoice_merchant_reference) && (mb_strlen($invoice_merchant_reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $invoice_merchant_reference when calling Transaction., must be smaller than or equal to 100.'); + } + $this->container['invoice_merchant_reference'] = $invoice_merchant_reference; return $this; @@ -1625,6 +1740,10 @@ public function getMerchantReference() */ public function setMerchantReference($merchant_reference) { + if (!is_null($merchant_reference) && (mb_strlen($merchant_reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $merchant_reference when calling Transaction., must be smaller than or equal to 100.'); + } + $this->container['merchant_reference'] = $merchant_reference; return $this; @@ -1825,6 +1944,10 @@ public function getShippingMethod() */ public function setShippingMethod($shipping_method) { + if (!is_null($shipping_method) && (mb_strlen($shipping_method) > 200)) { + throw new \InvalidArgumentException('invalid length for $shipping_method when calling Transaction., must be smaller than or equal to 200.'); + } + $this->container['shipping_method'] = $shipping_method; return $this; @@ -1900,12 +2023,44 @@ public function getSuccessUrl() */ public function setSuccessUrl($success_url) { + if (!is_null($success_url) && (mb_strlen($success_url) > 1000)) { + throw new \InvalidArgumentException('invalid length for $success_url when calling Transaction., must be smaller than or equal to 1000.'); + } + if (!is_null($success_url) && (mb_strlen($success_url) < 9)) { + throw new \InvalidArgumentException('invalid length for $success_url when calling Transaction., must be bigger than or equal to 9.'); + } + $this->container['success_url'] = $success_url; return $this; } + /** + * Gets terminal + * + * @return \Wallee\Sdk\Model\PaymentTerminal + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param \Wallee\Sdk\Model\PaymentTerminal $terminal The terminal on which the payment was processed. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** * Gets time_zone * @@ -1981,6 +2136,56 @@ public function setTokenizationMode($tokenization_mode) } + /** + * Gets total_applied_fees + * + * @return float + */ + public function getTotalAppliedFees() + { + return $this->container['total_applied_fees']; + } + + /** + * Sets total_applied_fees + * + * @param float $total_applied_fees The total applied fees is the sum of all fees that have been applied so far. + * + * @return $this + */ + public function setTotalAppliedFees($total_applied_fees) + { + $this->container['total_applied_fees'] = $total_applied_fees; + + return $this; + } + + + /** + * Gets total_settled_amount + * + * @return float + */ + public function getTotalSettledAmount() + { + return $this->container['total_settled_amount']; + } + + /** + * Sets total_settled_amount + * + * @param float $total_settled_amount The total settled amount is the total amount which has been settled so far. + * + * @return $this + */ + public function setTotalSettledAmount($total_settled_amount) + { + $this->container['total_settled_amount'] = $total_settled_amount; + + return $this; + } + + /** * Gets user_agent_header * diff --git a/wallee-sdk/lib/Model/TransactionAwareEntity.php b/wallee-sdk/lib/Model/TransactionAwareEntity.php index 5070428..9f1e85c 100644 --- a/wallee-sdk/lib/Model/TransactionAwareEntity.php +++ b/wallee-sdk/lib/Model/TransactionAwareEntity.php @@ -1,8 +1,8 @@ container['content']) && (mb_strlen($this->container['content']) > 262144)) { + $invalidProperties[] = "invalid value for 'content', the character length must be smaller than or equal to 262144."; + } + return $invalidProperties; } @@ -282,6 +286,10 @@ public function getContent() */ public function setContent($content) { + if (!is_null($content) && (mb_strlen($content) > 262144)) { + throw new \InvalidArgumentException('invalid length for $content when calling TransactionComment., must be smaller than or equal to 262144.'); + } + $this->container['content'] = $content; return $this; diff --git a/wallee-sdk/lib/Model/TransactionCommentActive.php b/wallee-sdk/lib/Model/TransactionCommentActive.php index f9a5f27..325ceb0 100644 --- a/wallee-sdk/lib/Model/TransactionCommentActive.php +++ b/wallee-sdk/lib/Model/TransactionCommentActive.php @@ -1,8 +1,8 @@ 'string', 'failed_on' => '\DateTime', 'failure_reason' => '\Wallee\Sdk\Model\FailureReason', + 'invoice_merchant_reference' => 'string', 'labels' => '\Wallee\Sdk\Model\Label[]', 'language' => 'string', 'last_completion' => 'bool', 'line_item_version' => '\Wallee\Sdk\Model\TransactionLineItemVersion', 'line_items' => '\Wallee\Sdk\Model\LineItem[]', + 'linked_space_id' => 'int', 'mode' => '\Wallee\Sdk\Model\TransactionCompletionMode', 'next_update_on' => '\DateTime', 'payment_information' => 'string', @@ -88,11 +90,13 @@ class TransactionCompletion extends TransactionAwareEntity 'external_id' => null, 'failed_on' => 'date-time', 'failure_reason' => null, + 'invoice_merchant_reference' => null, 'labels' => null, 'language' => null, 'last_completion' => null, 'line_item_version' => null, 'line_items' => null, + 'linked_space_id' => 'int64', 'mode' => null, 'next_update_on' => 'date-time', 'payment_information' => null, @@ -123,11 +127,13 @@ class TransactionCompletion extends TransactionAwareEntity 'external_id' => 'externalId', 'failed_on' => 'failedOn', 'failure_reason' => 'failureReason', + 'invoice_merchant_reference' => 'invoiceMerchantReference', 'labels' => 'labels', 'language' => 'language', 'last_completion' => 'lastCompletion', 'line_item_version' => 'lineItemVersion', 'line_items' => 'lineItems', + 'linked_space_id' => 'linkedSpaceId', 'mode' => 'mode', 'next_update_on' => 'nextUpdateOn', 'payment_information' => 'paymentInformation', @@ -157,11 +163,13 @@ class TransactionCompletion extends TransactionAwareEntity 'external_id' => 'setExternalId', 'failed_on' => 'setFailedOn', 'failure_reason' => 'setFailureReason', + 'invoice_merchant_reference' => 'setInvoiceMerchantReference', 'labels' => 'setLabels', 'language' => 'setLanguage', 'last_completion' => 'setLastCompletion', 'line_item_version' => 'setLineItemVersion', 'line_items' => 'setLineItems', + 'linked_space_id' => 'setLinkedSpaceId', 'mode' => 'setMode', 'next_update_on' => 'setNextUpdateOn', 'payment_information' => 'setPaymentInformation', @@ -191,11 +199,13 @@ class TransactionCompletion extends TransactionAwareEntity 'external_id' => 'getExternalId', 'failed_on' => 'getFailedOn', 'failure_reason' => 'getFailureReason', + 'invoice_merchant_reference' => 'getInvoiceMerchantReference', 'labels' => 'getLabels', 'language' => 'getLanguage', 'last_completion' => 'getLastCompletion', 'line_item_version' => 'getLineItemVersion', 'line_items' => 'getLineItems', + 'linked_space_id' => 'getLinkedSpaceId', 'mode' => 'getMode', 'next_update_on' => 'getNextUpdateOn', 'payment_information' => 'getPaymentInformation', @@ -240,6 +250,8 @@ public function __construct(array $data = null) $this->container['failure_reason'] = isset($data['failure_reason']) ? $data['failure_reason'] : null; + $this->container['invoice_merchant_reference'] = isset($data['invoice_merchant_reference']) ? $data['invoice_merchant_reference'] : null; + $this->container['labels'] = isset($data['labels']) ? $data['labels'] : null; $this->container['language'] = isset($data['language']) ? $data['language'] : null; @@ -250,6 +262,8 @@ public function __construct(array $data = null) $this->container['line_items'] = isset($data['line_items']) ? $data['line_items'] : null; + $this->container['linked_space_id'] = isset($data['linked_space_id']) ? $data['linked_space_id'] : null; + $this->container['mode'] = isset($data['mode']) ? $data['mode'] : null; $this->container['next_update_on'] = isset($data['next_update_on']) ? $data['next_update_on'] : null; @@ -289,6 +303,18 @@ public function listInvalidProperties() { $invalidProperties = parent::listInvalidProperties(); + if (!is_null($this->container['external_id']) && (mb_strlen($this->container['external_id']) > 100)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['external_id']) && (mb_strlen($this->container['external_id']) < 1)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be bigger than or equal to 1."; + } + + if (!is_null($this->container['invoice_merchant_reference']) && (mb_strlen($this->container['invoice_merchant_reference']) > 100)) { + $invalidProperties[] = "invalid value for 'invoice_merchant_reference', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -488,6 +514,13 @@ public function getExternalId() */ public function setExternalId($external_id) { + if (!is_null($external_id) && (mb_strlen($external_id) > 100)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling TransactionCompletion., must be smaller than or equal to 100.'); + } + if (!is_null($external_id) && (mb_strlen($external_id) < 1)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling TransactionCompletion., must be bigger than or equal to 1.'); + } + $this->container['external_id'] = $external_id; return $this; @@ -544,6 +577,35 @@ public function setFailureReason($failure_reason) } + /** + * Gets invoice_merchant_reference + * + * @return string + */ + public function getInvoiceMerchantReference() + { + return $this->container['invoice_merchant_reference']; + } + + /** + * Sets invoice_merchant_reference + * + * @param string $invoice_merchant_reference + * + * @return $this + */ + public function setInvoiceMerchantReference($invoice_merchant_reference) + { + if (!is_null($invoice_merchant_reference) && (mb_strlen($invoice_merchant_reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $invoice_merchant_reference when calling TransactionCompletion., must be smaller than or equal to 100.'); + } + + $this->container['invoice_merchant_reference'] = $invoice_merchant_reference; + + return $this; + } + + /** * Gets labels * @@ -669,6 +731,31 @@ public function setLineItems($line_items) } + /** + * Gets linked_space_id + * + * @return int + */ + public function getLinkedSpaceId() + { + return $this->container['linked_space_id']; + } + + /** + * Sets linked_space_id + * + * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * + * @return $this + */ + public function setLinkedSpaceId($linked_space_id) + { + $this->container['linked_space_id'] = $linked_space_id; + + return $this; + } + + /** * Gets mode * diff --git a/wallee-sdk/lib/Model/TransactionCompletionBehavior.php b/wallee-sdk/lib/Model/TransactionCompletionBehavior.php new file mode 100644 index 0000000..c51161c --- /dev/null +++ b/wallee-sdk/lib/Model/TransactionCompletionBehavior.php @@ -0,0 +1,56 @@ + 'string', + 'invoice_merchant_reference' => 'string', 'last_completion' => 'bool', 'line_items' => '\Wallee\Sdk\Model\CompletionLineItemCreate[]', 'transaction_id' => 'int' @@ -62,6 +63,7 @@ class TransactionCompletionRequest implements ModelInterface, ArrayAccess */ protected static $swaggerFormats = [ 'external_id' => null, + 'invoice_merchant_reference' => null, 'last_completion' => null, 'line_items' => null, 'transaction_id' => 'int64' @@ -75,6 +77,7 @@ class TransactionCompletionRequest implements ModelInterface, ArrayAccess */ protected static $attributeMap = [ 'external_id' => 'externalId', + 'invoice_merchant_reference' => 'invoiceMerchantReference', 'last_completion' => 'lastCompletion', 'line_items' => 'lineItems', 'transaction_id' => 'transactionId' @@ -87,6 +90,7 @@ class TransactionCompletionRequest implements ModelInterface, ArrayAccess */ protected static $setters = [ 'external_id' => 'setExternalId', + 'invoice_merchant_reference' => 'setInvoiceMerchantReference', 'last_completion' => 'setLastCompletion', 'line_items' => 'setLineItems', 'transaction_id' => 'setTransactionId' @@ -99,6 +103,7 @@ class TransactionCompletionRequest implements ModelInterface, ArrayAccess */ protected static $getters = [ 'external_id' => 'getExternalId', + 'invoice_merchant_reference' => 'getInvoiceMerchantReference', 'last_completion' => 'getLastCompletion', 'line_items' => 'getLineItems', 'transaction_id' => 'getTransactionId' @@ -124,6 +129,8 @@ public function __construct(array $data = null) $this->container['external_id'] = isset($data['external_id']) ? $data['external_id'] : null; + $this->container['invoice_merchant_reference'] = isset($data['invoice_merchant_reference']) ? $data['invoice_merchant_reference'] : null; + $this->container['last_completion'] = isset($data['last_completion']) ? $data['last_completion'] : null; $this->container['line_items'] = isset($data['line_items']) ? $data['line_items'] : null; @@ -144,6 +151,18 @@ public function listInvalidProperties() if ($this->container['external_id'] === null) { $invalidProperties[] = "'external_id' can't be null"; } + if ((mb_strlen($this->container['external_id']) > 100)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be smaller than or equal to 100."; + } + + if ((mb_strlen($this->container['external_id']) < 1)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be bigger than or equal to 1."; + } + + if (!is_null($this->container['invoice_merchant_reference']) && (mb_strlen($this->container['invoice_merchant_reference']) > 100)) { + $invalidProperties[] = "invalid value for 'invoice_merchant_reference', the character length must be smaller than or equal to 100."; + } + if ($this->container['last_completion'] === null) { $invalidProperties[] = "'last_completion' can't be null"; } @@ -249,12 +268,48 @@ public function getExternalId() */ public function setExternalId($external_id) { + if ((mb_strlen($external_id) > 100)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling TransactionCompletionRequest., must be smaller than or equal to 100.'); + } + if ((mb_strlen($external_id) < 1)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling TransactionCompletionRequest., must be bigger than or equal to 1.'); + } + $this->container['external_id'] = $external_id; return $this; } + /** + * Gets invoice_merchant_reference + * + * @return string + */ + public function getInvoiceMerchantReference() + { + return $this->container['invoice_merchant_reference']; + } + + /** + * Sets invoice_merchant_reference + * + * @param string $invoice_merchant_reference + * + * @return $this + */ + public function setInvoiceMerchantReference($invoice_merchant_reference) + { + if (!is_null($invoice_merchant_reference) && (mb_strlen($invoice_merchant_reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $invoice_merchant_reference when calling TransactionCompletionRequest., must be smaller than or equal to 100.'); + } + + $this->container['invoice_merchant_reference'] = $invoice_merchant_reference; + + return $this; + } + + /** * Gets last_completion * diff --git a/wallee-sdk/lib/Model/TransactionCompletionState.php b/wallee-sdk/lib/Model/TransactionCompletionState.php index 76957b4..e205ca5 100644 --- a/wallee-sdk/lib/Model/TransactionCompletionState.php +++ b/wallee-sdk/lib/Model/TransactionCompletionState.php @@ -1,8 +1,8 @@ 'bool', + 'billing_address' => '\Wallee\Sdk\Model\AddressCreate', 'charge_retry_enabled' => 'bool', 'customers_presence' => '\Wallee\Sdk\Model\CustomersPresence', 'device_session_identifier' => 'string', 'emails_disabled' => 'bool', 'environment' => '\Wallee\Sdk\Model\Environment', 'environment_selection_strategy' => '\Wallee\Sdk\Model\TransactionEnvironmentSelectionStrategy', - 'space_view_id' => 'int' + 'line_items' => '\Wallee\Sdk\Model\LineItemCreate[]', + 'shipping_address' => '\Wallee\Sdk\Model\AddressCreate', + 'space_view_id' => 'int', + 'token' => 'int' ]; /** @@ -64,13 +68,17 @@ class TransactionCreate extends AbstractTransactionPending */ protected static $swaggerFormats = [ 'auto_confirmation_enabled' => null, + 'billing_address' => null, 'charge_retry_enabled' => null, 'customers_presence' => null, 'device_session_identifier' => null, 'emails_disabled' => null, 'environment' => null, 'environment_selection_strategy' => null, - 'space_view_id' => 'int64' + 'line_items' => null, + 'shipping_address' => null, + 'space_view_id' => 'int64', + 'token' => 'int64' ]; /** @@ -81,13 +89,17 @@ class TransactionCreate extends AbstractTransactionPending */ protected static $attributeMap = [ 'auto_confirmation_enabled' => 'autoConfirmationEnabled', + 'billing_address' => 'billingAddress', 'charge_retry_enabled' => 'chargeRetryEnabled', 'customers_presence' => 'customersPresence', 'device_session_identifier' => 'deviceSessionIdentifier', 'emails_disabled' => 'emailsDisabled', 'environment' => 'environment', 'environment_selection_strategy' => 'environmentSelectionStrategy', - 'space_view_id' => 'spaceViewId' + 'line_items' => 'lineItems', + 'shipping_address' => 'shippingAddress', + 'space_view_id' => 'spaceViewId', + 'token' => 'token' ]; /** @@ -97,13 +109,17 @@ class TransactionCreate extends AbstractTransactionPending */ protected static $setters = [ 'auto_confirmation_enabled' => 'setAutoConfirmationEnabled', + 'billing_address' => 'setBillingAddress', 'charge_retry_enabled' => 'setChargeRetryEnabled', 'customers_presence' => 'setCustomersPresence', 'device_session_identifier' => 'setDeviceSessionIdentifier', 'emails_disabled' => 'setEmailsDisabled', 'environment' => 'setEnvironment', 'environment_selection_strategy' => 'setEnvironmentSelectionStrategy', - 'space_view_id' => 'setSpaceViewId' + 'line_items' => 'setLineItems', + 'shipping_address' => 'setShippingAddress', + 'space_view_id' => 'setSpaceViewId', + 'token' => 'setToken' ]; /** @@ -113,13 +129,17 @@ class TransactionCreate extends AbstractTransactionPending */ protected static $getters = [ 'auto_confirmation_enabled' => 'getAutoConfirmationEnabled', + 'billing_address' => 'getBillingAddress', 'charge_retry_enabled' => 'getChargeRetryEnabled', 'customers_presence' => 'getCustomersPresence', 'device_session_identifier' => 'getDeviceSessionIdentifier', 'emails_disabled' => 'getEmailsDisabled', 'environment' => 'getEnvironment', 'environment_selection_strategy' => 'getEnvironmentSelectionStrategy', - 'space_view_id' => 'getSpaceViewId' + 'line_items' => 'getLineItems', + 'shipping_address' => 'getShippingAddress', + 'space_view_id' => 'getSpaceViewId', + 'token' => 'getToken' ]; @@ -138,6 +158,8 @@ public function __construct(array $data = null) $this->container['auto_confirmation_enabled'] = isset($data['auto_confirmation_enabled']) ? $data['auto_confirmation_enabled'] : null; + $this->container['billing_address'] = isset($data['billing_address']) ? $data['billing_address'] : null; + $this->container['charge_retry_enabled'] = isset($data['charge_retry_enabled']) ? $data['charge_retry_enabled'] : null; $this->container['customers_presence'] = isset($data['customers_presence']) ? $data['customers_presence'] : null; @@ -150,8 +172,14 @@ public function __construct(array $data = null) $this->container['environment_selection_strategy'] = isset($data['environment_selection_strategy']) ? $data['environment_selection_strategy'] : null; + $this->container['line_items'] = isset($data['line_items']) ? $data['line_items'] : null; + + $this->container['shipping_address'] = isset($data['shipping_address']) ? $data['shipping_address'] : null; + $this->container['space_view_id'] = isset($data['space_view_id']) ? $data['space_view_id'] : null; + $this->container['token'] = isset($data['token']) ? $data['token'] : null; + } /** @@ -163,6 +191,14 @@ public function listInvalidProperties() { $invalidProperties = parent::listInvalidProperties(); + if (!is_null($this->container['device_session_identifier']) && (mb_strlen($this->container['device_session_identifier']) > 40)) { + $invalidProperties[] = "invalid value for 'device_session_identifier', the character length must be smaller than or equal to 40."; + } + + if (!is_null($this->container['device_session_identifier']) && (mb_strlen($this->container['device_session_identifier']) < 10)) { + $invalidProperties[] = "invalid value for 'device_session_identifier', the character length must be bigger than or equal to 10."; + } + if ($this->container['line_items'] === null) { $invalidProperties[] = "'line_items' can't be null"; } @@ -271,6 +307,31 @@ public function setAutoConfirmationEnabled($auto_confirmation_enabled) } + /** + * Gets billing_address + * + * @return \Wallee\Sdk\Model\AddressCreate + */ + public function getBillingAddress() + { + return $this->container['billing_address']; + } + + /** + * Sets billing_address + * + * @param \Wallee\Sdk\Model\AddressCreate $billing_address + * + * @return $this + */ + public function setBillingAddress($billing_address) + { + $this->container['billing_address'] = $billing_address; + + return $this; + } + + /** * Gets charge_retry_enabled * @@ -340,6 +401,13 @@ public function getDeviceSessionIdentifier() */ public function setDeviceSessionIdentifier($device_session_identifier) { + if (!is_null($device_session_identifier) && (mb_strlen($device_session_identifier) > 40)) { + throw new \InvalidArgumentException('invalid length for $device_session_identifier when calling TransactionCreate., must be smaller than or equal to 40.'); + } + if (!is_null($device_session_identifier) && (mb_strlen($device_session_identifier) < 10)) { + throw new \InvalidArgumentException('invalid length for $device_session_identifier when calling TransactionCreate., must be bigger than or equal to 10.'); + } + $this->container['device_session_identifier'] = $device_session_identifier; return $this; @@ -421,6 +489,56 @@ public function setEnvironmentSelectionStrategy($environment_selection_strategy) } + /** + * Gets line_items + * + * @return \Wallee\Sdk\Model\LineItemCreate[] + */ + public function getLineItems() + { + return $this->container['line_items']; + } + + /** + * Sets line_items + * + * @param \Wallee\Sdk\Model\LineItemCreate[] $line_items + * + * @return $this + */ + public function setLineItems($line_items) + { + $this->container['line_items'] = $line_items; + + return $this; + } + + + /** + * Gets shipping_address + * + * @return \Wallee\Sdk\Model\AddressCreate + */ + public function getShippingAddress() + { + return $this->container['shipping_address']; + } + + /** + * Sets shipping_address + * + * @param \Wallee\Sdk\Model\AddressCreate $shipping_address + * + * @return $this + */ + public function setShippingAddress($shipping_address) + { + $this->container['shipping_address'] = $shipping_address; + + return $this; + } + + /** * Gets space_view_id * @@ -445,6 +563,31 @@ public function setSpaceViewId($space_view_id) return $this; } + + /** + * Gets token + * + * @return int + */ + public function getToken() + { + return $this->container['token']; + } + + /** + * Sets token + * + * @param int $token + * + * @return $this + */ + public function setToken($token) + { + $this->container['token'] = $token; + + return $this; + } + /** * Returns true if offset exists. False otherwise. * diff --git a/wallee-sdk/lib/Model/TransactionEnvironmentSelectionStrategy.php b/wallee-sdk/lib/Model/TransactionEnvironmentSelectionStrategy.php index efa3d7c..6a139ef 100644 --- a/wallee-sdk/lib/Model/TransactionEnvironmentSelectionStrategy.php +++ b/wallee-sdk/lib/Model/TransactionEnvironmentSelectionStrategy.php @@ -1,8 +1,8 @@ container['customer_id']) && (mb_strlen($this->container['customer_id']) > 100)) { + $invalidProperties[] = "invalid value for 'customer_id', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -293,6 +297,10 @@ public function getCustomerId() */ public function setCustomerId($customer_id) { + if (!is_null($customer_id) && (mb_strlen($customer_id) > 100)) { + throw new \InvalidArgumentException('invalid length for $customer_id when calling TransactionGroup., must be smaller than or equal to 100.'); + } + $this->container['customer_id'] = $customer_id; return $this; diff --git a/wallee-sdk/lib/Model/TransactionGroupState.php b/wallee-sdk/lib/Model/TransactionGroupState.php index 26c35c9..69ab98f 100644 --- a/wallee-sdk/lib/Model/TransactionGroupState.php +++ b/wallee-sdk/lib/Model/TransactionGroupState.php @@ -1,8 +1,8 @@ '\Wallee\Sdk\Model\Address', 'completion' => '\Wallee\Sdk\Model\TransactionCompletion', 'created_on' => '\DateTime', + 'derecognized_by' => 'int', 'derecognized_on' => '\DateTime', 'due_on' => '\DateTime', 'environment' => '\Wallee\Sdk\Model\Environment', 'external_id' => 'string', 'language' => 'string', 'line_items' => '\Wallee\Sdk\Model\LineItem[]', + 'linked_space_id' => 'int', 'merchant_reference' => 'string', 'outstanding_amount' => 'float', 'paid_on' => '\DateTime', @@ -78,12 +80,14 @@ class TransactionInvoice extends TransactionAwareEntity 'billing_address' => null, 'completion' => null, 'created_on' => 'date-time', + 'derecognized_by' => 'int64', 'derecognized_on' => 'date-time', 'due_on' => 'date-time', 'environment' => null, 'external_id' => null, 'language' => null, 'line_items' => null, + 'linked_space_id' => 'int64', 'merchant_reference' => null, 'outstanding_amount' => null, 'paid_on' => 'date-time', @@ -106,12 +110,14 @@ class TransactionInvoice extends TransactionAwareEntity 'billing_address' => 'billingAddress', 'completion' => 'completion', 'created_on' => 'createdOn', + 'derecognized_by' => 'derecognizedBy', 'derecognized_on' => 'derecognizedOn', 'due_on' => 'dueOn', 'environment' => 'environment', 'external_id' => 'externalId', 'language' => 'language', 'line_items' => 'lineItems', + 'linked_space_id' => 'linkedSpaceId', 'merchant_reference' => 'merchantReference', 'outstanding_amount' => 'outstandingAmount', 'paid_on' => 'paidOn', @@ -133,12 +139,14 @@ class TransactionInvoice extends TransactionAwareEntity 'billing_address' => 'setBillingAddress', 'completion' => 'setCompletion', 'created_on' => 'setCreatedOn', + 'derecognized_by' => 'setDerecognizedBy', 'derecognized_on' => 'setDerecognizedOn', 'due_on' => 'setDueOn', 'environment' => 'setEnvironment', 'external_id' => 'setExternalId', 'language' => 'setLanguage', 'line_items' => 'setLineItems', + 'linked_space_id' => 'setLinkedSpaceId', 'merchant_reference' => 'setMerchantReference', 'outstanding_amount' => 'setOutstandingAmount', 'paid_on' => 'setPaidOn', @@ -160,12 +168,14 @@ class TransactionInvoice extends TransactionAwareEntity 'billing_address' => 'getBillingAddress', 'completion' => 'getCompletion', 'created_on' => 'getCreatedOn', + 'derecognized_by' => 'getDerecognizedBy', 'derecognized_on' => 'getDerecognizedOn', 'due_on' => 'getDueOn', 'environment' => 'getEnvironment', 'external_id' => 'getExternalId', 'language' => 'getLanguage', 'line_items' => 'getLineItems', + 'linked_space_id' => 'getLinkedSpaceId', 'merchant_reference' => 'getMerchantReference', 'outstanding_amount' => 'getOutstandingAmount', 'paid_on' => 'getPaidOn', @@ -199,6 +209,8 @@ public function __construct(array $data = null) $this->container['created_on'] = isset($data['created_on']) ? $data['created_on'] : null; + $this->container['derecognized_by'] = isset($data['derecognized_by']) ? $data['derecognized_by'] : null; + $this->container['derecognized_on'] = isset($data['derecognized_on']) ? $data['derecognized_on'] : null; $this->container['due_on'] = isset($data['due_on']) ? $data['due_on'] : null; @@ -211,6 +223,8 @@ public function __construct(array $data = null) $this->container['line_items'] = isset($data['line_items']) ? $data['line_items'] : null; + $this->container['linked_space_id'] = isset($data['linked_space_id']) ? $data['linked_space_id'] : null; + $this->container['merchant_reference'] = isset($data['merchant_reference']) ? $data['merchant_reference'] : null; $this->container['outstanding_amount'] = isset($data['outstanding_amount']) ? $data['outstanding_amount'] : null; @@ -240,6 +254,18 @@ public function listInvalidProperties() { $invalidProperties = parent::listInvalidProperties(); + if (!is_null($this->container['external_id']) && (mb_strlen($this->container['external_id']) > 100)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['external_id']) && (mb_strlen($this->container['external_id']) < 1)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be bigger than or equal to 1."; + } + + if (!is_null($this->container['merchant_reference']) && (mb_strlen($this->container['merchant_reference']) > 100)) { + $invalidProperties[] = "invalid value for 'merchant_reference', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -420,6 +446,31 @@ public function setCreatedOn($created_on) } + /** + * Gets derecognized_by + * + * @return int + */ + public function getDerecognizedBy() + { + return $this->container['derecognized_by']; + } + + /** + * Sets derecognized_by + * + * @param int $derecognized_by The id of the user which marked the invoice as derecognized. + * + * @return $this + */ + public function setDerecognizedBy($derecognized_by) + { + $this->container['derecognized_by'] = $derecognized_by; + + return $this; + } + + /** * Gets derecognized_on * @@ -514,6 +565,13 @@ public function getExternalId() */ public function setExternalId($external_id) { + if (!is_null($external_id) && (mb_strlen($external_id) > 100)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling TransactionInvoice., must be smaller than or equal to 100.'); + } + if (!is_null($external_id) && (mb_strlen($external_id) < 1)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling TransactionInvoice., must be bigger than or equal to 1.'); + } + $this->container['external_id'] = $external_id; return $this; @@ -570,6 +628,31 @@ public function setLineItems($line_items) } + /** + * Gets linked_space_id + * + * @return int + */ + public function getLinkedSpaceId() + { + return $this->container['linked_space_id']; + } + + /** + * Sets linked_space_id + * + * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * + * @return $this + */ + public function setLinkedSpaceId($linked_space_id) + { + $this->container['linked_space_id'] = $linked_space_id; + + return $this; + } + + /** * Gets merchant_reference * @@ -589,6 +672,10 @@ public function getMerchantReference() */ public function setMerchantReference($merchant_reference) { + if (!is_null($merchant_reference) && (mb_strlen($merchant_reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $merchant_reference when calling TransactionInvoice., must be smaller than or equal to 100.'); + } + $this->container['merchant_reference'] = $merchant_reference; return $this; diff --git a/wallee-sdk/lib/Model/TransactionInvoiceComment.php b/wallee-sdk/lib/Model/TransactionInvoiceComment.php index 82d0d61..623b41a 100644 --- a/wallee-sdk/lib/Model/TransactionInvoiceComment.php +++ b/wallee-sdk/lib/Model/TransactionInvoiceComment.php @@ -1,8 +1,8 @@ container['content']) && (mb_strlen($this->container['content']) > 262144)) { + $invalidProperties[] = "invalid value for 'content', the character length must be smaller than or equal to 262144."; + } + return $invalidProperties; } @@ -282,6 +286,10 @@ public function getContent() */ public function setContent($content) { + if (!is_null($content) && (mb_strlen($content) > 262144)) { + throw new \InvalidArgumentException('invalid length for $content when calling TransactionInvoiceComment., must be smaller than or equal to 262144.'); + } + $this->container['content'] = $content; return $this; diff --git a/wallee-sdk/lib/Model/TransactionInvoiceCommentActive.php b/wallee-sdk/lib/Model/TransactionInvoiceCommentActive.php index 3f1f704..30cfe05 100644 --- a/wallee-sdk/lib/Model/TransactionInvoiceCommentActive.php +++ b/wallee-sdk/lib/Model/TransactionInvoiceCommentActive.php @@ -1,8 +1,8 @@ container['external_id'] === null) { $invalidProperties[] = "'external_id' can't be null"; } + if ((mb_strlen($this->container['external_id']) > 100)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be smaller than or equal to 100."; + } + + if ((mb_strlen($this->container['external_id']) < 1)) { + $invalidProperties[] = "invalid value for 'external_id', the character length must be bigger than or equal to 1."; + } + if ($this->container['line_items'] === null) { $invalidProperties[] = "'line_items' can't be null"; } + if (!is_null($this->container['merchant_reference']) && (mb_strlen($this->container['merchant_reference']) > 100)) { + $invalidProperties[] = "invalid value for 'merchant_reference', the character length must be smaller than or equal to 100."; + } + return $invalidProperties; } @@ -310,6 +322,13 @@ public function getExternalId() */ public function setExternalId($external_id) { + if ((mb_strlen($external_id) > 100)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling TransactionInvoiceReplacement., must be smaller than or equal to 100.'); + } + if ((mb_strlen($external_id) < 1)) { + throw new \InvalidArgumentException('invalid length for $external_id when calling TransactionInvoiceReplacement., must be bigger than or equal to 1.'); + } + $this->container['external_id'] = $external_id; return $this; @@ -360,6 +379,10 @@ public function getMerchantReference() */ public function setMerchantReference($merchant_reference) { + if (!is_null($merchant_reference) && (mb_strlen($merchant_reference) > 100)) { + throw new \InvalidArgumentException('invalid length for $merchant_reference when calling TransactionInvoiceReplacement., must be smaller than or equal to 100.'); + } + $this->container['merchant_reference'] = $merchant_reference; return $this; diff --git a/wallee-sdk/lib/Model/TransactionInvoiceState.php b/wallee-sdk/lib/Model/TransactionInvoiceState.php index f240a14..0e7f902 100644 --- a/wallee-sdk/lib/Model/TransactionInvoiceState.php +++ b/wallee-sdk/lib/Model/TransactionInvoiceState.php @@ -1,8 +1,8 @@ '\DateTime', 'language' => 'string', 'line_items' => '\Wallee\Sdk\Model\LineItem[]', + 'linked_space_id' => 'int', 'planned_purge_date' => '\DateTime', 'space_view_id' => 'int', 'tax_amount' => 'float', @@ -70,6 +71,7 @@ class TransactionLineItemVersion extends TransactionAwareEntity 'created_on' => 'date-time', 'language' => null, 'line_items' => null, + 'linked_space_id' => 'int64', 'planned_purge_date' => 'date-time', 'space_view_id' => 'int64', 'tax_amount' => null, @@ -89,6 +91,7 @@ class TransactionLineItemVersion extends TransactionAwareEntity 'created_on' => 'createdOn', 'language' => 'language', 'line_items' => 'lineItems', + 'linked_space_id' => 'linkedSpaceId', 'planned_purge_date' => 'plannedPurgeDate', 'space_view_id' => 'spaceViewId', 'tax_amount' => 'taxAmount', @@ -107,6 +110,7 @@ class TransactionLineItemVersion extends TransactionAwareEntity 'created_on' => 'setCreatedOn', 'language' => 'setLanguage', 'line_items' => 'setLineItems', + 'linked_space_id' => 'setLinkedSpaceId', 'planned_purge_date' => 'setPlannedPurgeDate', 'space_view_id' => 'setSpaceViewId', 'tax_amount' => 'setTaxAmount', @@ -125,6 +129,7 @@ class TransactionLineItemVersion extends TransactionAwareEntity 'created_on' => 'getCreatedOn', 'language' => 'getLanguage', 'line_items' => 'getLineItems', + 'linked_space_id' => 'getLinkedSpaceId', 'planned_purge_date' => 'getPlannedPurgeDate', 'space_view_id' => 'getSpaceViewId', 'tax_amount' => 'getTaxAmount', @@ -156,6 +161,8 @@ public function __construct(array $data = null) $this->container['line_items'] = isset($data['line_items']) ? $data['line_items'] : null; + $this->container['linked_space_id'] = isset($data['linked_space_id']) ? $data['linked_space_id'] : null; + $this->container['planned_purge_date'] = isset($data['planned_purge_date']) ? $data['planned_purge_date'] : null; $this->container['space_view_id'] = isset($data['space_view_id']) ? $data['space_view_id'] : null; @@ -382,6 +389,31 @@ public function setLineItems($line_items) } + /** + * Gets linked_space_id + * + * @return int + */ + public function getLinkedSpaceId() + { + return $this->container['linked_space_id']; + } + + /** + * Sets linked_space_id + * + * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * + * @return $this + */ + public function setLinkedSpaceId($linked_space_id) + { + $this->container['linked_space_id'] = $linked_space_id; + + return $this; + } + + /** * Gets planned_purge_date * diff --git a/wallee-sdk/lib/Model/TransactionPending.php b/wallee-sdk/lib/Model/TransactionPending.php index f690d41..99fcaa5 100644 --- a/wallee-sdk/lib/Model/TransactionPending.php +++ b/wallee-sdk/lib/Model/TransactionPending.php @@ -1,8 +1,8 @@ '\Wallee\Sdk\Model\FailureReason', 'labels' => '\Wallee\Sdk\Model\Label[]', 'language' => 'string', + 'linked_space_id' => 'int', 'mode' => '\Wallee\Sdk\Model\TransactionVoidMode', 'next_update_on' => '\DateTime', 'planned_purge_date' => '\DateTime', @@ -77,6 +78,7 @@ class TransactionVoid extends TransactionAwareEntity 'failure_reason' => null, 'labels' => null, 'language' => null, + 'linked_space_id' => 'int64', 'mode' => null, 'next_update_on' => 'date-time', 'planned_purge_date' => 'date-time', @@ -102,6 +104,7 @@ class TransactionVoid extends TransactionAwareEntity 'failure_reason' => 'failureReason', 'labels' => 'labels', 'language' => 'language', + 'linked_space_id' => 'linkedSpaceId', 'mode' => 'mode', 'next_update_on' => 'nextUpdateOn', 'planned_purge_date' => 'plannedPurgeDate', @@ -126,6 +129,7 @@ class TransactionVoid extends TransactionAwareEntity 'failure_reason' => 'setFailureReason', 'labels' => 'setLabels', 'language' => 'setLanguage', + 'linked_space_id' => 'setLinkedSpaceId', 'mode' => 'setMode', 'next_update_on' => 'setNextUpdateOn', 'planned_purge_date' => 'setPlannedPurgeDate', @@ -150,6 +154,7 @@ class TransactionVoid extends TransactionAwareEntity 'failure_reason' => 'getFailureReason', 'labels' => 'getLabels', 'language' => 'getLanguage', + 'linked_space_id' => 'getLinkedSpaceId', 'mode' => 'getMode', 'next_update_on' => 'getNextUpdateOn', 'planned_purge_date' => 'getPlannedPurgeDate', @@ -188,6 +193,8 @@ public function __construct(array $data = null) $this->container['language'] = isset($data['language']) ? $data['language'] : null; + $this->container['linked_space_id'] = isset($data['linked_space_id']) ? $data['linked_space_id'] : null; + $this->container['mode'] = isset($data['mode']) ? $data['mode'] : null; $this->container['next_update_on'] = isset($data['next_update_on']) ? $data['next_update_on'] : null; @@ -449,6 +456,31 @@ public function setLanguage($language) } + /** + * Gets linked_space_id + * + * @return int + */ + public function getLinkedSpaceId() + { + return $this->container['linked_space_id']; + } + + /** + * Sets linked_space_id + * + * @param int $linked_space_id The linked space id holds the ID of the space to which the entity belongs to. + * + * @return $this + */ + public function setLinkedSpaceId($linked_space_id) + { + $this->container['linked_space_id'] = $linked_space_id; + + return $this; + } + + /** * Gets mode * diff --git a/wallee-sdk/lib/Model/TransactionVoidMode.php b/wallee-sdk/lib/Model/TransactionVoidMode.php index f3f4c6a..a222bcd 100644 --- a/wallee-sdk/lib/Model/TransactionVoidMode.php +++ b/wallee-sdk/lib/Model/TransactionVoidMode.php @@ -1,8 +1,8 @@ container['card_holder_name']) && (mb_strlen($this->container['card_holder_name']) > 100)) { + $invalidProperties[] = "invalid value for 'card_holder_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['card_verification_code']) && (mb_strlen($this->container['card_verification_code']) > 4)) { + $invalidProperties[] = "invalid value for 'card_verification_code', the character length must be smaller than or equal to 4."; + } + + if (!is_null($this->container['card_verification_code']) && (mb_strlen($this->container['card_verification_code']) < 3)) { + $invalidProperties[] = "invalid value for 'card_verification_code', the character length must be bigger than or equal to 3."; + } + + if (!is_null($this->container['primary_account_number']) && (mb_strlen($this->container['primary_account_number']) > 30)) { + $invalidProperties[] = "invalid value for 'primary_account_number', the character length must be smaller than or equal to 30."; + } + + if (!is_null($this->container['primary_account_number']) && (mb_strlen($this->container['primary_account_number']) < 10)) { + $invalidProperties[] = "invalid value for 'primary_account_number', the character length must be bigger than or equal to 10."; + } + return $invalidProperties; } @@ -240,6 +260,10 @@ public function getCardHolderName() */ public function setCardHolderName($card_holder_name) { + if (!is_null($card_holder_name) && (mb_strlen($card_holder_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $card_holder_name when calling UnencryptedCardData., must be smaller than or equal to 100.'); + } + $this->container['card_holder_name'] = $card_holder_name; return $this; @@ -265,6 +289,13 @@ public function getCardVerificationCode() */ public function setCardVerificationCode($card_verification_code) { + if (!is_null($card_verification_code) && (mb_strlen($card_verification_code) > 4)) { + throw new \InvalidArgumentException('invalid length for $card_verification_code when calling UnencryptedCardData., must be smaller than or equal to 4.'); + } + if (!is_null($card_verification_code) && (mb_strlen($card_verification_code) < 3)) { + throw new \InvalidArgumentException('invalid length for $card_verification_code when calling UnencryptedCardData., must be bigger than or equal to 3.'); + } + $this->container['card_verification_code'] = $card_verification_code; return $this; @@ -315,6 +346,13 @@ public function getPrimaryAccountNumber() */ public function setPrimaryAccountNumber($primary_account_number) { + if (!is_null($primary_account_number) && (mb_strlen($primary_account_number) > 30)) { + throw new \InvalidArgumentException('invalid length for $primary_account_number when calling UnencryptedCardData., must be smaller than or equal to 30.'); + } + if (!is_null($primary_account_number) && (mb_strlen($primary_account_number) < 10)) { + throw new \InvalidArgumentException('invalid length for $primary_account_number when calling UnencryptedCardData., must be bigger than or equal to 10.'); + } + $this->container['primary_account_number'] = $primary_account_number; return $this; diff --git a/wallee-sdk/lib/Model/UnencryptedCardDataCreate.php b/wallee-sdk/lib/Model/UnencryptedCardDataCreate.php index 25c70ba..565c024 100644 --- a/wallee-sdk/lib/Model/UnencryptedCardDataCreate.php +++ b/wallee-sdk/lib/Model/UnencryptedCardDataCreate.php @@ -1,8 +1,8 @@ container['card_holder_name']) && (mb_strlen($this->container['card_holder_name']) > 100)) { + $invalidProperties[] = "invalid value for 'card_holder_name', the character length must be smaller than or equal to 100."; + } + + if (!is_null($this->container['card_verification_code']) && (mb_strlen($this->container['card_verification_code']) > 4)) { + $invalidProperties[] = "invalid value for 'card_verification_code', the character length must be smaller than or equal to 4."; + } + + if (!is_null($this->container['card_verification_code']) && (mb_strlen($this->container['card_verification_code']) < 3)) { + $invalidProperties[] = "invalid value for 'card_verification_code', the character length must be bigger than or equal to 3."; + } + if ($this->container['primary_account_number'] === null) { $invalidProperties[] = "'primary_account_number' can't be null"; } + if ((mb_strlen($this->container['primary_account_number']) > 30)) { + $invalidProperties[] = "invalid value for 'primary_account_number', the character length must be smaller than or equal to 30."; + } + + if ((mb_strlen($this->container['primary_account_number']) < 10)) { + $invalidProperties[] = "invalid value for 'primary_account_number', the character length must be bigger than or equal to 10."; + } + return $invalidProperties; } @@ -243,6 +263,10 @@ public function getCardHolderName() */ public function setCardHolderName($card_holder_name) { + if (!is_null($card_holder_name) && (mb_strlen($card_holder_name) > 100)) { + throw new \InvalidArgumentException('invalid length for $card_holder_name when calling UnencryptedCardDataCreate., must be smaller than or equal to 100.'); + } + $this->container['card_holder_name'] = $card_holder_name; return $this; @@ -268,6 +292,13 @@ public function getCardVerificationCode() */ public function setCardVerificationCode($card_verification_code) { + if (!is_null($card_verification_code) && (mb_strlen($card_verification_code) > 4)) { + throw new \InvalidArgumentException('invalid length for $card_verification_code when calling UnencryptedCardDataCreate., must be smaller than or equal to 4.'); + } + if (!is_null($card_verification_code) && (mb_strlen($card_verification_code) < 3)) { + throw new \InvalidArgumentException('invalid length for $card_verification_code when calling UnencryptedCardDataCreate., must be bigger than or equal to 3.'); + } + $this->container['card_verification_code'] = $card_verification_code; return $this; @@ -318,6 +349,13 @@ public function getPrimaryAccountNumber() */ public function setPrimaryAccountNumber($primary_account_number) { + if ((mb_strlen($primary_account_number) > 30)) { + throw new \InvalidArgumentException('invalid length for $primary_account_number when calling UnencryptedCardDataCreate., must be smaller than or equal to 30.'); + } + if ((mb_strlen($primary_account_number) < 10)) { + throw new \InvalidArgumentException('invalid length for $primary_account_number when calling UnencryptedCardDataCreate., must be bigger than or equal to 10.'); + } + $this->container['primary_account_number'] = $primary_account_number; return $this; diff --git a/wallee-sdk/lib/Model/User.php b/wallee-sdk/lib/Model/User.php index 386fa53..cda43b2 100644 --- a/wallee-sdk/lib/Model/User.php +++ b/wallee-sdk/lib/Model/User.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 50)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 50."; + } + return $invalidProperties; } @@ -304,6 +308,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 50)) { + throw new \InvalidArgumentException('invalid length for $name when calling WebhookIdentity., must be smaller than or equal to 50.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/WebhookListener.php b/wallee-sdk/lib/Model/WebhookListener.php index 14aa9b6..35aa674 100644 --- a/wallee-sdk/lib/Model/WebhookListener.php +++ b/wallee-sdk/lib/Model/WebhookListener.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 50)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 50."; + } + return $invalidProperties; } @@ -414,6 +418,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 50)) { + throw new \InvalidArgumentException('invalid length for $name when calling WebhookListener., must be smaller than or equal to 50.'); + } + $this->container['name'] = $name; return $this; diff --git a/wallee-sdk/lib/Model/WebhookListenerCreate.php b/wallee-sdk/lib/Model/WebhookListenerCreate.php index 332ba96..e291ff4 100644 --- a/wallee-sdk/lib/Model/WebhookListenerCreate.php +++ b/wallee-sdk/lib/Model/WebhookListenerCreate.php @@ -1,8 +1,8 @@ container['name']) && (mb_strlen($this->container['name']) > 50)) { + $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 50."; + } + + if (!is_null($this->container['url']) && (mb_strlen($this->container['url']) > 500)) { + $invalidProperties[] = "invalid value for 'url', the character length must be smaller than or equal to 500."; + } + + if (!is_null($this->container['url']) && (mb_strlen($this->container['url']) < 9)) { + $invalidProperties[] = "invalid value for 'url', the character length must be bigger than or equal to 9."; + } + return $invalidProperties; } @@ -311,6 +323,10 @@ public function getName() */ public function setName($name) { + if (!is_null($name) && (mb_strlen($name) > 50)) { + throw new \InvalidArgumentException('invalid length for $name when calling WebhookUrl., must be smaller than or equal to 50.'); + } + $this->container['name'] = $name; return $this; @@ -386,6 +402,13 @@ public function getUrl() */ public function setUrl($url) { + if (!is_null($url) && (mb_strlen($url) > 500)) { + throw new \InvalidArgumentException('invalid length for $url when calling WebhookUrl., must be smaller than or equal to 500.'); + } + if (!is_null($url) && (mb_strlen($url) < 9)) { + throw new \InvalidArgumentException('invalid length for $url when calling WebhookUrl., must be bigger than or equal to 9.'); + } + $this->container['url'] = $url; return $this; diff --git a/wallee-sdk/lib/Model/WebhookUrlCreate.php b/wallee-sdk/lib/Model/WebhookUrlCreate.php index 4fbe76a..47e5ea2 100644 --- a/wallee-sdk/lib/Model/WebhookUrlCreate.php +++ b/wallee-sdk/lib/Model/WebhookUrlCreate.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -231,6 +232,7 @@ public function createWithHttpInfo($entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -336,6 +338,7 @@ public function deleteWithHttpInfo($id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -439,6 +442,7 @@ public function readWithHttpInfo($id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -544,6 +548,7 @@ public function searchWithHttpInfo($query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -649,6 +654,7 @@ public function updateWithHttpInfo($entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/ApplicationUserService.php b/wallee-sdk/lib/Service/ApplicationUserService.php index 4e8714f..b997d73 100644 --- a/wallee-sdk/lib/Service/ApplicationUserService.php +++ b/wallee-sdk/lib/Service/ApplicationUserService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -231,6 +232,7 @@ public function createWithHttpInfo($entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -336,6 +338,7 @@ public function deleteWithHttpInfo($id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -439,6 +442,7 @@ public function readWithHttpInfo($id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -544,6 +548,7 @@ public function searchWithHttpInfo($query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -649,6 +654,7 @@ public function updateWithHttpInfo($entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/CardProcessingService.php b/wallee-sdk/lib/Service/CardProcessingService.php index aa0893a..60bf854 100644 --- a/wallee-sdk/lib/Service/CardProcessingService.php +++ b/wallee-sdk/lib/Service/CardProcessingService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -297,6 +298,7 @@ public function processWith3DSecureWithHttpInfo($space_id, $transaction_id, $pay } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/ChargeAttemptService.php b/wallee-sdk/lib/Service/ChargeAttemptService.php index f5c132c..8bfe713 100644 --- a/wallee-sdk/lib/Service/ChargeAttemptService.php +++ b/wallee-sdk/lib/Service/ChargeAttemptService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -247,6 +248,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -361,6 +363,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/ChargeFlowLevelPaymentLinkService.php b/wallee-sdk/lib/Service/ChargeFlowLevelPaymentLinkService.php index 6e4bf99..4823ebe 100644 --- a/wallee-sdk/lib/Service/ChargeFlowLevelPaymentLinkService.php +++ b/wallee-sdk/lib/Service/ChargeFlowLevelPaymentLinkService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -247,6 +248,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -361,6 +363,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/ChargeFlowLevelService.php b/wallee-sdk/lib/Service/ChargeFlowLevelService.php index cb6a29d..f840020 100644 --- a/wallee-sdk/lib/Service/ChargeFlowLevelService.php +++ b/wallee-sdk/lib/Service/ChargeFlowLevelService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -247,6 +248,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -361,6 +363,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -473,6 +476,7 @@ public function sendMessageWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/ChargeFlowService.php b/wallee-sdk/lib/Service/ChargeFlowService.php index e8ae4e9..3e4dbda 100644 --- a/wallee-sdk/lib/Service/ChargeFlowService.php +++ b/wallee-sdk/lib/Service/ChargeFlowService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -247,6 +248,7 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -359,6 +361,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -473,6 +476,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -603,6 +607,7 @@ public function updateRecipientWithHttpInfo($space_id, $transaction_id, $type, $ } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/ConditionTypeService.php b/wallee-sdk/lib/Service/ConditionTypeService.php index ad3de2a..b1e4d9b 100644 --- a/wallee-sdk/lib/Service/ConditionTypeService.php +++ b/wallee-sdk/lib/Service/ConditionTypeService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -222,6 +223,7 @@ public function readWithHttpInfo($id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', diff --git a/wallee-sdk/lib/Service/CountryService.php b/wallee-sdk/lib/Service/CountryService.php index e160927..fa7ef1f 100644 --- a/wallee-sdk/lib/Service/CountryService.php +++ b/wallee-sdk/lib/Service/CountryService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', diff --git a/wallee-sdk/lib/Service/CountryStateService.php b/wallee-sdk/lib/Service/CountryStateService.php index c51aa9d..1cdab69 100644 --- a/wallee-sdk/lib/Service/CountryStateService.php +++ b/wallee-sdk/lib/Service/CountryStateService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -222,6 +223,7 @@ public function countryWithHttpInfo($code) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', diff --git a/wallee-sdk/lib/Service/CurrencyService.php b/wallee-sdk/lib/Service/CurrencyService.php index 43f033b..e70a726 100644 --- a/wallee-sdk/lib/Service/CurrencyService.php +++ b/wallee-sdk/lib/Service/CurrencyService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', diff --git a/wallee-sdk/lib/Service/CustomerAddressService.php b/wallee-sdk/lib/Service/CustomerAddressService.php index 30d9cb2..8f4d801 100644 --- a/wallee-sdk/lib/Service/CustomerAddressService.php +++ b/wallee-sdk/lib/Service/CustomerAddressService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -363,6 +365,7 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -475,6 +478,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -589,6 +593,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -701,6 +706,7 @@ public function selectDefaultAddressWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -815,6 +821,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/CustomerCommentService.php b/wallee-sdk/lib/Service/CustomerCommentService.php index 5ac32d8..98a67af 100644 --- a/wallee-sdk/lib/Service/CustomerCommentService.php +++ b/wallee-sdk/lib/Service/CustomerCommentService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -363,6 +365,7 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -475,6 +478,7 @@ public function pinCommentWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -587,6 +591,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -701,6 +706,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -813,6 +819,7 @@ public function unpinCommentWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -927,6 +934,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/CustomerService.php b/wallee-sdk/lib/Service/CustomerService.php index 5a12b51..81d1207 100644 --- a/wallee-sdk/lib/Service/CustomerService.php +++ b/wallee-sdk/lib/Service/CustomerService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -363,6 +365,7 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -475,6 +478,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -589,6 +593,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -703,6 +708,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/DebtCollectionCaseService.php b/wallee-sdk/lib/Service/DebtCollectionCaseService.php index 37a5db4..58c1765 100644 --- a/wallee-sdk/lib/Service/DebtCollectionCaseService.php +++ b/wallee-sdk/lib/Service/DebtCollectionCaseService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -293,6 +294,7 @@ public function attachDocumentWithHttpInfo($space_id, $id, $file_name, $content_ } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -413,6 +415,7 @@ public function closeWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -531,6 +534,7 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -645,6 +649,7 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -759,6 +764,7 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -871,6 +877,7 @@ public function documentsWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -991,6 +998,7 @@ public function markAsPreparedWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -1111,6 +1119,7 @@ public function markAsReviewedWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -1231,6 +1240,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -1345,6 +1355,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -1459,6 +1470,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/DebtCollectorConfigurationService.php b/wallee-sdk/lib/Service/DebtCollectorConfigurationService.php index d6cf45c..47ac653 100644 --- a/wallee-sdk/lib/Service/DebtCollectorConfigurationService.php +++ b/wallee-sdk/lib/Service/DebtCollectorConfigurationService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -247,6 +248,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -361,6 +363,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/DebtCollectorService.php b/wallee-sdk/lib/Service/DebtCollectorService.php index b8c1f04..218edfc 100644 --- a/wallee-sdk/lib/Service/DebtCollectorService.php +++ b/wallee-sdk/lib/Service/DebtCollectorService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -222,6 +223,7 @@ public function readWithHttpInfo($id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', diff --git a/wallee-sdk/lib/Service/DeliveryIndicationService.php b/wallee-sdk/lib/Service/DeliveryIndicationService.php index 1d66fd4..6481d74 100644 --- a/wallee-sdk/lib/Service/DeliveryIndicationService.php +++ b/wallee-sdk/lib/Service/DeliveryIndicationService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function markAsNotSuitableWithHttpInfo($space_id, $delivery_indication_id } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -363,6 +365,7 @@ public function markAsSuitableWithHttpInfo($space_id, $delivery_indication_id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -475,6 +478,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -589,6 +593,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/DocumentTemplateService.php b/wallee-sdk/lib/Service/DocumentTemplateService.php index 412baac..8f4a94e 100644 --- a/wallee-sdk/lib/Service/DocumentTemplateService.php +++ b/wallee-sdk/lib/Service/DocumentTemplateService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -247,6 +248,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -361,6 +363,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/DocumentTemplateTypeService.php b/wallee-sdk/lib/Service/DocumentTemplateTypeService.php index e1e4229..f2b2599 100644 --- a/wallee-sdk/lib/Service/DocumentTemplateTypeService.php +++ b/wallee-sdk/lib/Service/DocumentTemplateTypeService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -222,6 +223,7 @@ public function readWithHttpInfo($id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', diff --git a/wallee-sdk/lib/Service/HumanUserService.php b/wallee-sdk/lib/Service/HumanUserService.php index ff23b48..75d40ec 100644 --- a/wallee-sdk/lib/Service/HumanUserService.php +++ b/wallee-sdk/lib/Service/HumanUserService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -231,6 +232,7 @@ public function createWithHttpInfo($entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -336,6 +338,7 @@ public function deleteWithHttpInfo($id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -441,6 +444,7 @@ public function exportWithHttpInfo($request) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -544,6 +548,7 @@ public function readWithHttpInfo($id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -649,6 +654,7 @@ public function searchWithHttpInfo($query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -754,6 +760,7 @@ public function updateWithHttpInfo($entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/InstallmentPaymentService.php b/wallee-sdk/lib/Service/InstallmentPaymentService.php index e60f8f2..854e1da 100644 --- a/wallee-sdk/lib/Service/InstallmentPaymentService.php +++ b/wallee-sdk/lib/Service/InstallmentPaymentService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -260,6 +261,7 @@ public function createInstallmentPaymentWithHttpInfo($space_id, $transaction_id, } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -372,6 +374,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -486,6 +489,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/InstallmentPaymentSliceService.php b/wallee-sdk/lib/Service/InstallmentPaymentSliceService.php index 1dfe500..fc0714c 100644 --- a/wallee-sdk/lib/Service/InstallmentPaymentSliceService.php +++ b/wallee-sdk/lib/Service/InstallmentPaymentSliceService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -251,6 +252,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -365,6 +367,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/InstallmentPlanCalculationService.php b/wallee-sdk/lib/Service/InstallmentPlanCalculationService.php index 59886d5..a659189 100644 --- a/wallee-sdk/lib/Service/InstallmentPlanCalculationService.php +++ b/wallee-sdk/lib/Service/InstallmentPlanCalculationService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/InstallmentPlanConfigurationService.php b/wallee-sdk/lib/Service/InstallmentPlanConfigurationService.php index 2f90287..88d72f1 100644 --- a/wallee-sdk/lib/Service/InstallmentPlanConfigurationService.php +++ b/wallee-sdk/lib/Service/InstallmentPlanConfigurationService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -251,6 +252,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -365,6 +367,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/InstallmentPlanSliceConfigurationService.php b/wallee-sdk/lib/Service/InstallmentPlanSliceConfigurationService.php index 8ada3e2..c127bd2 100644 --- a/wallee-sdk/lib/Service/InstallmentPlanSliceConfigurationService.php +++ b/wallee-sdk/lib/Service/InstallmentPlanSliceConfigurationService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -251,6 +252,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -365,6 +367,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/LabelDescriptionGroupService.php b/wallee-sdk/lib/Service/LabelDescriptionGroupService.php index a4f56da..3e0d475 100644 --- a/wallee-sdk/lib/Service/LabelDescriptionGroupService.php +++ b/wallee-sdk/lib/Service/LabelDescriptionGroupService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -222,6 +223,7 @@ public function readWithHttpInfo($id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', diff --git a/wallee-sdk/lib/Service/LabelDescriptionService.php b/wallee-sdk/lib/Service/LabelDescriptionService.php index 133b1f1..67e5f78 100644 --- a/wallee-sdk/lib/Service/LabelDescriptionService.php +++ b/wallee-sdk/lib/Service/LabelDescriptionService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -222,6 +223,7 @@ public function readWithHttpInfo($id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', diff --git a/wallee-sdk/lib/Service/LanguageService.php b/wallee-sdk/lib/Service/LanguageService.php index c932079..72e3d34 100644 --- a/wallee-sdk/lib/Service/LanguageService.php +++ b/wallee-sdk/lib/Service/LanguageService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', diff --git a/wallee-sdk/lib/Service/LegalOrganizationFormService.php b/wallee-sdk/lib/Service/LegalOrganizationFormService.php index 5292e54..cb4d56c 100644 --- a/wallee-sdk/lib/Service/LegalOrganizationFormService.php +++ b/wallee-sdk/lib/Service/LegalOrganizationFormService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -222,6 +223,7 @@ public function countryWithHttpInfo($code) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -325,6 +327,7 @@ public function readWithHttpInfo($id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', diff --git a/wallee-sdk/lib/Service/ManualTaskService.php b/wallee-sdk/lib/Service/ManualTaskService.php index eceb973..2368bf2 100644 --- a/wallee-sdk/lib/Service/ManualTaskService.php +++ b/wallee-sdk/lib/Service/ManualTaskService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -247,6 +248,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -361,6 +363,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/MerticUsageService.php b/wallee-sdk/lib/Service/MerticUsageService.php index 0e696e6..9f53c99 100644 --- a/wallee-sdk/lib/Service/MerticUsageService.php +++ b/wallee-sdk/lib/Service/MerticUsageService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/PaymentConnectorConfigurationService.php b/wallee-sdk/lib/Service/PaymentConnectorConfigurationService.php index 02405e5..a38859e 100644 --- a/wallee-sdk/lib/Service/PaymentConnectorConfigurationService.php +++ b/wallee-sdk/lib/Service/PaymentConnectorConfigurationService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -247,6 +248,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -361,6 +363,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/PaymentConnectorService.php b/wallee-sdk/lib/Service/PaymentConnectorService.php index 272e67d..ef893be 100644 --- a/wallee-sdk/lib/Service/PaymentConnectorService.php +++ b/wallee-sdk/lib/Service/PaymentConnectorService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -222,6 +223,7 @@ public function readWithHttpInfo($id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', diff --git a/wallee-sdk/lib/Service/PaymentLinkService.php b/wallee-sdk/lib/Service/PaymentLinkService.php index 8f212d0..b0da929 100644 --- a/wallee-sdk/lib/Service/PaymentLinkService.php +++ b/wallee-sdk/lib/Service/PaymentLinkService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -363,6 +365,7 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -475,6 +478,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -589,6 +593,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -703,6 +708,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/PaymentMethodBrandService.php b/wallee-sdk/lib/Service/PaymentMethodBrandService.php index cd5246b..22c12dc 100644 --- a/wallee-sdk/lib/Service/PaymentMethodBrandService.php +++ b/wallee-sdk/lib/Service/PaymentMethodBrandService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -222,6 +223,7 @@ public function readWithHttpInfo($id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', diff --git a/wallee-sdk/lib/Service/PaymentMethodConfigurationService.php b/wallee-sdk/lib/Service/PaymentMethodConfigurationService.php index 400301f..dc3671a 100644 --- a/wallee-sdk/lib/Service/PaymentMethodConfigurationService.php +++ b/wallee-sdk/lib/Service/PaymentMethodConfigurationService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -247,6 +248,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -361,6 +363,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/PaymentMethodService.php b/wallee-sdk/lib/Service/PaymentMethodService.php index 5d0b9af..bf1ea5d 100644 --- a/wallee-sdk/lib/Service/PaymentMethodService.php +++ b/wallee-sdk/lib/Service/PaymentMethodService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -222,6 +223,7 @@ public function readWithHttpInfo($id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', diff --git a/wallee-sdk/lib/Service/PaymentProcessorConfigurationService.php b/wallee-sdk/lib/Service/PaymentProcessorConfigurationService.php index e4816a5..17b5f83 100644 --- a/wallee-sdk/lib/Service/PaymentProcessorConfigurationService.php +++ b/wallee-sdk/lib/Service/PaymentProcessorConfigurationService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -247,6 +248,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -361,6 +363,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/PaymentProcessorService.php b/wallee-sdk/lib/Service/PaymentProcessorService.php index 3e081c6..5f6037e 100644 --- a/wallee-sdk/lib/Service/PaymentProcessorService.php +++ b/wallee-sdk/lib/Service/PaymentProcessorService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -222,6 +223,7 @@ public function readWithHttpInfo($id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', diff --git a/wallee-sdk/lib/Service/PaymentTerminalService.php b/wallee-sdk/lib/Service/PaymentTerminalService.php index a779e39..4acc25c 100644 --- a/wallee-sdk/lib/Service/PaymentTerminalService.php +++ b/wallee-sdk/lib/Service/PaymentTerminalService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -247,6 +248,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -361,6 +363,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/PaymentTerminalTillService.php b/wallee-sdk/lib/Service/PaymentTerminalTillService.php new file mode 100644 index 0000000..ba3039d --- /dev/null +++ b/wallee-sdk/lib/Service/PaymentTerminalTillService.php @@ -0,0 +1,212 @@ +apiClient = $apiClient; + } + + /** + * Returns the API client instance. + * + * @return ApiClient + */ + public function getApiClient() { + return $this->apiClient; + } + + + /** + * Operation performTransaction + * + * Perform Payment Terminal Transaction + * + * @param int $space_id (required) + * @param int $transaction_id The ID of the transaction which is used to process with the terminal. (required) + * @param int $terminal_id The ID of the terminal which should be used to process the transaction. (required) + * @param string $language The language in which the messages should be rendered in. (optional) + * @throws \Wallee\Sdk\ApiException + * @throws \Wallee\Sdk\VersioningException + * @throws \Wallee\Sdk\Http\ConnectionException + * @return \Wallee\Sdk\Model\Transaction + */ + public function performTransaction($space_id, $transaction_id, $terminal_id, $language = null) { + return $this->performTransactionWithHttpInfo($space_id, $transaction_id, $terminal_id, $language)->getData(); + } + + /** + * Operation performTransactionWithHttpInfo + * + * Perform Payment Terminal Transaction + * + * @param int $space_id (required) + * @param int $transaction_id The ID of the transaction which is used to process with the terminal. (required) + * @param int $terminal_id The ID of the terminal which should be used to process the transaction. (required) + * @param string $language The language in which the messages should be rendered in. (optional) + * @throws \Wallee\Sdk\ApiException + * @throws \Wallee\Sdk\VersioningException + * @throws \Wallee\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function performTransactionWithHttpInfo($space_id, $transaction_id, $terminal_id, $language = null) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling performTransaction'); + } + // verify the required parameter 'transaction_id' is set + if (is_null($transaction_id)) { + throw new \InvalidArgumentException('Missing the required parameter $transaction_id when calling performTransaction'); + } + // verify the required parameter 'terminal_id' is set + if (is_null($terminal_id)) { + throw new \InvalidArgumentException('Missing the required parameter $terminal_id when calling performTransaction'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + if (!is_null($transaction_id)) { + $queryParams['transactionId'] = $this->apiClient->getSerializer()->toQueryValue($transaction_id); + } + if (!is_null($terminal_id)) { + $queryParams['terminalId'] = $this->apiClient->getSerializer()->toQueryValue($terminal_id); + } + if (!is_null($language)) { + $queryParams['language'] = $this->apiClient->getSerializer()->toQueryValue($language); + } + + // path params + $resourcePath = '/payment-terminal-till/perform-transaction'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $this->apiClient->setConnectionTimeout(90); + $response = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + '\Wallee\Sdk\Model\Transaction', + '/payment-terminal-till/perform-transaction' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\Wallee\Sdk\Model\Transaction', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Wallee\Sdk\Model\Transaction', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 409: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Wallee\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Wallee\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Wallee\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 543: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Wallee\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + +} diff --git a/wallee-sdk/lib/Service/PermissionService.php b/wallee-sdk/lib/Service/PermissionService.php index c5142fc..0ec2152 100644 --- a/wallee-sdk/lib/Service/PermissionService.php +++ b/wallee-sdk/lib/Service/PermissionService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -222,6 +223,7 @@ public function readWithHttpInfo($id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', diff --git a/wallee-sdk/lib/Service/RefundCommentService.php b/wallee-sdk/lib/Service/RefundCommentService.php index 551dff0..ace4458 100644 --- a/wallee-sdk/lib/Service/RefundCommentService.php +++ b/wallee-sdk/lib/Service/RefundCommentService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -251,6 +252,7 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -363,6 +365,7 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -475,6 +478,7 @@ public function pinWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -587,6 +591,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -699,6 +704,7 @@ public function unpinWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -813,6 +819,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/RefundService.php b/wallee-sdk/lib/Service/RefundService.php index b190851..f866722 100644 --- a/wallee-sdk/lib/Service/RefundService.php +++ b/wallee-sdk/lib/Service/RefundService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -247,6 +248,7 @@ public function failWithHttpInfo($space_id, $refund_id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -359,6 +361,7 @@ public function getRefundDocumentWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -480,6 +483,7 @@ public function getRefundDocumentWithTargetMediaTypeWithHttpInfo($space_id, $id, } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -592,6 +596,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -706,6 +711,7 @@ public function refundWithHttpInfo($space_id, $refund) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -820,6 +826,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -932,6 +939,7 @@ public function succeedWithHttpInfo($space_id, $refund_id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/ShopifyRecurringOrderService.php b/wallee-sdk/lib/Service/ShopifyRecurringOrderService.php index 0d628aa..ddbc54d 100644 --- a/wallee-sdk/lib/Service/ShopifyRecurringOrderService.php +++ b/wallee-sdk/lib/Service/ShopifyRecurringOrderService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -247,6 +248,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -361,6 +363,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -475,6 +478,7 @@ public function updateWithHttpInfo($space_id, $update_request) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/ShopifySubscriberService.php b/wallee-sdk/lib/Service/ShopifySubscriberService.php index 8315d86..99567f7 100644 --- a/wallee-sdk/lib/Service/ShopifySubscriberService.php +++ b/wallee-sdk/lib/Service/ShopifySubscriberService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -247,6 +248,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -361,6 +363,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/ShopifySubscriptionProductService.php b/wallee-sdk/lib/Service/ShopifySubscriptionProductService.php index f6733c3..fce439b 100644 --- a/wallee-sdk/lib/Service/ShopifySubscriptionProductService.php +++ b/wallee-sdk/lib/Service/ShopifySubscriptionProductService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -361,6 +363,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -475,6 +478,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -522,7 +526,7 @@ public function searchWithHttpInfo($space_id, $query) { * Update * * @param int $space_id (required) - * @param \Wallee\Sdk\Model\ShopifySubscriptionProductActive $entity The Shopify subscription product object with all the properties which should be updated. The id and the version are required properties. (required) + * @param \Wallee\Sdk\Model\ShopifySubscriptionProductUpdate $entity The Shopify subscription product object with all the properties which should be updated. The id and the version are required properties. (required) * @throws \Wallee\Sdk\ApiException * @throws \Wallee\Sdk\VersioningException * @throws \Wallee\Sdk\Http\ConnectionException @@ -538,7 +542,7 @@ public function update($space_id, $entity) { * Update * * @param int $space_id (required) - * @param \Wallee\Sdk\Model\ShopifySubscriptionProductActive $entity The Shopify subscription product object with all the properties which should be updated. The id and the version are required properties. (required) + * @param \Wallee\Sdk\Model\ShopifySubscriptionProductUpdate $entity The Shopify subscription product object with all the properties which should be updated. The id and the version are required properties. (required) * @throws \Wallee\Sdk\ApiException * @throws \Wallee\Sdk\VersioningException * @throws \Wallee\Sdk\Http\ConnectionException @@ -589,6 +593,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/ShopifySubscriptionService.php b/wallee-sdk/lib/Service/ShopifySubscriptionService.php index 3f8eba3..f59b44e 100644 --- a/wallee-sdk/lib/Service/ShopifySubscriptionService.php +++ b/wallee-sdk/lib/Service/ShopifySubscriptionService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -176,6 +177,121 @@ public function countWithHttpInfo($space_id, $filter = null) { } } + /** + * Operation create + * + * Create + * + * @param int $space_id (required) + * @param \Wallee\Sdk\Model\ShopifySubscriptionCreationRequest $creation_request (required) + * @throws \Wallee\Sdk\ApiException + * @throws \Wallee\Sdk\VersioningException + * @throws \Wallee\Sdk\Http\ConnectionException + * @return \Wallee\Sdk\Model\ShopifySubscriptionVersion + */ + public function create($space_id, $creation_request) { + return $this->createWithHttpInfo($space_id, $creation_request)->getData(); + } + + /** + * Operation createWithHttpInfo + * + * Create + * + * @param int $space_id (required) + * @param \Wallee\Sdk\Model\ShopifySubscriptionCreationRequest $creation_request (required) + * @throws \Wallee\Sdk\ApiException + * @throws \Wallee\Sdk\VersioningException + * @throws \Wallee\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function createWithHttpInfo($space_id, $creation_request) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling create'); + } + // verify the required parameter 'creation_request' is set + if (is_null($creation_request)) { + throw new \InvalidArgumentException('Missing the required parameter $creation_request when calling create'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + + // path params + $resourcePath = '/shopify-subscription/create'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + // body params + $tempBody = null; + if (isset($creation_request)) { + $tempBody = $creation_request; + } + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + '\Wallee\Sdk\Model\ShopifySubscriptionVersion', + '/shopify-subscription/create' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\Wallee\Sdk\Model\ShopifySubscriptionVersion', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Wallee\Sdk\Model\ShopifySubscriptionVersion', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Wallee\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Wallee\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + /** * Operation read * @@ -247,6 +363,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -361,6 +478,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -482,6 +600,7 @@ public function terminateWithHttpInfo($space_id, $subscription_id, $respect_term } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -588,6 +707,7 @@ public function updateWithHttpInfo($space_id, $subscription) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -629,4 +749,119 @@ public function updateWithHttpInfo($space_id, $subscription) { } } + /** + * Operation updateAddresses + * + * Update Addresses + * + * @param int $space_id (required) + * @param \Wallee\Sdk\Model\ShopifySubscriptionUpdateAddressesRequest $update_request (required) + * @throws \Wallee\Sdk\ApiException + * @throws \Wallee\Sdk\VersioningException + * @throws \Wallee\Sdk\Http\ConnectionException + * @return \Wallee\Sdk\Model\ShopifySubscriptionVersion + */ + public function updateAddresses($space_id, $update_request) { + return $this->updateAddressesWithHttpInfo($space_id, $update_request)->getData(); + } + + /** + * Operation updateAddressesWithHttpInfo + * + * Update Addresses + * + * @param int $space_id (required) + * @param \Wallee\Sdk\Model\ShopifySubscriptionUpdateAddressesRequest $update_request (required) + * @throws \Wallee\Sdk\ApiException + * @throws \Wallee\Sdk\VersioningException + * @throws \Wallee\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function updateAddressesWithHttpInfo($space_id, $update_request) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling updateAddresses'); + } + // verify the required parameter 'update_request' is set + if (is_null($update_request)) { + throw new \InvalidArgumentException('Missing the required parameter $update_request when calling updateAddresses'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + + // path params + $resourcePath = '/shopify-subscription/update-addresses'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + // body params + $tempBody = null; + if (isset($update_request)) { + $tempBody = $update_request; + } + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + '\Wallee\Sdk\Model\ShopifySubscriptionVersion', + '/shopify-subscription/update-addresses' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\Wallee\Sdk\Model\ShopifySubscriptionVersion', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Wallee\Sdk\Model\ShopifySubscriptionVersion', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Wallee\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Wallee\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + } diff --git a/wallee-sdk/lib/Service/ShopifySubscriptionSuspensionService.php b/wallee-sdk/lib/Service/ShopifySubscriptionSuspensionService.php index 9f8210c..337a85d 100644 --- a/wallee-sdk/lib/Service/ShopifySubscriptionSuspensionService.php +++ b/wallee-sdk/lib/Service/ShopifySubscriptionSuspensionService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -247,6 +248,7 @@ public function reactivateWithHttpInfo($space_id, $subscription_id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -351,6 +353,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -465,6 +468,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -579,6 +583,7 @@ public function suspendWithHttpInfo($space_id, $suspension) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/ShopifySubscriptionVersionService.php b/wallee-sdk/lib/Service/ShopifySubscriptionVersionService.php index 8d1628f..a8dc48c 100644 --- a/wallee-sdk/lib/Service/ShopifySubscriptionVersionService.php +++ b/wallee-sdk/lib/Service/ShopifySubscriptionVersionService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -247,6 +248,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -361,6 +363,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/ShopifyTransactionService.php b/wallee-sdk/lib/Service/ShopifyTransactionService.php new file mode 100644 index 0000000..1f89648 --- /dev/null +++ b/wallee-sdk/lib/Service/ShopifyTransactionService.php @@ -0,0 +1,408 @@ +apiClient = $apiClient; + } + + /** + * Returns the API client instance. + * + * @return ApiClient + */ + public function getApiClient() { + return $this->apiClient; + } + + + /** + * Operation count + * + * Count + * + * @param int $space_id (required) + * @param \Wallee\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) + * @throws \Wallee\Sdk\ApiException + * @throws \Wallee\Sdk\VersioningException + * @throws \Wallee\Sdk\Http\ConnectionException + * @return int + */ + public function count($space_id, $filter = null) { + return $this->countWithHttpInfo($space_id, $filter)->getData(); + } + + /** + * Operation countWithHttpInfo + * + * Count + * + * @param int $space_id (required) + * @param \Wallee\Sdk\Model\EntityQueryFilter $filter The filter which restricts the entities which are used to calculate the count. (optional) + * @throws \Wallee\Sdk\ApiException + * @throws \Wallee\Sdk\VersioningException + * @throws \Wallee\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function countWithHttpInfo($space_id, $filter = null) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling count'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + + // path params + $resourcePath = '/shopify-transaction/count'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + // body params + $tempBody = null; + if (isset($filter)) { + $tempBody = $filter; + } + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + 'int', + '/shopify-transaction/count' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), 'int', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'int', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Wallee\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Wallee\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation read + * + * Read + * + * @param int $space_id (required) + * @param int $id The id of the Shopify transaction which should be returned. (required) + * @throws \Wallee\Sdk\ApiException + * @throws \Wallee\Sdk\VersioningException + * @throws \Wallee\Sdk\Http\ConnectionException + * @return \Wallee\Sdk\Model\ShopifyTransaction + */ + public function read($space_id, $id) { + return $this->readWithHttpInfo($space_id, $id)->getData(); + } + + /** + * Operation readWithHttpInfo + * + * Read + * + * @param int $space_id (required) + * @param int $id The id of the Shopify transaction which should be returned. (required) + * @throws \Wallee\Sdk\ApiException + * @throws \Wallee\Sdk\VersioningException + * @throws \Wallee\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function readWithHttpInfo($space_id, $id) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling read'); + } + // verify the required parameter 'id' is set + if (is_null($id)) { + throw new \InvalidArgumentException('Missing the required parameter $id when calling read'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['*/*']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + if (!is_null($id)) { + $queryParams['id'] = $this->apiClient->getSerializer()->toQueryValue($id); + } + + // path params + $resourcePath = '/shopify-transaction/read'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $response = $this->apiClient->callApi( + $resourcePath, + 'GET', + $queryParams, + $httpBody, + $headerParams, + '\Wallee\Sdk\Model\ShopifyTransaction', + '/shopify-transaction/read' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\Wallee\Sdk\Model\ShopifyTransaction', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Wallee\Sdk\Model\ShopifyTransaction', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Wallee\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Wallee\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation search + * + * Search + * + * @param int $space_id (required) + * @param \Wallee\Sdk\Model\EntityQuery $query The query restricts the Shopify transactions which are returned by the search. (required) + * @throws \Wallee\Sdk\ApiException + * @throws \Wallee\Sdk\VersioningException + * @throws \Wallee\Sdk\Http\ConnectionException + * @return \Wallee\Sdk\Model\ShopifyTransaction[] + */ + public function search($space_id, $query) { + return $this->searchWithHttpInfo($space_id, $query)->getData(); + } + + /** + * Operation searchWithHttpInfo + * + * Search + * + * @param int $space_id (required) + * @param \Wallee\Sdk\Model\EntityQuery $query The query restricts the Shopify transactions which are returned by the search. (required) + * @throws \Wallee\Sdk\ApiException + * @throws \Wallee\Sdk\VersioningException + * @throws \Wallee\Sdk\Http\ConnectionException + * @return ApiResponse + */ + public function searchWithHttpInfo($space_id, $query) { + // verify the required parameter 'space_id' is set + if (is_null($space_id)) { + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling search'); + } + // verify the required parameter 'query' is set + if (is_null($query)) { + throw new \InvalidArgumentException('Missing the required parameter $query when calling search'); + } + // header params + $headerParams = []; + $headerAccept = $this->apiClient->selectHeaderAccept(['application/json;charset=utf-8']); + if (!is_null($headerAccept)) { + $headerParams[HttpRequest::HEADER_KEY_ACCEPT] = $headerAccept; + } + $headerParams[HttpRequest::HEADER_KEY_CONTENT_TYPE] = $this->apiClient->selectHeaderContentType(['application/json;charset=utf-8']); + + // query params + $queryParams = []; + if (!is_null($space_id)) { + $queryParams['spaceId'] = $this->apiClient->getSerializer()->toQueryValue($space_id); + } + + // path params + $resourcePath = '/shopify-transaction/search'; + // default format to json + $resourcePath = str_replace('{format}', 'json', $resourcePath); + + // form params + $formParams = []; + // body params + $tempBody = null; + if (isset($query)) { + $tempBody = $query; + } + + // for model (json/xml) + $httpBody = ''; + if (isset($tempBody)) { + $httpBody = $tempBody; // $tempBody is the method argument, if present + } elseif (!empty($formParams)) { + $httpBody = $formParams; // for HTTP post (form) + } + // make the API Call + try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); + $response = $this->apiClient->callApi( + $resourcePath, + 'POST', + $queryParams, + $httpBody, + $headerParams, + '\Wallee\Sdk\Model\ShopifyTransaction[]', + '/shopify-transaction/search' + ); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\Wallee\Sdk\Model\ShopifyTransaction[]', $response->getHeaders())); + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Wallee\Sdk\Model\ShopifyTransaction[]', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 442: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Wallee\Sdk\Model\ClientError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 542: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Wallee\Sdk\Model\ServerError', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + +} diff --git a/wallee-sdk/lib/Service/SpaceService.php b/wallee-sdk/lib/Service/SpaceService.php index 7d11fc9..3e4e7cd 100644 --- a/wallee-sdk/lib/Service/SpaceService.php +++ b/wallee-sdk/lib/Service/SpaceService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -231,6 +232,7 @@ public function createWithHttpInfo($entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -336,6 +338,7 @@ public function deleteWithHttpInfo($id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -439,6 +442,7 @@ public function readWithHttpInfo($id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -544,6 +548,7 @@ public function searchWithHttpInfo($query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -649,6 +654,7 @@ public function updateWithHttpInfo($entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/StaticValueService.php b/wallee-sdk/lib/Service/StaticValueService.php index 7971786..66e8557 100644 --- a/wallee-sdk/lib/Service/StaticValueService.php +++ b/wallee-sdk/lib/Service/StaticValueService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -222,6 +223,7 @@ public function readWithHttpInfo($id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', diff --git a/wallee-sdk/lib/Service/SubscriberService.php b/wallee-sdk/lib/Service/SubscriberService.php index b2d4332..17f5e5b 100644 --- a/wallee-sdk/lib/Service/SubscriberService.php +++ b/wallee-sdk/lib/Service/SubscriberService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -186,7 +187,7 @@ public function countWithHttpInfo($space_id, $filter = null) { * @throws \Wallee\Sdk\ApiException * @throws \Wallee\Sdk\VersioningException * @throws \Wallee\Sdk\Http\ConnectionException - * @return \Wallee\Sdk\Model\SubscriberCreate + * @return \Wallee\Sdk\Model\Subscriber */ public function create($space_id, $entity) { return $this->createWithHttpInfo($space_id, $entity)->getData(); @@ -249,22 +250,23 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', $queryParams, $httpBody, $headerParams, - '\Wallee\Sdk\Model\SubscriberCreate', + '\Wallee\Sdk\Model\Subscriber', '/subscriber/create' ); - return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\Wallee\Sdk\Model\SubscriberCreate', $response->getHeaders())); + return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\Wallee\Sdk\Model\Subscriber', $response->getHeaders())); } catch (ApiException $e) { switch ($e->getCode()) { case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Wallee\Sdk\Model\SubscriberCreate', + '\Wallee\Sdk\Model\Subscriber', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -363,6 +365,7 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -475,6 +478,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -589,6 +593,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -703,6 +708,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/SubscriptionAffiliateService.php b/wallee-sdk/lib/Service/SubscriptionAffiliateService.php index 3a41ba7..08b1072 100644 --- a/wallee-sdk/lib/Service/SubscriptionAffiliateService.php +++ b/wallee-sdk/lib/Service/SubscriptionAffiliateService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -363,6 +365,7 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -475,6 +478,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -589,6 +593,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -703,6 +708,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/SubscriptionChargeService.php b/wallee-sdk/lib/Service/SubscriptionChargeService.php index 1d4208f..797aaf9 100644 --- a/wallee-sdk/lib/Service/SubscriptionChargeService.php +++ b/wallee-sdk/lib/Service/SubscriptionChargeService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $charge) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -361,6 +363,7 @@ public function discardWithHttpInfo($space_id, $charge_id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -473,6 +476,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -587,6 +591,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/SubscriptionLedgerEntryService.php b/wallee-sdk/lib/Service/SubscriptionLedgerEntryService.php index 4dd6bc5..7c711d1 100644 --- a/wallee-sdk/lib/Service/SubscriptionLedgerEntryService.php +++ b/wallee-sdk/lib/Service/SubscriptionLedgerEntryService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $entry) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -361,6 +363,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -475,6 +478,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/SubscriptionMetricService.php b/wallee-sdk/lib/Service/SubscriptionMetricService.php index bb1baf2..8210913 100644 --- a/wallee-sdk/lib/Service/SubscriptionMetricService.php +++ b/wallee-sdk/lib/Service/SubscriptionMetricService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -363,6 +365,7 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -475,6 +478,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -589,6 +593,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -703,6 +708,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/SubscriptionMetricUsageService.php b/wallee-sdk/lib/Service/SubscriptionMetricUsageService.php index c0390fe..e44fe70 100644 --- a/wallee-sdk/lib/Service/SubscriptionMetricUsageService.php +++ b/wallee-sdk/lib/Service/SubscriptionMetricUsageService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $usage_report) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -361,6 +363,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -475,6 +478,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/SubscriptionPeriodBillService.php b/wallee-sdk/lib/Service/SubscriptionPeriodBillService.php index b1f17ab..bead414 100644 --- a/wallee-sdk/lib/Service/SubscriptionPeriodBillService.php +++ b/wallee-sdk/lib/Service/SubscriptionPeriodBillService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -247,6 +248,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -361,6 +363,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/SubscriptionProductComponentGroupService.php b/wallee-sdk/lib/Service/SubscriptionProductComponentGroupService.php index 41b478e..31c2188 100644 --- a/wallee-sdk/lib/Service/SubscriptionProductComponentGroupService.php +++ b/wallee-sdk/lib/Service/SubscriptionProductComponentGroupService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -363,6 +365,7 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -475,6 +478,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -589,6 +593,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -703,6 +708,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/SubscriptionProductComponentService.php b/wallee-sdk/lib/Service/SubscriptionProductComponentService.php index b9a3546..911205e 100644 --- a/wallee-sdk/lib/Service/SubscriptionProductComponentService.php +++ b/wallee-sdk/lib/Service/SubscriptionProductComponentService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -363,6 +365,7 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -475,6 +478,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -589,6 +593,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -703,6 +708,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/SubscriptionProductFeeTierService.php b/wallee-sdk/lib/Service/SubscriptionProductFeeTierService.php index 5f1ba77..d8291aa 100644 --- a/wallee-sdk/lib/Service/SubscriptionProductFeeTierService.php +++ b/wallee-sdk/lib/Service/SubscriptionProductFeeTierService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -363,6 +365,7 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -475,6 +478,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -589,6 +593,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -703,6 +708,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/SubscriptionProductMeteredFeeService.php b/wallee-sdk/lib/Service/SubscriptionProductMeteredFeeService.php index a815d78..7347071 100644 --- a/wallee-sdk/lib/Service/SubscriptionProductMeteredFeeService.php +++ b/wallee-sdk/lib/Service/SubscriptionProductMeteredFeeService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -363,6 +365,7 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -475,6 +478,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -589,6 +593,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -703,6 +708,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/SubscriptionProductPeriodFeeService.php b/wallee-sdk/lib/Service/SubscriptionProductPeriodFeeService.php index dcaee6f..41388fa 100644 --- a/wallee-sdk/lib/Service/SubscriptionProductPeriodFeeService.php +++ b/wallee-sdk/lib/Service/SubscriptionProductPeriodFeeService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -363,6 +365,7 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -475,6 +478,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -589,6 +593,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -703,6 +708,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/SubscriptionProductRetirementService.php b/wallee-sdk/lib/Service/SubscriptionProductRetirementService.php index 593fc5d..80fbefc 100644 --- a/wallee-sdk/lib/Service/SubscriptionProductRetirementService.php +++ b/wallee-sdk/lib/Service/SubscriptionProductRetirementService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $retirement) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -361,6 +363,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -475,6 +478,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/SubscriptionProductService.php b/wallee-sdk/lib/Service/SubscriptionProductService.php index d1f1419..a7ea4d2 100644 --- a/wallee-sdk/lib/Service/SubscriptionProductService.php +++ b/wallee-sdk/lib/Service/SubscriptionProductService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -361,6 +363,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -475,6 +478,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -589,6 +593,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/SubscriptionProductSetupFeeService.php b/wallee-sdk/lib/Service/SubscriptionProductSetupFeeService.php index 5d08f5e..cff334b 100644 --- a/wallee-sdk/lib/Service/SubscriptionProductSetupFeeService.php +++ b/wallee-sdk/lib/Service/SubscriptionProductSetupFeeService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -363,6 +365,7 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -475,6 +478,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -589,6 +593,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -703,6 +708,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/SubscriptionProductVersionRetirementService.php b/wallee-sdk/lib/Service/SubscriptionProductVersionRetirementService.php index a4fcceb..4f97a2b 100644 --- a/wallee-sdk/lib/Service/SubscriptionProductVersionRetirementService.php +++ b/wallee-sdk/lib/Service/SubscriptionProductVersionRetirementService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $retirement) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -361,6 +363,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -475,6 +478,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/SubscriptionProductVersionService.php b/wallee-sdk/lib/Service/SubscriptionProductVersionService.php index 548f17f..b0e5aab 100644 --- a/wallee-sdk/lib/Service/SubscriptionProductVersionService.php +++ b/wallee-sdk/lib/Service/SubscriptionProductVersionService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -247,6 +248,7 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -361,6 +363,7 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -473,6 +476,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -587,6 +591,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -701,6 +706,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/SubscriptionService.php b/wallee-sdk/lib/Service/SubscriptionService.php index 29e276d..c332745 100644 --- a/wallee-sdk/lib/Service/SubscriptionService.php +++ b/wallee-sdk/lib/Service/SubscriptionService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -257,6 +258,7 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -371,6 +373,7 @@ public function createWithHttpInfo($space_id, $create_request) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -483,6 +486,7 @@ public function initializeWithHttpInfo($space_id, $subscription_id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -605,6 +609,7 @@ public function initializeSubscriberPresentWithHttpInfo($space_id, $subscription } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -725,6 +730,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -839,6 +845,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -962,6 +969,7 @@ public function searchSubscriptionInvoicesWithHttpInfo($space_id, $subscription_ } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -1083,6 +1091,7 @@ public function terminateWithHttpInfo($space_id, $subscription_id, $respect_term } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -1196,6 +1205,7 @@ public function updateProductVersionWithHttpInfo($space_id, $subscription_id, $r } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/SubscriptionSuspensionService.php b/wallee-sdk/lib/Service/SubscriptionSuspensionService.php index 9b1a885..c21b586 100644 --- a/wallee-sdk/lib/Service/SubscriptionSuspensionService.php +++ b/wallee-sdk/lib/Service/SubscriptionSuspensionService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $suspension) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -361,6 +363,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -475,6 +478,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -587,6 +591,7 @@ public function terminateWithHttpInfo($space_id, $suspension_id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/SubscriptionVersionService.php b/wallee-sdk/lib/Service/SubscriptionVersionService.php index 53a2fa8..fd47d5b 100644 --- a/wallee-sdk/lib/Service/SubscriptionVersionService.php +++ b/wallee-sdk/lib/Service/SubscriptionVersionService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -247,6 +248,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -361,6 +363,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/TokenService.php b/wallee-sdk/lib/Service/TokenService.php index 9606acc..e29babb 100644 --- a/wallee-sdk/lib/Service/TokenService.php +++ b/wallee-sdk/lib/Service/TokenService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -361,6 +363,7 @@ public function createTransactionForTokenUpdateWithHttpInfo($space_id, $token_id } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -475,6 +478,7 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -587,6 +591,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -701,6 +706,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -815,6 +821,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/TokenVersionService.php b/wallee-sdk/lib/Service/TokenVersionService.php index dc8886c..930b796 100644 --- a/wallee-sdk/lib/Service/TokenVersionService.php +++ b/wallee-sdk/lib/Service/TokenVersionService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -247,6 +248,7 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -359,6 +361,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -473,6 +476,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/TransactionCommentService.php b/wallee-sdk/lib/Service/TransactionCommentService.php index 05c5107..5e7bf7c 100644 --- a/wallee-sdk/lib/Service/TransactionCommentService.php +++ b/wallee-sdk/lib/Service/TransactionCommentService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -251,6 +252,7 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -363,6 +365,7 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -475,6 +478,7 @@ public function pinWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -587,6 +591,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -699,6 +704,7 @@ public function unpinWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -813,6 +819,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/TransactionCompletionService.php b/wallee-sdk/lib/Service/TransactionCompletionService.php index 15449fa..8594b90 100644 --- a/wallee-sdk/lib/Service/TransactionCompletionService.php +++ b/wallee-sdk/lib/Service/TransactionCompletionService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function completeOnlineWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -363,6 +365,7 @@ public function completePartiallyOfflineWithHttpInfo($space_id, $completion) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -477,6 +480,7 @@ public function completePartiallyOnlineWithHttpInfo($space_id, $completion) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -587,6 +591,7 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -699,6 +704,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -813,6 +819,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/TransactionIframeService.php b/wallee-sdk/lib/Service/TransactionIframeService.php index c5f8224..57a84d1 100644 --- a/wallee-sdk/lib/Service/TransactionIframeService.php +++ b/wallee-sdk/lib/Service/TransactionIframeService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', diff --git a/wallee-sdk/lib/Service/TransactionInvoiceCommentService.php b/wallee-sdk/lib/Service/TransactionInvoiceCommentService.php index cb9e45e..86e53ca 100644 --- a/wallee-sdk/lib/Service/TransactionInvoiceCommentService.php +++ b/wallee-sdk/lib/Service/TransactionInvoiceCommentService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -251,6 +252,7 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -363,6 +365,7 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -475,6 +478,7 @@ public function pinWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -587,6 +591,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -699,6 +704,7 @@ public function unpinWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -813,6 +819,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/TransactionInvoiceService.php b/wallee-sdk/lib/Service/TransactionInvoiceService.php index becc0f0..6d1f82a 100644 --- a/wallee-sdk/lib/Service/TransactionInvoiceService.php +++ b/wallee-sdk/lib/Service/TransactionInvoiceService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -247,6 +248,7 @@ public function getInvoiceDocumentWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -368,6 +370,7 @@ public function getInvoiceDocumentWithTargetMediaTypeWithHttpInfo($space_id, $id } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -480,6 +483,7 @@ public function isReplacementPossibleWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -592,6 +596,7 @@ public function markAsDerecognizedWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -704,6 +709,7 @@ public function markAsPaidWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -816,6 +822,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -939,6 +946,7 @@ public function replaceWithHttpInfo($space_id, $id, $replacement) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -1053,6 +1061,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/TransactionLightboxService.php b/wallee-sdk/lib/Service/TransactionLightboxService.php index 855467b..4b1bd6d 100644 --- a/wallee-sdk/lib/Service/TransactionLightboxService.php +++ b/wallee-sdk/lib/Service/TransactionLightboxService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', diff --git a/wallee-sdk/lib/Service/TransactionMobileSdkService.php b/wallee-sdk/lib/Service/TransactionMobileSdkService.php index a848c28..1448407 100644 --- a/wallee-sdk/lib/Service/TransactionMobileSdkService.php +++ b/wallee-sdk/lib/Service/TransactionMobileSdkService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', diff --git a/wallee-sdk/lib/Service/TransactionPaymentPageService.php b/wallee-sdk/lib/Service/TransactionPaymentPageService.php index 126c5dd..34c8b04 100644 --- a/wallee-sdk/lib/Service/TransactionPaymentPageService.php +++ b/wallee-sdk/lib/Service/TransactionPaymentPageService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', diff --git a/wallee-sdk/lib/Service/TransactionService.php b/wallee-sdk/lib/Service/TransactionService.php index c125c1c..f50b0bd 100644 --- a/wallee-sdk/lib/Service/TransactionService.php +++ b/wallee-sdk/lib/Service/TransactionService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -257,6 +258,7 @@ public function countWithHttpInfo($space_id, $filter = null) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -371,6 +373,7 @@ public function createWithHttpInfo($space_id, $transaction) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -483,6 +486,7 @@ public function createTransactionCredentialsWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -595,6 +599,7 @@ public function deleteOneClickTokenWithCredentialsWithHttpInfo($credentials, $to } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -701,6 +706,7 @@ public function exportWithHttpInfo($space_id, $request) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -804,6 +810,7 @@ public function fetchOneClickTokensWithCredentialsWithHttpInfo($credentials) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -846,41 +853,47 @@ public function fetchOneClickTokensWithCredentialsWithHttpInfo($credentials) { } /** - * Operation fetchPossiblePaymentMethods + * Operation fetchPaymentMethods * * Fetch Possible Payment Methods * * @param int $space_id (required) * @param int $id The id of the transaction which should be returned. (required) + * @param string $integration_mode The integration mode defines the type of integration that is applied on the transaction. (required) * @throws \Wallee\Sdk\ApiException * @throws \Wallee\Sdk\VersioningException * @throws \Wallee\Sdk\Http\ConnectionException * @return \Wallee\Sdk\Model\PaymentMethodConfiguration[] */ - public function fetchPossiblePaymentMethods($space_id, $id) { - return $this->fetchPossiblePaymentMethodsWithHttpInfo($space_id, $id)->getData(); + public function fetchPaymentMethods($space_id, $id, $integration_mode) { + return $this->fetchPaymentMethodsWithHttpInfo($space_id, $id, $integration_mode)->getData(); } /** - * Operation fetchPossiblePaymentMethodsWithHttpInfo + * Operation fetchPaymentMethodsWithHttpInfo * * Fetch Possible Payment Methods * * @param int $space_id (required) * @param int $id The id of the transaction which should be returned. (required) + * @param string $integration_mode The integration mode defines the type of integration that is applied on the transaction. (required) * @throws \Wallee\Sdk\ApiException * @throws \Wallee\Sdk\VersioningException * @throws \Wallee\Sdk\Http\ConnectionException * @return ApiResponse */ - public function fetchPossiblePaymentMethodsWithHttpInfo($space_id, $id) { + public function fetchPaymentMethodsWithHttpInfo($space_id, $id, $integration_mode) { // verify the required parameter 'space_id' is set if (is_null($space_id)) { - throw new \InvalidArgumentException('Missing the required parameter $space_id when calling fetchPossiblePaymentMethods'); + throw new \InvalidArgumentException('Missing the required parameter $space_id when calling fetchPaymentMethods'); } // verify the required parameter 'id' is set if (is_null($id)) { - throw new \InvalidArgumentException('Missing the required parameter $id when calling fetchPossiblePaymentMethods'); + throw new \InvalidArgumentException('Missing the required parameter $id when calling fetchPaymentMethods'); + } + // verify the required parameter 'integration_mode' is set + if (is_null($integration_mode)) { + throw new \InvalidArgumentException('Missing the required parameter $integration_mode when calling fetchPaymentMethods'); } // header params $headerParams = []; @@ -898,9 +911,12 @@ public function fetchPossiblePaymentMethodsWithHttpInfo($space_id, $id) { if (!is_null($id)) { $queryParams['id'] = $this->apiClient->getSerializer()->toQueryValue($id); } + if (!is_null($integration_mode)) { + $queryParams['integrationMode'] = $this->apiClient->getSerializer()->toQueryValue($integration_mode); + } // path params - $resourcePath = '/transaction/fetchPossiblePaymentMethods'; + $resourcePath = '/transaction/fetch-payment-methods'; // default format to json $resourcePath = str_replace('{format}', 'json', $resourcePath); @@ -916,6 +932,7 @@ public function fetchPossiblePaymentMethodsWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -923,7 +940,7 @@ public function fetchPossiblePaymentMethodsWithHttpInfo($space_id, $id) { $httpBody, $headerParams, '\Wallee\Sdk\Model\PaymentMethodConfiguration[]', - '/transaction/fetchPossiblePaymentMethods' + '/transaction/fetch-payment-methods' ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\Wallee\Sdk\Model\PaymentMethodConfiguration[]', $response->getHeaders())); } catch (ApiException $e) { @@ -958,35 +975,41 @@ public function fetchPossiblePaymentMethodsWithHttpInfo($space_id, $id) { } /** - * Operation fetchPossiblePaymentMethodsWithCredentials + * Operation fetchPaymentMethodsWithCredentials * * Fetch Possible Payment Methods with Credentials * * @param string $credentials The credentials identifies the transaction and contains the security details which grants the access this operation. (required) + * @param string $integration_mode The integration mode defines the type of integration that is applied on the transaction. (required) * @throws \Wallee\Sdk\ApiException * @throws \Wallee\Sdk\VersioningException * @throws \Wallee\Sdk\Http\ConnectionException * @return \Wallee\Sdk\Model\PaymentMethodConfiguration[] */ - public function fetchPossiblePaymentMethodsWithCredentials($credentials) { - return $this->fetchPossiblePaymentMethodsWithCredentialsWithHttpInfo($credentials)->getData(); + public function fetchPaymentMethodsWithCredentials($credentials, $integration_mode) { + return $this->fetchPaymentMethodsWithCredentialsWithHttpInfo($credentials, $integration_mode)->getData(); } /** - * Operation fetchPossiblePaymentMethodsWithCredentialsWithHttpInfo + * Operation fetchPaymentMethodsWithCredentialsWithHttpInfo * * Fetch Possible Payment Methods with Credentials * * @param string $credentials The credentials identifies the transaction and contains the security details which grants the access this operation. (required) + * @param string $integration_mode The integration mode defines the type of integration that is applied on the transaction. (required) * @throws \Wallee\Sdk\ApiException * @throws \Wallee\Sdk\VersioningException * @throws \Wallee\Sdk\Http\ConnectionException * @return ApiResponse */ - public function fetchPossiblePaymentMethodsWithCredentialsWithHttpInfo($credentials) { + public function fetchPaymentMethodsWithCredentialsWithHttpInfo($credentials, $integration_mode) { // verify the required parameter 'credentials' is set if (is_null($credentials)) { - throw new \InvalidArgumentException('Missing the required parameter $credentials when calling fetchPossiblePaymentMethodsWithCredentials'); + throw new \InvalidArgumentException('Missing the required parameter $credentials when calling fetchPaymentMethodsWithCredentials'); + } + // verify the required parameter 'integration_mode' is set + if (is_null($integration_mode)) { + throw new \InvalidArgumentException('Missing the required parameter $integration_mode when calling fetchPaymentMethodsWithCredentials'); } // header params $headerParams = []; @@ -1001,9 +1024,12 @@ public function fetchPossiblePaymentMethodsWithCredentialsWithHttpInfo($credenti if (!is_null($credentials)) { $queryParams['credentials'] = $this->apiClient->getSerializer()->toQueryValue($credentials); } + if (!is_null($integration_mode)) { + $queryParams['integrationMode'] = $this->apiClient->getSerializer()->toQueryValue($integration_mode); + } // path params - $resourcePath = '/transaction/fetchPossiblePaymentMethodsWithCredentials'; + $resourcePath = '/transaction/fetch-payment-methods-with-credentials'; // default format to json $resourcePath = str_replace('{format}', 'json', $resourcePath); @@ -1019,6 +1045,7 @@ public function fetchPossiblePaymentMethodsWithCredentialsWithHttpInfo($credenti } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -1026,7 +1053,7 @@ public function fetchPossiblePaymentMethodsWithCredentialsWithHttpInfo($credenti $httpBody, $headerParams, '\Wallee\Sdk\Model\PaymentMethodConfiguration[]', - '/transaction/fetchPossiblePaymentMethodsWithCredentials' + '/transaction/fetch-payment-methods-with-credentials' ); return new ApiResponse($response->getStatusCode(), $response->getHeaders(), $this->apiClient->getSerializer()->deserialize($response->getData(), '\Wallee\Sdk\Model\PaymentMethodConfiguration[]', $response->getHeaders())); } catch (ApiException $e) { @@ -1131,6 +1158,7 @@ public function getInvoiceDocumentWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -1243,6 +1271,7 @@ public function getLatestTransactionLineItemVersionWithHttpInfo($space_id, $id) } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -1355,6 +1384,7 @@ public function getPackingSlipWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -1467,6 +1497,7 @@ public function processOneClickTokenAndRedirectWithCredentialsWithHttpInfo($cred } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -1579,6 +1610,7 @@ public function processWithoutUserInteractionWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -1691,6 +1723,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -1794,6 +1827,7 @@ public function readWithCredentialsWithHttpInfo($credentials) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -1908,6 +1942,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -2022,6 +2057,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -2144,6 +2180,7 @@ public function updateTransactionLineItemsWithHttpInfo($space_id, $update_reques } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/TransactionTerminalService.php b/wallee-sdk/lib/Service/TransactionTerminalService.php index ac6e5c1..4abe4b7 100644 --- a/wallee-sdk/lib/Service/TransactionTerminalService.php +++ b/wallee-sdk/lib/Service/TransactionTerminalService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -281,6 +282,7 @@ public function tillConnectionCredentialsWithHttpInfo($space_id, $transaction_id } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/TransactionVoidService.php b/wallee-sdk/lib/Service/TransactionVoidService.php index dce6cbe..976900b 100644 --- a/wallee-sdk/lib/Service/TransactionVoidService.php +++ b/wallee-sdk/lib/Service/TransactionVoidService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -247,6 +248,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -361,6 +363,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -473,6 +476,7 @@ public function voidOfflineWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -585,6 +589,7 @@ public function voidOnlineWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/UserAccountRoleService.php b/wallee-sdk/lib/Service/UserAccountRoleService.php index 05f20d6..1e318c7 100644 --- a/wallee-sdk/lib/Service/UserAccountRoleService.php +++ b/wallee-sdk/lib/Service/UserAccountRoleService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -263,6 +264,7 @@ public function callListWithHttpInfo($user_id, $account_id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -366,6 +368,7 @@ public function removeRoleWithHttpInfo($id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/UserSpaceRoleService.php b/wallee-sdk/lib/Service/UserSpaceRoleService.php index 3efecd5..b604e3a 100644 --- a/wallee-sdk/lib/Service/UserSpaceRoleService.php +++ b/wallee-sdk/lib/Service/UserSpaceRoleService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -258,6 +259,7 @@ public function callListWithHttpInfo($user_id, $space_id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -369,6 +371,7 @@ public function removeRoleWithHttpInfo($id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/WebhookListenerService.php b/wallee-sdk/lib/Service/WebhookListenerService.php index cd428b5..9b0373f 100644 --- a/wallee-sdk/lib/Service/WebhookListenerService.php +++ b/wallee-sdk/lib/Service/WebhookListenerService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -363,6 +365,7 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -475,6 +478,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -589,6 +593,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -703,6 +708,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/Service/WebhookUrlService.php b/wallee-sdk/lib/Service/WebhookUrlService.php index bc52d57..9763c3e 100644 --- a/wallee-sdk/lib/Service/WebhookUrlService.php +++ b/wallee-sdk/lib/Service/WebhookUrlService.php @@ -1,8 +1,8 @@ apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -249,6 +250,7 @@ public function createWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -363,6 +365,7 @@ public function deleteWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -475,6 +478,7 @@ public function readWithHttpInfo($space_id, $id) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'GET', @@ -589,6 +593,7 @@ public function searchWithHttpInfo($space_id, $query) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', @@ -703,6 +708,7 @@ public function updateWithHttpInfo($space_id, $entity) { } // make the API Call try { + $this->apiClient->setConnectionTimeout(ApiClient::CONNECTION_TIMEOUT); $response = $this->apiClient->callApi( $resourcePath, 'POST', diff --git a/wallee-sdk/lib/ValidationException.php b/wallee-sdk/lib/ValidationException.php index 326e289..2decba6 100644 --- a/wallee-sdk/lib/ValidationException.php +++ b/wallee-sdk/lib/ValidationException.php @@ -1,8 +1,8 @@ author = 'Customweb GmbH'; $this->bootstrap = true; $this->need_instance = 0; - $this->version = '1.1.20'; + $this->version = '1.2.0'; $this->displayName = 'wallee'; $this->description = $this->l('This PrestaShop module enables to process payments with %s.'); $this->description = sprintf($this->description, 'wallee');