From e202fcdf80ce224458f6ef7faaeb5ae095fc5a8e Mon Sep 17 00:00:00 2001 From: bitbucket-pipelines Date: Tue, 19 Mar 2024 11:26:28 +0000 Subject: [PATCH] Generating Go SDK. --- .openapi-generator/FILES | 87 + api_customers.go | 2 +- api_easy_split.go | 3003 +++++++++++++++++ api_eligibility.go | 8 +- api_offers.go | 4 +- api_orders.go | 6 +- api_payment_links.go | 8 +- api_payments.go | 10 +- api_pg_reconciliation.go | 2 +- api_refunds.go | 6 +- api_settlement_reconciliation.go | 4 +- api_settlements.go | 2 +- api_soft_pos.go | 464 ++- api_token_vault.go | 8 +- configuration.go | 4 +- docs/AdjustVendorBalanceRequest.md | 145 + docs/AdjustVendorBalanceResponse.md | 134 + docs/BalanceDetails.md | 134 + docs/BankDetails.md | 108 + docs/Banktransfer.md | 56 + docs/BanktransferPaymentMethod.md | 51 + docs/Card.md | 26 + docs/ChargesDetails.md | 160 + docs/CreateVendorRequest.md | 286 ++ docs/CreateVendorResponse.md | 316 ++ docs/ESOrderReconRequest.md | 72 + docs/ESOrderReconRequestFilters.md | 108 + docs/ESOrderReconRequestPagination.md | 82 + docs/ESOrderReconResponse.md | 108 + docs/ESOrderReconResponseDataInner.md | 706 ++++ ...rReconResponseDataInnerOrderSplitsInner.md | 82 + ...onseDataInnerOrderSplitsInnerSplitInner.md | 108 + docs/EasySplitAPI.md | 903 +++++ docs/KycDetails.md | 264 ++ docs/LinkEntity.md | 26 + docs/OfferValidations.md | 23 +- docs/OffersAPI.md | 2 +- docs/PayOrderRequestPaymentMethod.md | 23 +- docs/PaymentEntityPaymentMethod.md | 26 + ...ymentMethodBankTransferInPaymentsEntity.md | 56 + ...ankTransferInPaymentsEntityBanktransfer.md | 134 + docs/ScheduleOption.md | 108 + docs/SoftPOSAPI.md | 88 +- docs/SplitAfterPaymentRequest.md | 77 + docs/SplitAfterPaymentRequestSplitInner.md | 134 + ...tAfterPaymentRequestSplitInnerTagsInner.md | 82 + docs/SplitAfterPaymentResponse.md | 82 + docs/StaticSplitRequest.md | 145 + docs/StaticSplitRequestSchemeInner.md | 82 + docs/StaticSplitResponse.md | 186 + docs/StaticSplitResponseSchemeInner.md | 82 + docs/TerminalPaymentEntity.md | 498 +++ docs/TransferDetails.md | 186 + docs/TransferDetailsTagsInner.md | 82 + docs/UpdateVendorRequest.md | 260 ++ docs/UpdateVendorResponse.md | 472 +++ docs/UpiDetails.md | 82 + docs/UploadVendorDocsRequest.md | 108 + docs/UploadVendorDocumentsResponse.md | 160 + docs/VendorBalance.md | 134 + docs/VendorBalanceTransferCharges.md | 160 + docs/VendorDocumentDownloadResponse.md | 56 + docs/VendorDocumentsResponse.md | 56 + docs/VendorEntity.md | 394 +++ docs/VendorEntityRelatedDocsInner.md | 160 + model_adjust_vendor_balance_request.go | 61 + model_adjust_vendor_balance_response.go | 58 + model_balance_details.go | 58 + model_bank_details.go | 54 + model_banktransfer.go | 47 + model_banktransfer_payment_method.go | 44 + model_card.go | 5 + model_charges_details.go | 62 + model_create_vendor_request.go | 85 + model_create_vendor_response.go | 86 + model_es_order_recon_request.go | 46 + model_es_order_recon_request_filters.go | 57 + model_es_order_recon_request_pagination.go | 51 + model_es_order_recon_response.go | 54 + model_es_order_recon_response_data_inner.go | 146 + ..._response_data_inner_order_splits_inner.go | 50 + ...ta_inner_order_splits_inner_split_inner.go | 54 + model_kyc_details.go | 78 + model_link_entity.go | 5 + model_offer_validations.go | 3 + model_pay_order_request_payment_method.go | 44 + model_payment_entity_payment_method.go | 44 + ...method_bank_transfer_in_payments_entity.go | 46 + ...ransfer_in_payments_entity_banktransfer.go | 58 + model_schedule_option.go | 54 + model_split_after_payment_request.go | 50 + ...split_after_payment_request_split_inner.go | 62 + ..._payment_request_split_inner_tags_inner.go | 50 + model_split_after_payment_response.go | 50 + model_static_split_request.go | 61 + model_static_split_request_scheme_inner.go | 52 + model_static_split_response.go | 66 + model_static_split_response_scheme_inner.go | 50 + model_terminal_payment_entity.go | 119 + model_transfer_details.go | 66 + model_transfer_details_tags_inner.go | 50 + model_update_vendor_request.go | 80 + model_update_vendor_response.go | 110 + model_upi_details.go | 50 + model_upload_vendor_docs_request.go | 58 + model_upload_vendor_documents_response.go | 62 + model_vendor_balance.go | 58 + model_vendor_balance_transfer_charges.go | 62 + model_vendor_document_download_response.go | 46 + model_vendor_documents_response.go | 46 + model_vendor_entity.go | 98 + model_vendor_entity_related_docs_inner.go | 62 + 112 files changed, 14345 insertions(+), 44 deletions(-) create mode 100644 api_easy_split.go create mode 100644 docs/AdjustVendorBalanceRequest.md create mode 100644 docs/AdjustVendorBalanceResponse.md create mode 100644 docs/BalanceDetails.md create mode 100644 docs/BankDetails.md create mode 100644 docs/Banktransfer.md create mode 100644 docs/BanktransferPaymentMethod.md create mode 100644 docs/ChargesDetails.md create mode 100644 docs/CreateVendorRequest.md create mode 100644 docs/CreateVendorResponse.md create mode 100644 docs/ESOrderReconRequest.md create mode 100644 docs/ESOrderReconRequestFilters.md create mode 100644 docs/ESOrderReconRequestPagination.md create mode 100644 docs/ESOrderReconResponse.md create mode 100644 docs/ESOrderReconResponseDataInner.md create mode 100644 docs/ESOrderReconResponseDataInnerOrderSplitsInner.md create mode 100644 docs/ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner.md create mode 100644 docs/EasySplitAPI.md create mode 100644 docs/KycDetails.md create mode 100644 docs/PaymentMethodBankTransferInPaymentsEntity.md create mode 100644 docs/PaymentMethodBankTransferInPaymentsEntityBanktransfer.md create mode 100644 docs/ScheduleOption.md create mode 100644 docs/SplitAfterPaymentRequest.md create mode 100644 docs/SplitAfterPaymentRequestSplitInner.md create mode 100644 docs/SplitAfterPaymentRequestSplitInnerTagsInner.md create mode 100644 docs/SplitAfterPaymentResponse.md create mode 100644 docs/StaticSplitRequest.md create mode 100644 docs/StaticSplitRequestSchemeInner.md create mode 100644 docs/StaticSplitResponse.md create mode 100644 docs/StaticSplitResponseSchemeInner.md create mode 100644 docs/TerminalPaymentEntity.md create mode 100644 docs/TransferDetails.md create mode 100644 docs/TransferDetailsTagsInner.md create mode 100644 docs/UpdateVendorRequest.md create mode 100644 docs/UpdateVendorResponse.md create mode 100644 docs/UpiDetails.md create mode 100644 docs/UploadVendorDocsRequest.md create mode 100644 docs/UploadVendorDocumentsResponse.md create mode 100644 docs/VendorBalance.md create mode 100644 docs/VendorBalanceTransferCharges.md create mode 100644 docs/VendorDocumentDownloadResponse.md create mode 100644 docs/VendorDocumentsResponse.md create mode 100644 docs/VendorEntity.md create mode 100644 docs/VendorEntityRelatedDocsInner.md create mode 100644 model_adjust_vendor_balance_request.go create mode 100644 model_adjust_vendor_balance_response.go create mode 100644 model_balance_details.go create mode 100644 model_bank_details.go create mode 100644 model_banktransfer.go create mode 100644 model_banktransfer_payment_method.go create mode 100644 model_charges_details.go create mode 100644 model_create_vendor_request.go create mode 100644 model_create_vendor_response.go create mode 100644 model_es_order_recon_request.go create mode 100644 model_es_order_recon_request_filters.go create mode 100644 model_es_order_recon_request_pagination.go create mode 100644 model_es_order_recon_response.go create mode 100644 model_es_order_recon_response_data_inner.go create mode 100644 model_es_order_recon_response_data_inner_order_splits_inner.go create mode 100644 model_es_order_recon_response_data_inner_order_splits_inner_split_inner.go create mode 100644 model_kyc_details.go create mode 100644 model_payment_method_bank_transfer_in_payments_entity.go create mode 100644 model_payment_method_bank_transfer_in_payments_entity_banktransfer.go create mode 100644 model_schedule_option.go create mode 100644 model_split_after_payment_request.go create mode 100644 model_split_after_payment_request_split_inner.go create mode 100644 model_split_after_payment_request_split_inner_tags_inner.go create mode 100644 model_split_after_payment_response.go create mode 100644 model_static_split_request.go create mode 100644 model_static_split_request_scheme_inner.go create mode 100644 model_static_split_response.go create mode 100644 model_static_split_response_scheme_inner.go create mode 100644 model_terminal_payment_entity.go create mode 100644 model_transfer_details.go create mode 100644 model_transfer_details_tags_inner.go create mode 100644 model_update_vendor_request.go create mode 100644 model_update_vendor_response.go create mode 100644 model_upi_details.go create mode 100644 model_upload_vendor_docs_request.go create mode 100644 model_upload_vendor_documents_response.go create mode 100644 model_vendor_balance.go create mode 100644 model_vendor_balance_transfer_charges.go create mode 100644 model_vendor_document_download_response.go create mode 100644 model_vendor_documents_response.go create mode 100644 model_vendor_entity.go create mode 100644 model_vendor_entity_related_docs_inner.go diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 629cace..3bbe942 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -4,6 +4,7 @@ README.md api/openapi.yaml api_customers.go +api_easy_split.go api_eligibility.go api_offers.go api_orders.go @@ -17,6 +18,8 @@ api_soft_pos.go api_token_vault.go client.go configuration.go +docs/AdjustVendorBalanceRequest.md +docs/AdjustVendorBalanceResponse.md docs/ApiError.md docs/ApiError404.md docs/ApiError409.md @@ -27,6 +30,10 @@ docs/AuthenticationError.md docs/AuthorizationInPaymentsEntity.md docs/AuthorizeOrderRequest.md docs/BadRequestError.md +docs/BalanceDetails.md +docs/BankDetails.md +docs/Banktransfer.md +docs/BanktransferPaymentMethod.md docs/Card.md docs/CardEMI.md docs/CardEMIPaymentMethod.md @@ -37,6 +44,7 @@ docs/CardlessEMIEntity.md docs/CardlessEMIPaymentMethod.md docs/CardlessEMIQueries.md docs/CashbackDetails.md +docs/ChargesDetails.md docs/CreateCustomerRequest.md docs/CreateLinkRequest.md docs/CreateOfferRequest.md @@ -44,6 +52,8 @@ docs/CreateOrderRequest.md docs/CreateTerminalRequest.md docs/CreateTerminalRequestTerminalMeta.md docs/CreateTerminalTransactionRequest.md +docs/CreateVendorRequest.md +docs/CreateVendorResponse.md docs/CryptogramEntity.md docs/CustomerDetails.md docs/CustomerDetailsCardlessEMI.md @@ -52,6 +62,14 @@ docs/CustomersAPI.md docs/DiscountDetails.md docs/EMIOffer.md docs/EMIPlansArray.md +docs/ESOrderReconRequest.md +docs/ESOrderReconRequestFilters.md +docs/ESOrderReconRequestPagination.md +docs/ESOrderReconResponse.md +docs/ESOrderReconResponseDataInner.md +docs/ESOrderReconResponseDataInnerOrderSplitsInner.md +docs/ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner.md +docs/EasySplitAPI.md docs/EligibilityAPI.md docs/EligibilityCardlessEMIEntity.md docs/EligibilityFetchCardlessEMIRequest.md @@ -75,6 +93,7 @@ docs/InstrumentEntity.md docs/InstrumentWebhook.md docs/InstrumentWebhookData.md docs/InstrumentWebhookDataEntity.md +docs/KycDetails.md docs/LinkCustomerDetailsEntity.md docs/LinkEntity.md docs/LinkMetaResponseEntity.md @@ -121,6 +140,8 @@ docs/PaymentLinkOrderEntity.md docs/PaymentLinksAPI.md docs/PaymentMethodAppInPaymentsEntity.md docs/PaymentMethodAppInPaymentsEntityApp.md +docs/PaymentMethodBankTransferInPaymentsEntity.md +docs/PaymentMethodBankTransferInPaymentsEntityBanktransfer.md docs/PaymentMethodCardEMIInPaymentsEntity.md docs/PaymentMethodCardEMIInPaymentsEntityEmi.md docs/PaymentMethodCardEMIInPaymentsEntityEmiEmiDetails.md @@ -151,6 +172,7 @@ docs/RefundWebhook.md docs/RefundWebhookDataEntity.md docs/RefundsAPI.md docs/SavedInstrumentMeta.md +docs/ScheduleOption.md docs/SettlementEntity.md docs/SettlementFetchReconRequest.md docs/SettlementReconEntity.md @@ -160,25 +182,49 @@ docs/SettlementWebhook.md docs/SettlementWebhookDataEntity.md docs/SettlementsAPI.md docs/SoftPOSAPI.md +docs/SplitAfterPaymentRequest.md +docs/SplitAfterPaymentRequestSplitInner.md +docs/SplitAfterPaymentRequestSplitInnerTagsInner.md +docs/SplitAfterPaymentResponse.md +docs/StaticSplitRequest.md +docs/StaticSplitRequestSchemeInner.md +docs/StaticSplitResponse.md +docs/StaticSplitResponseSchemeInner.md docs/TerminalDetails.md docs/TerminalEntity.md +docs/TerminalPaymentEntity.md docs/TerminalTransactionEntity.md docs/TerminateOrderRequest.md docs/TokenVaultAPI.md +docs/TransferDetails.md +docs/TransferDetailsTagsInner.md docs/UPIAuthorizeDetails.md docs/UPIPaymentMethod.md docs/UpdateTerminalEntity.md docs/UpdateTerminalRequest.md docs/UpdateTerminalRequestTerminalMeta.md docs/UpdateTerminalStatusRequest.md +docs/UpdateVendorRequest.md +docs/UpdateVendorResponse.md docs/Upi.md +docs/UpiDetails.md docs/UploadTerminalDocs.md docs/UploadTerminalDocsEntity.md +docs/UploadVendorDocsRequest.md +docs/UploadVendorDocumentsResponse.md +docs/VendorBalance.md +docs/VendorBalanceTransferCharges.md +docs/VendorDocumentDownloadResponse.md +docs/VendorDocumentsResponse.md +docs/VendorEntity.md +docs/VendorEntityRelatedDocsInner.md docs/VendorSplit.md docs/WalletOffer.md git_push.sh go.mod go.sum +model_adjust_vendor_balance_request.go +model_adjust_vendor_balance_response.go model_api_error.go model_api_error404.go model_api_error409.go @@ -189,6 +235,10 @@ model_authentication_error.go model_authorization_in_payments_entity.go model_authorize_order_request.go model_bad_request_error.go +model_balance_details.go +model_bank_details.go +model_banktransfer.go +model_banktransfer_payment_method.go model_card.go model_card_emi.go model_card_emi_payment_method.go @@ -199,6 +249,7 @@ model_cardless_emi_entity.go model_cardless_emi_payment_method.go model_cardless_emi_queries.go model_cashback_details.go +model_charges_details.go model_create_customer_request.go model_create_link_request.go model_create_offer_request.go @@ -206,6 +257,8 @@ model_create_order_request.go model_create_terminal_request.go model_create_terminal_request_terminal_meta.go model_create_terminal_transaction_request.go +model_create_vendor_request.go +model_create_vendor_response.go model_cryptogram_entity.go model_customer_details.go model_customer_details_cardless_emi.go @@ -223,6 +276,13 @@ model_eligibility_payment_methods_entity_entity_details.go model_emi_offer.go model_emi_plans_array.go model_error_details_in_payments_entity.go +model_es_order_recon_request.go +model_es_order_recon_request_filters.go +model_es_order_recon_request_pagination.go +model_es_order_recon_response.go +model_es_order_recon_response_data_inner.go +model_es_order_recon_response_data_inner_order_splits_inner.go +model_es_order_recon_response_data_inner_order_splits_inner_split_inner.go model_fetch_recon_request.go model_fetch_recon_request_filters.go model_fetch_recon_request_pagination.go @@ -235,6 +295,7 @@ model_instrument_entity.go model_instrument_webhook.go model_instrument_webhook_data.go model_instrument_webhook_data_entity.go +model_kyc_details.go model_link_customer_details_entity.go model_link_entity.go model_link_meta_response_entity.go @@ -277,6 +338,8 @@ model_payment_link_customer_details.go model_payment_link_order_entity.go model_payment_method_app_in_payments_entity.go model_payment_method_app_in_payments_entity_app.go +model_payment_method_bank_transfer_in_payments_entity.go +model_payment_method_bank_transfer_in_payments_entity_banktransfer.go model_payment_method_card_emiin_payments_entity.go model_payment_method_card_emiin_payments_entity_emi.go model_payment_method_card_emiin_payments_entity_emi_emi_details.go @@ -305,29 +368,53 @@ model_refund_speed.go model_refund_webhook.go model_refund_webhook_data_entity.go model_saved_instrument_meta.go +model_schedule_option.go model_settlement_entity.go model_settlement_fetch_recon_request.go model_settlement_recon_entity.go model_settlement_recon_entity_data_inner.go model_settlement_webhook.go model_settlement_webhook_data_entity.go +model_split_after_payment_request.go +model_split_after_payment_request_split_inner.go +model_split_after_payment_request_split_inner_tags_inner.go +model_split_after_payment_response.go +model_static_split_request.go +model_static_split_request_scheme_inner.go +model_static_split_response.go +model_static_split_response_scheme_inner.go model_terminal_details.go model_terminal_entity.go +model_terminal_payment_entity.go model_terminal_transaction_entity.go model_terminate_order_request.go +model_transfer_details.go +model_transfer_details_tags_inner.go model_update_terminal_entity.go model_update_terminal_request.go model_update_terminal_request_terminal_meta.go model_update_terminal_status_request.go +model_update_vendor_request.go +model_update_vendor_response.go model_upi.go model_upi_authorize_details.go +model_upi_details.go model_upi_payment_method.go model_upload_terminal_docs.go model_upload_terminal_docs_entity.go +model_upload_vendor_docs_request.go +model_upload_vendor_documents_response.go +model_vendor_balance.go +model_vendor_balance_transfer_charges.go +model_vendor_document_download_response.go +model_vendor_documents_response.go +model_vendor_entity.go +model_vendor_entity_related_docs_inner.go model_vendor_split.go model_wallet_offer.go response.go test/api_customers_test.go +test/api_easy_split_test.go test/api_eligibility_test.go test/api_offers_test.go test/api_orders_test.go diff --git a/api_customers.go b/api_customers.go index b6fa2f1..88cb160 100644 --- a/api_customers.go +++ b/api_customers.go @@ -324,7 +324,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_easy_split.go b/api_easy_split.go new file mode 100644 index 0000000..55911aa --- /dev/null +++ b/api_easy_split.go @@ -0,0 +1,3003 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// Execute executes the request +// @return AdjustVendorBalanceResponse +func PGESCreateOnDemandTransfer(xApiVersion *string, vendorId string, xRequestId *string, xIdempotencyKey *string, adjustVendorBalanceRequest *AdjustVendorBalanceRequest, httpClient *http.Client) (*AdjustVendorBalanceResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AdjustVendorBalanceResponse + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGESCreateOnDemandTransfer") + } + + ctx := context.Background() + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/easy-split/vendors/{vendor_id}/transfer" + localVarPath = strings.Replace(localVarPath, "{"+"vendor_id"+"}", url.PathEscape(parameterValueToString(vendorId, "vendorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + // body params + localVarPostBody = adjustVendorBalanceRequest + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// With Context +// Execute executes the request +// @return AdjustVendorBalanceResponse +func PGESCreateOnDemandTransferWithContext(ctx context.Context, xApiVersion *string, vendorId string, xRequestId *string, xIdempotencyKey *string, adjustVendorBalanceRequest *AdjustVendorBalanceRequest, httpClient *http.Client) (*AdjustVendorBalanceResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AdjustVendorBalanceResponse + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGESCreateOnDemandTransfer") + } + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/easy-split/vendors/{vendor_id}/transfer" + localVarPath = strings.Replace(localVarPath, "{"+"vendor_id"+"}", url.PathEscape(parameterValueToString(vendorId, "vendorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + // body params + localVarPostBody = adjustVendorBalanceRequest + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} +// With Context + + + +// Execute executes the request +// @return CreateVendorResponse +func PGESCreateVendors(xApiVersion *string, xRequestId *string, xIdempotencyKey *string, createVendorRequest *CreateVendorRequest, httpClient *http.Client) (*CreateVendorResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateVendorResponse + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGESCreateVendors") + } + + ctx := context.Background() + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/easy-split/vendors" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + // body params + localVarPostBody = createVendorRequest + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// With Context +// Execute executes the request +// @return CreateVendorResponse +func PGESCreateVendorsWithContext(ctx context.Context, xApiVersion *string, xRequestId *string, xIdempotencyKey *string, createVendorRequest *CreateVendorRequest, httpClient *http.Client) (*CreateVendorResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateVendorResponse + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGESCreateVendors") + } + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/easy-split/vendors" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + // body params + localVarPostBody = createVendorRequest + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} +// With Context + + + +// Execute executes the request +// @return VendorDocumentDownloadResponse +func PGESDownloadVendorsDocs(docType string, vendorId string, xRequestId *string, xIdempotencyKey *string, httpClient *http.Client) (*VendorDocumentDownloadResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VendorDocumentDownloadResponse + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGESDownloadVendorsDocs") + } + + ctx := context.Background() + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/easy-split/vendor-docs/{vendor_id}/download/{doc_type}" + localVarPath = strings.Replace(localVarPath, "{"+"doc_type"+"}", url.PathEscape(parameterValueToString(docType, "docType")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"vendor_id"+"}", url.PathEscape(parameterValueToString(vendorId, "vendorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// With Context +// Execute executes the request +// @return VendorDocumentDownloadResponse +func PGESDownloadVendorsDocsWithContext(ctx context.Context, docType string, vendorId string, xRequestId *string, xIdempotencyKey *string, httpClient *http.Client) (*VendorDocumentDownloadResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VendorDocumentDownloadResponse + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGESDownloadVendorsDocs") + } + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/easy-split/vendor-docs/{vendor_id}/download/{doc_type}" + localVarPath = strings.Replace(localVarPath, "{"+"doc_type"+"}", url.PathEscape(parameterValueToString(docType, "docType")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"vendor_id"+"}", url.PathEscape(parameterValueToString(vendorId, "vendorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} +// With Context + + + +// Execute executes the request +// @return VendorEntity +func PGESFetchVendors(xApiVersion *string, vendorId string, xRequestId *string, xIdempotencyKey *string, httpClient *http.Client) (*VendorEntity, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VendorEntity + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGESFetchVendors") + } + + ctx := context.Background() + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/easy-split/vendors/{vendor_id}" + localVarPath = strings.Replace(localVarPath, "{"+"vendor_id"+"}", url.PathEscape(parameterValueToString(vendorId, "vendorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// With Context +// Execute executes the request +// @return VendorEntity +func PGESFetchVendorsWithContext(ctx context.Context, xApiVersion *string, vendorId string, xRequestId *string, xIdempotencyKey *string, httpClient *http.Client) (*VendorEntity, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VendorEntity + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGESFetchVendors") + } + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/easy-split/vendors/{vendor_id}" + localVarPath = strings.Replace(localVarPath, "{"+"vendor_id"+"}", url.PathEscape(parameterValueToString(vendorId, "vendorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} +// With Context + + + +// Execute executes the request +// @return VendorBalance +func PGESGetVendorBalance(xApiVersion *string, vendorId string, xRequestId *string, xIdempotencyKey *string, httpClient *http.Client) (*VendorBalance, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VendorBalance + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGESGetVendorBalance") + } + + ctx := context.Background() + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/easy-split/vendors/{vendor_id}/balances" + localVarPath = strings.Replace(localVarPath, "{"+"vendor_id"+"}", url.PathEscape(parameterValueToString(vendorId, "vendorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// With Context +// Execute executes the request +// @return VendorBalance +func PGESGetVendorBalanceWithContext(ctx context.Context, xApiVersion *string, vendorId string, xRequestId *string, xIdempotencyKey *string, httpClient *http.Client) (*VendorBalance, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VendorBalance + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGESGetVendorBalance") + } + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/easy-split/vendors/{vendor_id}/balances" + localVarPath = strings.Replace(localVarPath, "{"+"vendor_id"+"}", url.PathEscape(parameterValueToString(vendorId, "vendorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} +// With Context + + + +// Execute executes the request +// @return VendorBalanceTransferCharges +func PGESGetVendorBalanceTransferCharges(xApiVersion *string, amount float32, rateType *string, xRequestId *string, xIdempotencyKey *string, httpClient *http.Client) (*VendorBalanceTransferCharges, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VendorBalanceTransferCharges + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGESGetVendorBalanceTransferCharges") + } + + ctx := context.Background() + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/easy-split/amount/{amount}/charges" + localVarPath = strings.Replace(localVarPath, "{"+"amount"+"}", url.PathEscape(parameterValueToString(amount, "amount")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + if rateType == nil { + return localVarReturnValue, nil, reportError("rateType is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "rate_type", rateType, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// With Context +// Execute executes the request +// @return VendorBalanceTransferCharges +func PGESGetVendorBalanceTransferChargesWithContext(ctx context.Context, xApiVersion *string, amount float32, rateType *string, xRequestId *string, xIdempotencyKey *string, httpClient *http.Client) (*VendorBalanceTransferCharges, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VendorBalanceTransferCharges + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGESGetVendorBalanceTransferCharges") + } + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/easy-split/amount/{amount}/charges" + localVarPath = strings.Replace(localVarPath, "{"+"amount"+"}", url.PathEscape(parameterValueToString(amount, "amount")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + if rateType == nil { + return localVarReturnValue, nil, reportError("rateType is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "rate_type", rateType, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} +// With Context + + + +// Execute executes the request +// @return VendorDocumentsResponse +func PGESGetVendorsDocs(xApiVersion *string, vendorId string, xRequestId *string, xIdempotencyKey *string, httpClient *http.Client) (*VendorDocumentsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VendorDocumentsResponse + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGESGetVendorsDocs") + } + + ctx := context.Background() + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/easy-split/vendor-docs/{vendor_id}" + localVarPath = strings.Replace(localVarPath, "{"+"vendor_id"+"}", url.PathEscape(parameterValueToString(vendorId, "vendorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// With Context +// Execute executes the request +// @return VendorDocumentsResponse +func PGESGetVendorsDocsWithContext(ctx context.Context, xApiVersion *string, vendorId string, xRequestId *string, xIdempotencyKey *string, httpClient *http.Client) (*VendorDocumentsResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VendorDocumentsResponse + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGESGetVendorsDocs") + } + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/easy-split/vendor-docs/{vendor_id}" + localVarPath = strings.Replace(localVarPath, "{"+"vendor_id"+"}", url.PathEscape(parameterValueToString(vendorId, "vendorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} +// With Context + + + +// Execute executes the request +// @return ESOrderReconResponse +func PGESOrderRecon(xApiVersion *string, xRequestId *string, xIdempotencyKey *string, eSOrderReconRequest *ESOrderReconRequest, httpClient *http.Client) (*ESOrderReconResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ESOrderReconResponse + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGESOrderRecon") + } + + ctx := context.Background() + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/split/order/vendor/recon" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + // body params + localVarPostBody = eSOrderReconRequest + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// With Context +// Execute executes the request +// @return ESOrderReconResponse +func PGESOrderReconWithContext(ctx context.Context, xApiVersion *string, xRequestId *string, xIdempotencyKey *string, eSOrderReconRequest *ESOrderReconRequest, httpClient *http.Client) (*ESOrderReconResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ESOrderReconResponse + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGESOrderRecon") + } + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/split/order/vendor/recon" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + // body params + localVarPostBody = eSOrderReconRequest + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} +// With Context + + + +// Execute executes the request +// @return UpdateVendorResponse +func PGESUpdateVendors(xApiVersion *string, vendorId string, updateVendorRequest *UpdateVendorRequest, httpClient *http.Client) (*UpdateVendorResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UpdateVendorResponse + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGESUpdateVendors") + } + + ctx := context.Background() + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/easy-split/vendors/{vendor_id}" + localVarPath = strings.Replace(localVarPath, "{"+"vendor_id"+"}", url.PathEscape(parameterValueToString(vendorId, "vendorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + // body params + localVarPostBody = updateVendorRequest + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// With Context +// Execute executes the request +// @return UpdateVendorResponse +func PGESUpdateVendorsWithContext(ctx context.Context, xApiVersion *string, vendorId string, updateVendorRequest *UpdateVendorRequest, httpClient *http.Client) (*UpdateVendorResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UpdateVendorResponse + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGESUpdateVendors") + } + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/easy-split/vendors/{vendor_id}" + localVarPath = strings.Replace(localVarPath, "{"+"vendor_id"+"}", url.PathEscape(parameterValueToString(vendorId, "vendorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + // body params + localVarPostBody = updateVendorRequest + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} +// With Context + + + +// Execute executes the request +// @return SplitAfterPaymentResponse +func PGOrderSplitAfterPayment(xApiVersion *string, orderId string, xRequestId *string, xIdempotencyKey *string, splitAfterPaymentRequest *SplitAfterPaymentRequest, httpClient *http.Client) (*SplitAfterPaymentResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SplitAfterPaymentResponse + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGOrderSplitAfterPayment") + } + + ctx := context.Background() + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/easy-split/orders/{order_id}/split" + localVarPath = strings.Replace(localVarPath, "{"+"order_id"+"}", url.PathEscape(parameterValueToString(orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + // body params + localVarPostBody = splitAfterPaymentRequest + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ApiError404 + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v ApiError409 + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// With Context +// Execute executes the request +// @return SplitAfterPaymentResponse +func PGOrderSplitAfterPaymentWithContext(ctx context.Context, xApiVersion *string, orderId string, xRequestId *string, xIdempotencyKey *string, splitAfterPaymentRequest *SplitAfterPaymentRequest, httpClient *http.Client) (*SplitAfterPaymentResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SplitAfterPaymentResponse + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGOrderSplitAfterPayment") + } + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/easy-split/orders/{order_id}/split" + localVarPath = strings.Replace(localVarPath, "{"+"order_id"+"}", url.PathEscape(parameterValueToString(orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + // body params + localVarPostBody = splitAfterPaymentRequest + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ApiError404 + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v ApiError409 + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} +// With Context + + + +// Execute executes the request +// @return StaticSplitResponse +func PGOrderStaticSplit(xApiVersion *string, xRequestId *string, xIdempotencyKey *string, staticSplitRequest *StaticSplitRequest, httpClient *http.Client) (*StaticSplitResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *StaticSplitResponse + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGOrderStaticSplit") + } + + ctx := context.Background() + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/easy-split/static-split" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + // body params + localVarPostBody = staticSplitRequest + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// With Context +// Execute executes the request +// @return StaticSplitResponse +func PGOrderStaticSplitWithContext(ctx context.Context, xApiVersion *string, xRequestId *string, xIdempotencyKey *string, staticSplitRequest *StaticSplitRequest, httpClient *http.Client) (*StaticSplitResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *StaticSplitResponse + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("PGOrderStaticSplit") + } + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/easy-split/static-split" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + // body params + localVarPostBody = staticSplitRequest + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} +// With Context + + diff --git a/api_eligibility.go b/api_eligibility.go index 93c73f7..def7ec7 100644 --- a/api_eligibility.go +++ b/api_eligibility.go @@ -339,7 +339,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -804,7 +804,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1269,7 +1269,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1749,7 +1749,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_offers.go b/api_offers.go index db930f1..db98e07 100644 --- a/api_offers.go +++ b/api_offers.go @@ -325,7 +325,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -767,7 +767,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_orders.go b/api_orders.go index c482906..86ce21e 100644 --- a/api_orders.go +++ b/api_orders.go @@ -325,7 +325,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -767,7 +767,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1219,7 +1219,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_payment_links.go b/api_payment_links.go index 939ec51..364a371 100644 --- a/api_payment_links.go +++ b/api_payment_links.go @@ -317,7 +317,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -767,7 +767,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1224,7 +1224,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1681,7 +1681,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_payments.go b/api_payments.go index b3a452d..0135671 100644 --- a/api_payments.go +++ b/api_payments.go @@ -342,7 +342,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -824,7 +824,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1298,7 +1298,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1770,7 +1770,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2250,7 +2250,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_pg_reconciliation.go b/api_pg_reconciliation.go index 79ec894..707d4eb 100644 --- a/api_pg_reconciliation.go +++ b/api_pg_reconciliation.go @@ -336,7 +336,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_refunds.go b/api_refunds.go index c525f30..66fbcfd 100644 --- a/api_refunds.go +++ b/api_refunds.go @@ -342,7 +342,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -816,7 +816,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1273,7 +1273,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_settlement_reconciliation.go b/api_settlement_reconciliation.go index 216b674..f5e06eb 100644 --- a/api_settlement_reconciliation.go +++ b/api_settlement_reconciliation.go @@ -336,7 +336,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -798,7 +798,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_settlements.go b/api_settlements.go index e348d64..3164628 100644 --- a/api_settlements.go +++ b/api_settlements.go @@ -332,7 +332,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_soft_pos.go b/api_soft_pos.go index 47ed626..befa6b1 100644 --- a/api_soft_pos.go +++ b/api_soft_pos.go @@ -325,7 +325,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -775,7 +775,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1217,7 +1217,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1673,7 +1673,457 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v AuthenticationError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ApiError404 + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v ApiError409 + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v IdempotencyError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v RateLimitError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ApiError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} +// With Context + + + +// Execute executes the request +// @return TerminalPaymentEntity +func SposFetchTerminalTransaction(xApiVersion *string, utr *string, cfTerminalId string, xRequestId *string, xIdempotencyKey *string, httpClient *http.Client) (*TerminalPaymentEntity, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TerminalPaymentEntity + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("SposFetchTerminalTransaction") + } + + ctx := context.Background() + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/terminal/{cf_terminal_id}/payments" + localVarPath = strings.Replace(localVarPath, "{"+"cf_terminal_id"+"}", url.PathEscape(parameterValueToString(cfTerminalId, "cfTerminalId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + if utr == nil { + return localVarReturnValue, nil, reportError("utr is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "utr", utr, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v BadRequestError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v AuthenticationError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ApiError404 + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v ApiError409 + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v IdempotencyError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v RateLimitError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ApiError + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + if v.Message != nil { + newErr.error = *v.Message + } else { + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + } + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +// With Context +// Execute executes the request +// @return TerminalPaymentEntity +func SposFetchTerminalTransactionWithContext(ctx context.Context, xApiVersion *string, utr *string, cfTerminalId string, xRequestId *string, xIdempotencyKey *string, httpClient *http.Client) (*TerminalPaymentEntity, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TerminalPaymentEntity + ) + + if XEnableErrorAnalytics { + SetupSentry(XEnvironment) + defer CaptureError("SposFetchTerminalTransaction") + } + + client := NewAPIClient(NewConfiguration()) + if httpClient != nil { + client.cfg.HTTPClient = httpClient + } + + localBasePath := client.cfg.Servers[int(XEnvironment)].URL + + localVarPath := localBasePath + "/terminal/{cf_terminal_id}/payments" + localVarPath = strings.Replace(localVarPath, "{"+"cf_terminal_id"+"}", url.PathEscape(parameterValueToString(cfTerminalId, "cfTerminalId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if xApiVersion == nil { + return localVarReturnValue, nil, reportError("xApiVersion is required and must be specified") + } + if utr == nil { + return localVarReturnValue, nil, reportError("utr is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "utr", utr, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-api-version", xApiVersion, "") + if xRequestId != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-request-id", xRequestId, "") + } + if xIdempotencyKey != nil { + parameterAddToHeaderOrQuery(localVarHeaderParams, "x-idempotency-key", xIdempotencyKey, "") + } + +if XPartnerMerchantId != nil { + localVarHeaderParams["x-partner-merchantid"] = *XPartnerMerchantId +} + +if XClientId != nil { + localVarHeaderParams["x-client-id"] = *XClientId +} + +if XClientSignature != nil { + localVarHeaderParams["x-client-signature"] = *XClientSignature +} + +if XClientSecret != nil { + localVarHeaderParams["x-client-secret"] = *XClientSecret +} + +if XPartnerApiKey != nil { + localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey +} + + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2125,7 +2575,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2577,7 +3027,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -3029,7 +3479,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_token_vault.go b/api_token_vault.go index 2d36f2d..aa7bc25 100644 --- a/api_token_vault.go +++ b/api_token_vault.go @@ -334,7 +334,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -808,7 +808,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1273,7 +1273,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1732,7 +1732,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.7" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.0.8" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/configuration.go b/configuration.go index 8a3099a..e06368c 100644 --- a/configuration.go +++ b/configuration.go @@ -92,7 +92,7 @@ func SetupSentry(environment CFEnvironment) { AttachStacktrace: true, EnableTracing: true, Environment: env, - Release: "4.0.7", + Release: "4.0.8", BeforeSend: func(event *sentry.Event, hint *sentry.EventHint) *sentry.Event { delete(event.Contexts, "device") delete(event.Contexts, "os") @@ -192,7 +192,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/4.0.7/go", + UserAgent: "OpenAPI-Generator/4.0.8/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/docs/AdjustVendorBalanceRequest.md b/docs/AdjustVendorBalanceRequest.md new file mode 100644 index 0000000..48f40c0 --- /dev/null +++ b/docs/AdjustVendorBalanceRequest.md @@ -0,0 +1,145 @@ +# AdjustVendorBalanceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TransferFrom** | **string** | Mention to whom you want to transfer the on demand balance. Possible values - MERCHANT, VENDOR. | +**TransferType** | **string** | Mention the type of transfer. Possible values: ON_DEMAND. | +**TransferAmount** | **float32** | Mention the on demand transfer amount. | +**Remark** | Pointer to **string** | Mention remarks if any for the on demand transfer. | [optional] +**Tags** | Pointer to **map[string]interface{}** | Provide additional data fields using tags. | [optional] + +## Methods + +### NewAdjustVendorBalanceRequest + +`func NewAdjustVendorBalanceRequest(transferFrom string, transferType string, transferAmount float32, ) *AdjustVendorBalanceRequest` + +NewAdjustVendorBalanceRequest instantiates a new AdjustVendorBalanceRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAdjustVendorBalanceRequestWithDefaults + +`func NewAdjustVendorBalanceRequestWithDefaults() *AdjustVendorBalanceRequest` + +NewAdjustVendorBalanceRequestWithDefaults instantiates a new AdjustVendorBalanceRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTransferFrom + +`func (o *AdjustVendorBalanceRequest) GetTransferFrom() string` + +GetTransferFrom returns the TransferFrom field if non-nil, zero value otherwise. + +### GetTransferFromOk + +`func (o *AdjustVendorBalanceRequest) GetTransferFromOk() (*string, bool)` + +GetTransferFromOk returns a tuple with the TransferFrom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransferFrom + +`func (o *AdjustVendorBalanceRequest) SetTransferFrom(v string)` + +SetTransferFrom sets TransferFrom field to given value. + + +### GetTransferType + +`func (o *AdjustVendorBalanceRequest) GetTransferType() string` + +GetTransferType returns the TransferType field if non-nil, zero value otherwise. + +### GetTransferTypeOk + +`func (o *AdjustVendorBalanceRequest) GetTransferTypeOk() (*string, bool)` + +GetTransferTypeOk returns a tuple with the TransferType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransferType + +`func (o *AdjustVendorBalanceRequest) SetTransferType(v string)` + +SetTransferType sets TransferType field to given value. + + +### GetTransferAmount + +`func (o *AdjustVendorBalanceRequest) GetTransferAmount() float32` + +GetTransferAmount returns the TransferAmount field if non-nil, zero value otherwise. + +### GetTransferAmountOk + +`func (o *AdjustVendorBalanceRequest) GetTransferAmountOk() (*float32, bool)` + +GetTransferAmountOk returns a tuple with the TransferAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransferAmount + +`func (o *AdjustVendorBalanceRequest) SetTransferAmount(v float32)` + +SetTransferAmount sets TransferAmount field to given value. + + +### GetRemark + +`func (o *AdjustVendorBalanceRequest) GetRemark() string` + +GetRemark returns the Remark field if non-nil, zero value otherwise. + +### GetRemarkOk + +`func (o *AdjustVendorBalanceRequest) GetRemarkOk() (*string, bool)` + +GetRemarkOk returns a tuple with the Remark field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemark + +`func (o *AdjustVendorBalanceRequest) SetRemark(v string)` + +SetRemark sets Remark field to given value. + +### HasRemark + +`func (o *AdjustVendorBalanceRequest) HasRemark() bool` + +HasRemark returns a boolean if a field has been set. + +### GetTags + +`func (o *AdjustVendorBalanceRequest) GetTags() map[string]interface{}` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *AdjustVendorBalanceRequest) GetTagsOk() (*map[string]interface{}, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *AdjustVendorBalanceRequest) SetTags(v map[string]interface{})` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *AdjustVendorBalanceRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AdjustVendorBalanceResponse.md b/docs/AdjustVendorBalanceResponse.md new file mode 100644 index 0000000..bd63a76 --- /dev/null +++ b/docs/AdjustVendorBalanceResponse.md @@ -0,0 +1,134 @@ +# AdjustVendorBalanceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SettlementId** | Pointer to **float32** | | [optional] +**TransferDetails** | Pointer to [**TransferDetails**](TransferDetails.md) | | [optional] +**Balances** | Pointer to [**BalanceDetails**](BalanceDetails.md) | | [optional] +**Charges** | Pointer to [**ChargesDetails**](ChargesDetails.md) | | [optional] + +## Methods + +### NewAdjustVendorBalanceResponse + +`func NewAdjustVendorBalanceResponse() *AdjustVendorBalanceResponse` + +NewAdjustVendorBalanceResponse instantiates a new AdjustVendorBalanceResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAdjustVendorBalanceResponseWithDefaults + +`func NewAdjustVendorBalanceResponseWithDefaults() *AdjustVendorBalanceResponse` + +NewAdjustVendorBalanceResponseWithDefaults instantiates a new AdjustVendorBalanceResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSettlementId + +`func (o *AdjustVendorBalanceResponse) GetSettlementId() float32` + +GetSettlementId returns the SettlementId field if non-nil, zero value otherwise. + +### GetSettlementIdOk + +`func (o *AdjustVendorBalanceResponse) GetSettlementIdOk() (*float32, bool)` + +GetSettlementIdOk returns a tuple with the SettlementId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSettlementId + +`func (o *AdjustVendorBalanceResponse) SetSettlementId(v float32)` + +SetSettlementId sets SettlementId field to given value. + +### HasSettlementId + +`func (o *AdjustVendorBalanceResponse) HasSettlementId() bool` + +HasSettlementId returns a boolean if a field has been set. + +### GetTransferDetails + +`func (o *AdjustVendorBalanceResponse) GetTransferDetails() TransferDetails` + +GetTransferDetails returns the TransferDetails field if non-nil, zero value otherwise. + +### GetTransferDetailsOk + +`func (o *AdjustVendorBalanceResponse) GetTransferDetailsOk() (*TransferDetails, bool)` + +GetTransferDetailsOk returns a tuple with the TransferDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransferDetails + +`func (o *AdjustVendorBalanceResponse) SetTransferDetails(v TransferDetails)` + +SetTransferDetails sets TransferDetails field to given value. + +### HasTransferDetails + +`func (o *AdjustVendorBalanceResponse) HasTransferDetails() bool` + +HasTransferDetails returns a boolean if a field has been set. + +### GetBalances + +`func (o *AdjustVendorBalanceResponse) GetBalances() BalanceDetails` + +GetBalances returns the Balances field if non-nil, zero value otherwise. + +### GetBalancesOk + +`func (o *AdjustVendorBalanceResponse) GetBalancesOk() (*BalanceDetails, bool)` + +GetBalancesOk returns a tuple with the Balances field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBalances + +`func (o *AdjustVendorBalanceResponse) SetBalances(v BalanceDetails)` + +SetBalances sets Balances field to given value. + +### HasBalances + +`func (o *AdjustVendorBalanceResponse) HasBalances() bool` + +HasBalances returns a boolean if a field has been set. + +### GetCharges + +`func (o *AdjustVendorBalanceResponse) GetCharges() ChargesDetails` + +GetCharges returns the Charges field if non-nil, zero value otherwise. + +### GetChargesOk + +`func (o *AdjustVendorBalanceResponse) GetChargesOk() (*ChargesDetails, bool)` + +GetChargesOk returns a tuple with the Charges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCharges + +`func (o *AdjustVendorBalanceResponse) SetCharges(v ChargesDetails)` + +SetCharges sets Charges field to given value. + +### HasCharges + +`func (o *AdjustVendorBalanceResponse) HasCharges() bool` + +HasCharges returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BalanceDetails.md b/docs/BalanceDetails.md new file mode 100644 index 0000000..e902d42 --- /dev/null +++ b/docs/BalanceDetails.md @@ -0,0 +1,134 @@ +# BalanceDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MerchantId** | Pointer to **float32** | | [optional] +**VendorId** | Pointer to **string** | | [optional] +**MerchantUnsettled** | Pointer to **float32** | | [optional] +**VendorUnsettled** | Pointer to **float32** | | [optional] + +## Methods + +### NewBalanceDetails + +`func NewBalanceDetails() *BalanceDetails` + +NewBalanceDetails instantiates a new BalanceDetails object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBalanceDetailsWithDefaults + +`func NewBalanceDetailsWithDefaults() *BalanceDetails` + +NewBalanceDetailsWithDefaults instantiates a new BalanceDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMerchantId + +`func (o *BalanceDetails) GetMerchantId() float32` + +GetMerchantId returns the MerchantId field if non-nil, zero value otherwise. + +### GetMerchantIdOk + +`func (o *BalanceDetails) GetMerchantIdOk() (*float32, bool)` + +GetMerchantIdOk returns a tuple with the MerchantId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMerchantId + +`func (o *BalanceDetails) SetMerchantId(v float32)` + +SetMerchantId sets MerchantId field to given value. + +### HasMerchantId + +`func (o *BalanceDetails) HasMerchantId() bool` + +HasMerchantId returns a boolean if a field has been set. + +### GetVendorId + +`func (o *BalanceDetails) GetVendorId() string` + +GetVendorId returns the VendorId field if non-nil, zero value otherwise. + +### GetVendorIdOk + +`func (o *BalanceDetails) GetVendorIdOk() (*string, bool)` + +GetVendorIdOk returns a tuple with the VendorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendorId + +`func (o *BalanceDetails) SetVendorId(v string)` + +SetVendorId sets VendorId field to given value. + +### HasVendorId + +`func (o *BalanceDetails) HasVendorId() bool` + +HasVendorId returns a boolean if a field has been set. + +### GetMerchantUnsettled + +`func (o *BalanceDetails) GetMerchantUnsettled() float32` + +GetMerchantUnsettled returns the MerchantUnsettled field if non-nil, zero value otherwise. + +### GetMerchantUnsettledOk + +`func (o *BalanceDetails) GetMerchantUnsettledOk() (*float32, bool)` + +GetMerchantUnsettledOk returns a tuple with the MerchantUnsettled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMerchantUnsettled + +`func (o *BalanceDetails) SetMerchantUnsettled(v float32)` + +SetMerchantUnsettled sets MerchantUnsettled field to given value. + +### HasMerchantUnsettled + +`func (o *BalanceDetails) HasMerchantUnsettled() bool` + +HasMerchantUnsettled returns a boolean if a field has been set. + +### GetVendorUnsettled + +`func (o *BalanceDetails) GetVendorUnsettled() float32` + +GetVendorUnsettled returns the VendorUnsettled field if non-nil, zero value otherwise. + +### GetVendorUnsettledOk + +`func (o *BalanceDetails) GetVendorUnsettledOk() (*float32, bool)` + +GetVendorUnsettledOk returns a tuple with the VendorUnsettled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendorUnsettled + +`func (o *BalanceDetails) SetVendorUnsettled(v float32)` + +SetVendorUnsettled sets VendorUnsettled field to given value. + +### HasVendorUnsettled + +`func (o *BalanceDetails) HasVendorUnsettled() bool` + +HasVendorUnsettled returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BankDetails.md b/docs/BankDetails.md new file mode 100644 index 0000000..5b54de5 --- /dev/null +++ b/docs/BankDetails.md @@ -0,0 +1,108 @@ +# BankDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNumber** | Pointer to **string** | | [optional] +**AccountHolder** | Pointer to **string** | | [optional] +**Ifsc** | Pointer to **string** | | [optional] + +## Methods + +### NewBankDetails + +`func NewBankDetails() *BankDetails` + +NewBankDetails instantiates a new BankDetails object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBankDetailsWithDefaults + +`func NewBankDetailsWithDefaults() *BankDetails` + +NewBankDetailsWithDefaults instantiates a new BankDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountNumber + +`func (o *BankDetails) GetAccountNumber() string` + +GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. + +### GetAccountNumberOk + +`func (o *BankDetails) GetAccountNumberOk() (*string, bool)` + +GetAccountNumberOk returns a tuple with the AccountNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNumber + +`func (o *BankDetails) SetAccountNumber(v string)` + +SetAccountNumber sets AccountNumber field to given value. + +### HasAccountNumber + +`func (o *BankDetails) HasAccountNumber() bool` + +HasAccountNumber returns a boolean if a field has been set. + +### GetAccountHolder + +`func (o *BankDetails) GetAccountHolder() string` + +GetAccountHolder returns the AccountHolder field if non-nil, zero value otherwise. + +### GetAccountHolderOk + +`func (o *BankDetails) GetAccountHolderOk() (*string, bool)` + +GetAccountHolderOk returns a tuple with the AccountHolder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountHolder + +`func (o *BankDetails) SetAccountHolder(v string)` + +SetAccountHolder sets AccountHolder field to given value. + +### HasAccountHolder + +`func (o *BankDetails) HasAccountHolder() bool` + +HasAccountHolder returns a boolean if a field has been set. + +### GetIfsc + +`func (o *BankDetails) GetIfsc() string` + +GetIfsc returns the Ifsc field if non-nil, zero value otherwise. + +### GetIfscOk + +`func (o *BankDetails) GetIfscOk() (*string, bool)` + +GetIfscOk returns a tuple with the Ifsc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIfsc + +`func (o *BankDetails) SetIfsc(v string)` + +SetIfsc sets Ifsc field to given value. + +### HasIfsc + +`func (o *BankDetails) HasIfsc() bool` + +HasIfsc returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Banktransfer.md b/docs/Banktransfer.md new file mode 100644 index 0000000..d2c7e8c --- /dev/null +++ b/docs/Banktransfer.md @@ -0,0 +1,56 @@ +# Banktransfer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Channel** | Pointer to **string** | The channel for cardless EMI is always `link` | [optional] + +## Methods + +### NewBanktransfer + +`func NewBanktransfer() *Banktransfer` + +NewBanktransfer instantiates a new Banktransfer object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBanktransferWithDefaults + +`func NewBanktransferWithDefaults() *Banktransfer` + +NewBanktransferWithDefaults instantiates a new Banktransfer object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetChannel + +`func (o *Banktransfer) GetChannel() string` + +GetChannel returns the Channel field if non-nil, zero value otherwise. + +### GetChannelOk + +`func (o *Banktransfer) GetChannelOk() (*string, bool)` + +GetChannelOk returns a tuple with the Channel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChannel + +`func (o *Banktransfer) SetChannel(v string)` + +SetChannel sets Channel field to given value. + +### HasChannel + +`func (o *Banktransfer) HasChannel() bool` + +HasChannel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BanktransferPaymentMethod.md b/docs/BanktransferPaymentMethod.md new file mode 100644 index 0000000..f8661ff --- /dev/null +++ b/docs/BanktransferPaymentMethod.md @@ -0,0 +1,51 @@ +# BanktransferPaymentMethod + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Banktransfer** | [**Banktransfer**](Banktransfer.md) | | + +## Methods + +### NewBanktransferPaymentMethod + +`func NewBanktransferPaymentMethod(banktransfer Banktransfer, ) *BanktransferPaymentMethod` + +NewBanktransferPaymentMethod instantiates a new BanktransferPaymentMethod object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBanktransferPaymentMethodWithDefaults + +`func NewBanktransferPaymentMethodWithDefaults() *BanktransferPaymentMethod` + +NewBanktransferPaymentMethodWithDefaults instantiates a new BanktransferPaymentMethod object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBanktransfer + +`func (o *BanktransferPaymentMethod) GetBanktransfer() Banktransfer` + +GetBanktransfer returns the Banktransfer field if non-nil, zero value otherwise. + +### GetBanktransferOk + +`func (o *BanktransferPaymentMethod) GetBanktransferOk() (*Banktransfer, bool)` + +GetBanktransferOk returns a tuple with the Banktransfer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanktransfer + +`func (o *BanktransferPaymentMethod) SetBanktransfer(v Banktransfer)` + +SetBanktransfer sets Banktransfer field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Card.md b/docs/Card.md index 8128506..83097fc 100644 --- a/docs/Card.md +++ b/docs/Card.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **InstrumentId** | Pointer to **string** | instrument id of saved card. Required only to make payment using saved instrument. | [optional] **Cryptogram** | Pointer to **string** | cryptogram received from card network. Required only for tokenized card transactions. | [optional] **TokenRequestorId** | Pointer to **string** | TRID issued by card networks. Required only for tokenized card transactions. | [optional] +**TokenReferenceId** | Pointer to **string** | Token Reference Id provided by Diners for Guest Checkout Token. Required only for Diners cards. | [optional] **TokenType** | Pointer to **string** | | [optional] **CardDisplay** | Pointer to **string** | last 4 digits of original card number. Required only for tokenized card transactions. | [optional] **CardAlias** | Pointer to **string** | Card alias as returned by Cashfree Vault API. | [optional] @@ -258,6 +259,31 @@ SetTokenRequestorId sets TokenRequestorId field to given value. HasTokenRequestorId returns a boolean if a field has been set. +### GetTokenReferenceId + +`func (o *Card) GetTokenReferenceId() string` + +GetTokenReferenceId returns the TokenReferenceId field if non-nil, zero value otherwise. + +### GetTokenReferenceIdOk + +`func (o *Card) GetTokenReferenceIdOk() (*string, bool)` + +GetTokenReferenceIdOk returns a tuple with the TokenReferenceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTokenReferenceId + +`func (o *Card) SetTokenReferenceId(v string)` + +SetTokenReferenceId sets TokenReferenceId field to given value. + +### HasTokenReferenceId + +`func (o *Card) HasTokenReferenceId() bool` + +HasTokenReferenceId returns a boolean if a field has been set. + ### GetTokenType `func (o *Card) GetTokenType() string` diff --git a/docs/ChargesDetails.md b/docs/ChargesDetails.md new file mode 100644 index 0000000..ec81a32 --- /dev/null +++ b/docs/ChargesDetails.md @@ -0,0 +1,160 @@ +# ChargesDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServiceCharges** | Pointer to **float32** | | [optional] +**ServiceTax** | Pointer to **float32** | | [optional] +**Amount** | Pointer to **float32** | | [optional] +**BilledTo** | Pointer to **string** | | [optional] +**IsPostpaid** | Pointer to **bool** | | [optional] + +## Methods + +### NewChargesDetails + +`func NewChargesDetails() *ChargesDetails` + +NewChargesDetails instantiates a new ChargesDetails object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewChargesDetailsWithDefaults + +`func NewChargesDetailsWithDefaults() *ChargesDetails` + +NewChargesDetailsWithDefaults instantiates a new ChargesDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetServiceCharges + +`func (o *ChargesDetails) GetServiceCharges() float32` + +GetServiceCharges returns the ServiceCharges field if non-nil, zero value otherwise. + +### GetServiceChargesOk + +`func (o *ChargesDetails) GetServiceChargesOk() (*float32, bool)` + +GetServiceChargesOk returns a tuple with the ServiceCharges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceCharges + +`func (o *ChargesDetails) SetServiceCharges(v float32)` + +SetServiceCharges sets ServiceCharges field to given value. + +### HasServiceCharges + +`func (o *ChargesDetails) HasServiceCharges() bool` + +HasServiceCharges returns a boolean if a field has been set. + +### GetServiceTax + +`func (o *ChargesDetails) GetServiceTax() float32` + +GetServiceTax returns the ServiceTax field if non-nil, zero value otherwise. + +### GetServiceTaxOk + +`func (o *ChargesDetails) GetServiceTaxOk() (*float32, bool)` + +GetServiceTaxOk returns a tuple with the ServiceTax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceTax + +`func (o *ChargesDetails) SetServiceTax(v float32)` + +SetServiceTax sets ServiceTax field to given value. + +### HasServiceTax + +`func (o *ChargesDetails) HasServiceTax() bool` + +HasServiceTax returns a boolean if a field has been set. + +### GetAmount + +`func (o *ChargesDetails) GetAmount() float32` + +GetAmount returns the Amount field if non-nil, zero value otherwise. + +### GetAmountOk + +`func (o *ChargesDetails) GetAmountOk() (*float32, bool)` + +GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmount + +`func (o *ChargesDetails) SetAmount(v float32)` + +SetAmount sets Amount field to given value. + +### HasAmount + +`func (o *ChargesDetails) HasAmount() bool` + +HasAmount returns a boolean if a field has been set. + +### GetBilledTo + +`func (o *ChargesDetails) GetBilledTo() string` + +GetBilledTo returns the BilledTo field if non-nil, zero value otherwise. + +### GetBilledToOk + +`func (o *ChargesDetails) GetBilledToOk() (*string, bool)` + +GetBilledToOk returns a tuple with the BilledTo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBilledTo + +`func (o *ChargesDetails) SetBilledTo(v string)` + +SetBilledTo sets BilledTo field to given value. + +### HasBilledTo + +`func (o *ChargesDetails) HasBilledTo() bool` + +HasBilledTo returns a boolean if a field has been set. + +### GetIsPostpaid + +`func (o *ChargesDetails) GetIsPostpaid() bool` + +GetIsPostpaid returns the IsPostpaid field if non-nil, zero value otherwise. + +### GetIsPostpaidOk + +`func (o *ChargesDetails) GetIsPostpaidOk() (*bool, bool)` + +GetIsPostpaidOk returns a tuple with the IsPostpaid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPostpaid + +`func (o *ChargesDetails) SetIsPostpaid(v bool)` + +SetIsPostpaid sets IsPostpaid field to given value. + +### HasIsPostpaid + +`func (o *ChargesDetails) HasIsPostpaid() bool` + +HasIsPostpaid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateVendorRequest.md b/docs/CreateVendorRequest.md new file mode 100644 index 0000000..c8f29ad --- /dev/null +++ b/docs/CreateVendorRequest.md @@ -0,0 +1,286 @@ +# CreateVendorRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VendorId** | **string** | Specify the unique Vendor ID to identify the beneficiary. Alphanumeric and underscore (_) allowed. | +**Status** | **string** | Specify the status of vendor that should be updated. Possible values: ACTIVE,BLOCKED, DELETED | +**Name** | **string** | Specify the name of the vendor to be updated. Name should not have any special character except . / - & | +**Email** | **string** | Specify the vendor email ID that should be updated. String in email ID format (Ex:johndoe_1@cashfree.com) should contain @ and dot (.) | +**Phone** | **string** | Specify the beneficiaries phone number to be updated. Phone number registered in India (only digits, 8 - 12 characters after excluding +91). | +**VerifyAccount** | Pointer to **bool** | Specify if the vendor bank account details should be verified. Possible values: true or false | [optional] +**DashboardAccess** | Pointer to **bool** | Update if the vendor will have dashboard access or not. Possible values are: true or false | [optional] +**ScheduleOption** | Pointer to **float32** | Specify the settlement cycle to be updated. View the settlement cycle details from the \"Settlement Cycles Supported\" table. If no schedule option is configured, the settlement cycle ID \"1\" will be in effect. Select \"8\" or \"9\" if you want to schedule instant vendor settlements. | [optional] +**Bank** | Pointer to [**[]BankDetails**](BankDetails.md) | Specify the vendor bank account details to be updated. | [optional] +**Upi** | Pointer to [**[]UpiDetails**](UpiDetails.md) | Updated beneficiary upi vpa. Alphanumeric, dot (.), hyphen (-), at sign (@), and underscore allowed (100 character limit). Note: underscore and dot (.) gets accepted before and after @, but hyphen (-) is only accepted before @ sign. | [optional] +**KycDetails** | [**[]KycDetails**](KycDetails.md) | Specify the kyc details that should be updated. | + +## Methods + +### NewCreateVendorRequest + +`func NewCreateVendorRequest(vendorId string, status string, name string, email string, phone string, kycDetails []KycDetails, ) *CreateVendorRequest` + +NewCreateVendorRequest instantiates a new CreateVendorRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateVendorRequestWithDefaults + +`func NewCreateVendorRequestWithDefaults() *CreateVendorRequest` + +NewCreateVendorRequestWithDefaults instantiates a new CreateVendorRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetVendorId + +`func (o *CreateVendorRequest) GetVendorId() string` + +GetVendorId returns the VendorId field if non-nil, zero value otherwise. + +### GetVendorIdOk + +`func (o *CreateVendorRequest) GetVendorIdOk() (*string, bool)` + +GetVendorIdOk returns a tuple with the VendorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendorId + +`func (o *CreateVendorRequest) SetVendorId(v string)` + +SetVendorId sets VendorId field to given value. + + +### GetStatus + +`func (o *CreateVendorRequest) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *CreateVendorRequest) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *CreateVendorRequest) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetName + +`func (o *CreateVendorRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateVendorRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateVendorRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetEmail + +`func (o *CreateVendorRequest) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *CreateVendorRequest) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *CreateVendorRequest) SetEmail(v string)` + +SetEmail sets Email field to given value. + + +### GetPhone + +`func (o *CreateVendorRequest) GetPhone() string` + +GetPhone returns the Phone field if non-nil, zero value otherwise. + +### GetPhoneOk + +`func (o *CreateVendorRequest) GetPhoneOk() (*string, bool)` + +GetPhoneOk returns a tuple with the Phone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhone + +`func (o *CreateVendorRequest) SetPhone(v string)` + +SetPhone sets Phone field to given value. + + +### GetVerifyAccount + +`func (o *CreateVendorRequest) GetVerifyAccount() bool` + +GetVerifyAccount returns the VerifyAccount field if non-nil, zero value otherwise. + +### GetVerifyAccountOk + +`func (o *CreateVendorRequest) GetVerifyAccountOk() (*bool, bool)` + +GetVerifyAccountOk returns a tuple with the VerifyAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerifyAccount + +`func (o *CreateVendorRequest) SetVerifyAccount(v bool)` + +SetVerifyAccount sets VerifyAccount field to given value. + +### HasVerifyAccount + +`func (o *CreateVendorRequest) HasVerifyAccount() bool` + +HasVerifyAccount returns a boolean if a field has been set. + +### GetDashboardAccess + +`func (o *CreateVendorRequest) GetDashboardAccess() bool` + +GetDashboardAccess returns the DashboardAccess field if non-nil, zero value otherwise. + +### GetDashboardAccessOk + +`func (o *CreateVendorRequest) GetDashboardAccessOk() (*bool, bool)` + +GetDashboardAccessOk returns a tuple with the DashboardAccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDashboardAccess + +`func (o *CreateVendorRequest) SetDashboardAccess(v bool)` + +SetDashboardAccess sets DashboardAccess field to given value. + +### HasDashboardAccess + +`func (o *CreateVendorRequest) HasDashboardAccess() bool` + +HasDashboardAccess returns a boolean if a field has been set. + +### GetScheduleOption + +`func (o *CreateVendorRequest) GetScheduleOption() float32` + +GetScheduleOption returns the ScheduleOption field if non-nil, zero value otherwise. + +### GetScheduleOptionOk + +`func (o *CreateVendorRequest) GetScheduleOptionOk() (*float32, bool)` + +GetScheduleOptionOk returns a tuple with the ScheduleOption field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheduleOption + +`func (o *CreateVendorRequest) SetScheduleOption(v float32)` + +SetScheduleOption sets ScheduleOption field to given value. + +### HasScheduleOption + +`func (o *CreateVendorRequest) HasScheduleOption() bool` + +HasScheduleOption returns a boolean if a field has been set. + +### GetBank + +`func (o *CreateVendorRequest) GetBank() []BankDetails` + +GetBank returns the Bank field if non-nil, zero value otherwise. + +### GetBankOk + +`func (o *CreateVendorRequest) GetBankOk() (*[]BankDetails, bool)` + +GetBankOk returns a tuple with the Bank field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBank + +`func (o *CreateVendorRequest) SetBank(v []BankDetails)` + +SetBank sets Bank field to given value. + +### HasBank + +`func (o *CreateVendorRequest) HasBank() bool` + +HasBank returns a boolean if a field has been set. + +### GetUpi + +`func (o *CreateVendorRequest) GetUpi() []UpiDetails` + +GetUpi returns the Upi field if non-nil, zero value otherwise. + +### GetUpiOk + +`func (o *CreateVendorRequest) GetUpiOk() (*[]UpiDetails, bool)` + +GetUpiOk returns a tuple with the Upi field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpi + +`func (o *CreateVendorRequest) SetUpi(v []UpiDetails)` + +SetUpi sets Upi field to given value. + +### HasUpi + +`func (o *CreateVendorRequest) HasUpi() bool` + +HasUpi returns a boolean if a field has been set. + +### GetKycDetails + +`func (o *CreateVendorRequest) GetKycDetails() []KycDetails` + +GetKycDetails returns the KycDetails field if non-nil, zero value otherwise. + +### GetKycDetailsOk + +`func (o *CreateVendorRequest) GetKycDetailsOk() (*[]KycDetails, bool)` + +GetKycDetailsOk returns a tuple with the KycDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKycDetails + +`func (o *CreateVendorRequest) SetKycDetails(v []KycDetails)` + +SetKycDetails sets KycDetails field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateVendorResponse.md b/docs/CreateVendorResponse.md new file mode 100644 index 0000000..ea1be54 --- /dev/null +++ b/docs/CreateVendorResponse.md @@ -0,0 +1,316 @@ +# CreateVendorResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**Bank** | Pointer to [**[]BankDetails**](BankDetails.md) | | [optional] +**Upi** | Pointer to **string** | | [optional] +**Phone** | Pointer to **float32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**VendorId** | Pointer to **string** | | [optional] +**ScheduleOption** | Pointer to [**[]ScheduleOption**](ScheduleOption.md) | | [optional] +**KycDetails** | Pointer to [**[]KycDetails**](KycDetails.md) | | [optional] +**DashboardAccess** | Pointer to **bool** | | [optional] +**BankDetails** | Pointer to **string** | | [optional] + +## Methods + +### NewCreateVendorResponse + +`func NewCreateVendorResponse() *CreateVendorResponse` + +NewCreateVendorResponse instantiates a new CreateVendorResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateVendorResponseWithDefaults + +`func NewCreateVendorResponseWithDefaults() *CreateVendorResponse` + +NewCreateVendorResponseWithDefaults instantiates a new CreateVendorResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEmail + +`func (o *CreateVendorResponse) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *CreateVendorResponse) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *CreateVendorResponse) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *CreateVendorResponse) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetStatus + +`func (o *CreateVendorResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *CreateVendorResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *CreateVendorResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *CreateVendorResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetBank + +`func (o *CreateVendorResponse) GetBank() []BankDetails` + +GetBank returns the Bank field if non-nil, zero value otherwise. + +### GetBankOk + +`func (o *CreateVendorResponse) GetBankOk() (*[]BankDetails, bool)` + +GetBankOk returns a tuple with the Bank field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBank + +`func (o *CreateVendorResponse) SetBank(v []BankDetails)` + +SetBank sets Bank field to given value. + +### HasBank + +`func (o *CreateVendorResponse) HasBank() bool` + +HasBank returns a boolean if a field has been set. + +### GetUpi + +`func (o *CreateVendorResponse) GetUpi() string` + +GetUpi returns the Upi field if non-nil, zero value otherwise. + +### GetUpiOk + +`func (o *CreateVendorResponse) GetUpiOk() (*string, bool)` + +GetUpiOk returns a tuple with the Upi field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpi + +`func (o *CreateVendorResponse) SetUpi(v string)` + +SetUpi sets Upi field to given value. + +### HasUpi + +`func (o *CreateVendorResponse) HasUpi() bool` + +HasUpi returns a boolean if a field has been set. + +### GetPhone + +`func (o *CreateVendorResponse) GetPhone() float32` + +GetPhone returns the Phone field if non-nil, zero value otherwise. + +### GetPhoneOk + +`func (o *CreateVendorResponse) GetPhoneOk() (*float32, bool)` + +GetPhoneOk returns a tuple with the Phone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhone + +`func (o *CreateVendorResponse) SetPhone(v float32)` + +SetPhone sets Phone field to given value. + +### HasPhone + +`func (o *CreateVendorResponse) HasPhone() bool` + +HasPhone returns a boolean if a field has been set. + +### GetName + +`func (o *CreateVendorResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateVendorResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateVendorResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *CreateVendorResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetVendorId + +`func (o *CreateVendorResponse) GetVendorId() string` + +GetVendorId returns the VendorId field if non-nil, zero value otherwise. + +### GetVendorIdOk + +`func (o *CreateVendorResponse) GetVendorIdOk() (*string, bool)` + +GetVendorIdOk returns a tuple with the VendorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendorId + +`func (o *CreateVendorResponse) SetVendorId(v string)` + +SetVendorId sets VendorId field to given value. + +### HasVendorId + +`func (o *CreateVendorResponse) HasVendorId() bool` + +HasVendorId returns a boolean if a field has been set. + +### GetScheduleOption + +`func (o *CreateVendorResponse) GetScheduleOption() []ScheduleOption` + +GetScheduleOption returns the ScheduleOption field if non-nil, zero value otherwise. + +### GetScheduleOptionOk + +`func (o *CreateVendorResponse) GetScheduleOptionOk() (*[]ScheduleOption, bool)` + +GetScheduleOptionOk returns a tuple with the ScheduleOption field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheduleOption + +`func (o *CreateVendorResponse) SetScheduleOption(v []ScheduleOption)` + +SetScheduleOption sets ScheduleOption field to given value. + +### HasScheduleOption + +`func (o *CreateVendorResponse) HasScheduleOption() bool` + +HasScheduleOption returns a boolean if a field has been set. + +### GetKycDetails + +`func (o *CreateVendorResponse) GetKycDetails() []KycDetails` + +GetKycDetails returns the KycDetails field if non-nil, zero value otherwise. + +### GetKycDetailsOk + +`func (o *CreateVendorResponse) GetKycDetailsOk() (*[]KycDetails, bool)` + +GetKycDetailsOk returns a tuple with the KycDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKycDetails + +`func (o *CreateVendorResponse) SetKycDetails(v []KycDetails)` + +SetKycDetails sets KycDetails field to given value. + +### HasKycDetails + +`func (o *CreateVendorResponse) HasKycDetails() bool` + +HasKycDetails returns a boolean if a field has been set. + +### GetDashboardAccess + +`func (o *CreateVendorResponse) GetDashboardAccess() bool` + +GetDashboardAccess returns the DashboardAccess field if non-nil, zero value otherwise. + +### GetDashboardAccessOk + +`func (o *CreateVendorResponse) GetDashboardAccessOk() (*bool, bool)` + +GetDashboardAccessOk returns a tuple with the DashboardAccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDashboardAccess + +`func (o *CreateVendorResponse) SetDashboardAccess(v bool)` + +SetDashboardAccess sets DashboardAccess field to given value. + +### HasDashboardAccess + +`func (o *CreateVendorResponse) HasDashboardAccess() bool` + +HasDashboardAccess returns a boolean if a field has been set. + +### GetBankDetails + +`func (o *CreateVendorResponse) GetBankDetails() string` + +GetBankDetails returns the BankDetails field if non-nil, zero value otherwise. + +### GetBankDetailsOk + +`func (o *CreateVendorResponse) GetBankDetailsOk() (*string, bool)` + +GetBankDetailsOk returns a tuple with the BankDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBankDetails + +`func (o *CreateVendorResponse) SetBankDetails(v string)` + +SetBankDetails sets BankDetails field to given value. + +### HasBankDetails + +`func (o *CreateVendorResponse) HasBankDetails() bool` + +HasBankDetails returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ESOrderReconRequest.md b/docs/ESOrderReconRequest.md new file mode 100644 index 0000000..076a3f9 --- /dev/null +++ b/docs/ESOrderReconRequest.md @@ -0,0 +1,72 @@ +# ESOrderReconRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Filters** | [**ESOrderReconRequestFilters**](ESOrderReconRequestFilters.md) | | +**Pagination** | [**ESOrderReconRequestPagination**](ESOrderReconRequestPagination.md) | | + +## Methods + +### NewESOrderReconRequest + +`func NewESOrderReconRequest(filters ESOrderReconRequestFilters, pagination ESOrderReconRequestPagination, ) *ESOrderReconRequest` + +NewESOrderReconRequest instantiates a new ESOrderReconRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewESOrderReconRequestWithDefaults + +`func NewESOrderReconRequestWithDefaults() *ESOrderReconRequest` + +NewESOrderReconRequestWithDefaults instantiates a new ESOrderReconRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFilters + +`func (o *ESOrderReconRequest) GetFilters() ESOrderReconRequestFilters` + +GetFilters returns the Filters field if non-nil, zero value otherwise. + +### GetFiltersOk + +`func (o *ESOrderReconRequest) GetFiltersOk() (*ESOrderReconRequestFilters, bool)` + +GetFiltersOk returns a tuple with the Filters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilters + +`func (o *ESOrderReconRequest) SetFilters(v ESOrderReconRequestFilters)` + +SetFilters sets Filters field to given value. + + +### GetPagination + +`func (o *ESOrderReconRequest) GetPagination() ESOrderReconRequestPagination` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *ESOrderReconRequest) GetPaginationOk() (*ESOrderReconRequestPagination, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *ESOrderReconRequest) SetPagination(v ESOrderReconRequestPagination)` + +SetPagination sets Pagination field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ESOrderReconRequestFilters.md b/docs/ESOrderReconRequestFilters.md new file mode 100644 index 0000000..33ab173 --- /dev/null +++ b/docs/ESOrderReconRequestFilters.md @@ -0,0 +1,108 @@ +# ESOrderReconRequestFilters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StartDate** | Pointer to **string** | Specify the start data from which you want to get the recon data. | [optional] +**EndDate** | Pointer to **string** | Specify the end data till which you want to get the recon data. | [optional] +**OrderIds** | Pointer to **[]string** | Please provide list of order ids for which you want to get the recon data. | [optional] + +## Methods + +### NewESOrderReconRequestFilters + +`func NewESOrderReconRequestFilters() *ESOrderReconRequestFilters` + +NewESOrderReconRequestFilters instantiates a new ESOrderReconRequestFilters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewESOrderReconRequestFiltersWithDefaults + +`func NewESOrderReconRequestFiltersWithDefaults() *ESOrderReconRequestFilters` + +NewESOrderReconRequestFiltersWithDefaults instantiates a new ESOrderReconRequestFilters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStartDate + +`func (o *ESOrderReconRequestFilters) GetStartDate() string` + +GetStartDate returns the StartDate field if non-nil, zero value otherwise. + +### GetStartDateOk + +`func (o *ESOrderReconRequestFilters) GetStartDateOk() (*string, bool)` + +GetStartDateOk returns a tuple with the StartDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartDate + +`func (o *ESOrderReconRequestFilters) SetStartDate(v string)` + +SetStartDate sets StartDate field to given value. + +### HasStartDate + +`func (o *ESOrderReconRequestFilters) HasStartDate() bool` + +HasStartDate returns a boolean if a field has been set. + +### GetEndDate + +`func (o *ESOrderReconRequestFilters) GetEndDate() string` + +GetEndDate returns the EndDate field if non-nil, zero value otherwise. + +### GetEndDateOk + +`func (o *ESOrderReconRequestFilters) GetEndDateOk() (*string, bool)` + +GetEndDateOk returns a tuple with the EndDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndDate + +`func (o *ESOrderReconRequestFilters) SetEndDate(v string)` + +SetEndDate sets EndDate field to given value. + +### HasEndDate + +`func (o *ESOrderReconRequestFilters) HasEndDate() bool` + +HasEndDate returns a boolean if a field has been set. + +### GetOrderIds + +`func (o *ESOrderReconRequestFilters) GetOrderIds() []string` + +GetOrderIds returns the OrderIds field if non-nil, zero value otherwise. + +### GetOrderIdsOk + +`func (o *ESOrderReconRequestFilters) GetOrderIdsOk() (*[]string, bool)` + +GetOrderIdsOk returns a tuple with the OrderIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderIds + +`func (o *ESOrderReconRequestFilters) SetOrderIds(v []string)` + +SetOrderIds sets OrderIds field to given value. + +### HasOrderIds + +`func (o *ESOrderReconRequestFilters) HasOrderIds() bool` + +HasOrderIds returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ESOrderReconRequestPagination.md b/docs/ESOrderReconRequestPagination.md new file mode 100644 index 0000000..d30453f --- /dev/null +++ b/docs/ESOrderReconRequestPagination.md @@ -0,0 +1,82 @@ +# ESOrderReconRequestPagination + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cursor** | Pointer to **string** | | [optional] +**Limit** | Pointer to **int32** | Set the minimum/maximum limit for number of filtered data. Min value - 10, Max value - 100. | [optional] + +## Methods + +### NewESOrderReconRequestPagination + +`func NewESOrderReconRequestPagination() *ESOrderReconRequestPagination` + +NewESOrderReconRequestPagination instantiates a new ESOrderReconRequestPagination object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewESOrderReconRequestPaginationWithDefaults + +`func NewESOrderReconRequestPaginationWithDefaults() *ESOrderReconRequestPagination` + +NewESOrderReconRequestPaginationWithDefaults instantiates a new ESOrderReconRequestPagination object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCursor + +`func (o *ESOrderReconRequestPagination) GetCursor() string` + +GetCursor returns the Cursor field if non-nil, zero value otherwise. + +### GetCursorOk + +`func (o *ESOrderReconRequestPagination) GetCursorOk() (*string, bool)` + +GetCursorOk returns a tuple with the Cursor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCursor + +`func (o *ESOrderReconRequestPagination) SetCursor(v string)` + +SetCursor sets Cursor field to given value. + +### HasCursor + +`func (o *ESOrderReconRequestPagination) HasCursor() bool` + +HasCursor returns a boolean if a field has been set. + +### GetLimit + +`func (o *ESOrderReconRequestPagination) GetLimit() int32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *ESOrderReconRequestPagination) GetLimitOk() (*int32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *ESOrderReconRequestPagination) SetLimit(v int32)` + +SetLimit sets Limit field to given value. + +### HasLimit + +`func (o *ESOrderReconRequestPagination) HasLimit() bool` + +HasLimit returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ESOrderReconResponse.md b/docs/ESOrderReconResponse.md new file mode 100644 index 0000000..d92150f --- /dev/null +++ b/docs/ESOrderReconResponse.md @@ -0,0 +1,108 @@ +# ESOrderReconResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cursor** | Pointer to **string** | | [optional] +**Data** | Pointer to [**[]ESOrderReconResponseDataInner**](ESOrderReconResponseDataInner.md) | | [optional] +**Limit** | Pointer to **int32** | | [optional] + +## Methods + +### NewESOrderReconResponse + +`func NewESOrderReconResponse() *ESOrderReconResponse` + +NewESOrderReconResponse instantiates a new ESOrderReconResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewESOrderReconResponseWithDefaults + +`func NewESOrderReconResponseWithDefaults() *ESOrderReconResponse` + +NewESOrderReconResponseWithDefaults instantiates a new ESOrderReconResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCursor + +`func (o *ESOrderReconResponse) GetCursor() string` + +GetCursor returns the Cursor field if non-nil, zero value otherwise. + +### GetCursorOk + +`func (o *ESOrderReconResponse) GetCursorOk() (*string, bool)` + +GetCursorOk returns a tuple with the Cursor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCursor + +`func (o *ESOrderReconResponse) SetCursor(v string)` + +SetCursor sets Cursor field to given value. + +### HasCursor + +`func (o *ESOrderReconResponse) HasCursor() bool` + +HasCursor returns a boolean if a field has been set. + +### GetData + +`func (o *ESOrderReconResponse) GetData() []ESOrderReconResponseDataInner` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ESOrderReconResponse) GetDataOk() (*[]ESOrderReconResponseDataInner, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ESOrderReconResponse) SetData(v []ESOrderReconResponseDataInner)` + +SetData sets Data field to given value. + +### HasData + +`func (o *ESOrderReconResponse) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetLimit + +`func (o *ESOrderReconResponse) GetLimit() int32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *ESOrderReconResponse) GetLimitOk() (*int32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *ESOrderReconResponse) SetLimit(v int32)` + +SetLimit sets Limit field to given value. + +### HasLimit + +`func (o *ESOrderReconResponse) HasLimit() bool` + +HasLimit returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ESOrderReconResponseDataInner.md b/docs/ESOrderReconResponseDataInner.md new file mode 100644 index 0000000..b8c5d0c --- /dev/null +++ b/docs/ESOrderReconResponseDataInner.md @@ -0,0 +1,706 @@ +# ESOrderReconResponseDataInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Amount** | Pointer to **float32** | | [optional] +**SettlementEligibilityTime** | Pointer to **string** | | [optional] +**MerchantOrderId** | Pointer to **string** | | [optional] +**TxTime** | Pointer to **string** | | [optional] +**Settled** | Pointer to **string** | | [optional] +**EntityId** | Pointer to **string** | | [optional] +**MerchantSettlementUtr** | Pointer to **string** | | [optional] +**Currency** | Pointer to **string** | | [optional] +**SaleType** | Pointer to **string** | | [optional] +**CustomerName** | Pointer to **string** | | [optional] +**CustomerEmail** | Pointer to **string** | | [optional] +**CustomerPhone** | Pointer to **string** | | [optional] +**MerchantVendorCommission** | Pointer to **string** | | [optional] +**SplitServiceCharge** | Pointer to **string** | | [optional] +**SplitServiceTax** | Pointer to **string** | | [optional] +**PgServiceTax** | Pointer to **string** | | [optional] +**PgServiceCharge** | Pointer to **string** | | [optional] +**PgChargePostpaid** | Pointer to **string** | | [optional] +**MerchantSettlementId** | Pointer to **string** | | [optional] +**AddedOn** | Pointer to **string** | | [optional] +**Tags** | Pointer to **string** | | [optional] +**EntityType** | Pointer to **string** | | [optional] +**SettlementInitiatedOn** | Pointer to **string** | | [optional] +**SettlementTime** | Pointer to **string** | | [optional] +**OrderSplits** | Pointer to [**[]ESOrderReconResponseDataInnerOrderSplitsInner**](ESOrderReconResponseDataInnerOrderSplitsInner.md) | | [optional] +**EligibleSplitBalance** | Pointer to **string** | | [optional] + +## Methods + +### NewESOrderReconResponseDataInner + +`func NewESOrderReconResponseDataInner() *ESOrderReconResponseDataInner` + +NewESOrderReconResponseDataInner instantiates a new ESOrderReconResponseDataInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewESOrderReconResponseDataInnerWithDefaults + +`func NewESOrderReconResponseDataInnerWithDefaults() *ESOrderReconResponseDataInner` + +NewESOrderReconResponseDataInnerWithDefaults instantiates a new ESOrderReconResponseDataInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAmount + +`func (o *ESOrderReconResponseDataInner) GetAmount() float32` + +GetAmount returns the Amount field if non-nil, zero value otherwise. + +### GetAmountOk + +`func (o *ESOrderReconResponseDataInner) GetAmountOk() (*float32, bool)` + +GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmount + +`func (o *ESOrderReconResponseDataInner) SetAmount(v float32)` + +SetAmount sets Amount field to given value. + +### HasAmount + +`func (o *ESOrderReconResponseDataInner) HasAmount() bool` + +HasAmount returns a boolean if a field has been set. + +### GetSettlementEligibilityTime + +`func (o *ESOrderReconResponseDataInner) GetSettlementEligibilityTime() string` + +GetSettlementEligibilityTime returns the SettlementEligibilityTime field if non-nil, zero value otherwise. + +### GetSettlementEligibilityTimeOk + +`func (o *ESOrderReconResponseDataInner) GetSettlementEligibilityTimeOk() (*string, bool)` + +GetSettlementEligibilityTimeOk returns a tuple with the SettlementEligibilityTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSettlementEligibilityTime + +`func (o *ESOrderReconResponseDataInner) SetSettlementEligibilityTime(v string)` + +SetSettlementEligibilityTime sets SettlementEligibilityTime field to given value. + +### HasSettlementEligibilityTime + +`func (o *ESOrderReconResponseDataInner) HasSettlementEligibilityTime() bool` + +HasSettlementEligibilityTime returns a boolean if a field has been set. + +### GetMerchantOrderId + +`func (o *ESOrderReconResponseDataInner) GetMerchantOrderId() string` + +GetMerchantOrderId returns the MerchantOrderId field if non-nil, zero value otherwise. + +### GetMerchantOrderIdOk + +`func (o *ESOrderReconResponseDataInner) GetMerchantOrderIdOk() (*string, bool)` + +GetMerchantOrderIdOk returns a tuple with the MerchantOrderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMerchantOrderId + +`func (o *ESOrderReconResponseDataInner) SetMerchantOrderId(v string)` + +SetMerchantOrderId sets MerchantOrderId field to given value. + +### HasMerchantOrderId + +`func (o *ESOrderReconResponseDataInner) HasMerchantOrderId() bool` + +HasMerchantOrderId returns a boolean if a field has been set. + +### GetTxTime + +`func (o *ESOrderReconResponseDataInner) GetTxTime() string` + +GetTxTime returns the TxTime field if non-nil, zero value otherwise. + +### GetTxTimeOk + +`func (o *ESOrderReconResponseDataInner) GetTxTimeOk() (*string, bool)` + +GetTxTimeOk returns a tuple with the TxTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTxTime + +`func (o *ESOrderReconResponseDataInner) SetTxTime(v string)` + +SetTxTime sets TxTime field to given value. + +### HasTxTime + +`func (o *ESOrderReconResponseDataInner) HasTxTime() bool` + +HasTxTime returns a boolean if a field has been set. + +### GetSettled + +`func (o *ESOrderReconResponseDataInner) GetSettled() string` + +GetSettled returns the Settled field if non-nil, zero value otherwise. + +### GetSettledOk + +`func (o *ESOrderReconResponseDataInner) GetSettledOk() (*string, bool)` + +GetSettledOk returns a tuple with the Settled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSettled + +`func (o *ESOrderReconResponseDataInner) SetSettled(v string)` + +SetSettled sets Settled field to given value. + +### HasSettled + +`func (o *ESOrderReconResponseDataInner) HasSettled() bool` + +HasSettled returns a boolean if a field has been set. + +### GetEntityId + +`func (o *ESOrderReconResponseDataInner) GetEntityId() string` + +GetEntityId returns the EntityId field if non-nil, zero value otherwise. + +### GetEntityIdOk + +`func (o *ESOrderReconResponseDataInner) GetEntityIdOk() (*string, bool)` + +GetEntityIdOk returns a tuple with the EntityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntityId + +`func (o *ESOrderReconResponseDataInner) SetEntityId(v string)` + +SetEntityId sets EntityId field to given value. + +### HasEntityId + +`func (o *ESOrderReconResponseDataInner) HasEntityId() bool` + +HasEntityId returns a boolean if a field has been set. + +### GetMerchantSettlementUtr + +`func (o *ESOrderReconResponseDataInner) GetMerchantSettlementUtr() string` + +GetMerchantSettlementUtr returns the MerchantSettlementUtr field if non-nil, zero value otherwise. + +### GetMerchantSettlementUtrOk + +`func (o *ESOrderReconResponseDataInner) GetMerchantSettlementUtrOk() (*string, bool)` + +GetMerchantSettlementUtrOk returns a tuple with the MerchantSettlementUtr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMerchantSettlementUtr + +`func (o *ESOrderReconResponseDataInner) SetMerchantSettlementUtr(v string)` + +SetMerchantSettlementUtr sets MerchantSettlementUtr field to given value. + +### HasMerchantSettlementUtr + +`func (o *ESOrderReconResponseDataInner) HasMerchantSettlementUtr() bool` + +HasMerchantSettlementUtr returns a boolean if a field has been set. + +### GetCurrency + +`func (o *ESOrderReconResponseDataInner) GetCurrency() string` + +GetCurrency returns the Currency field if non-nil, zero value otherwise. + +### GetCurrencyOk + +`func (o *ESOrderReconResponseDataInner) GetCurrencyOk() (*string, bool)` + +GetCurrencyOk returns a tuple with the Currency field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrency + +`func (o *ESOrderReconResponseDataInner) SetCurrency(v string)` + +SetCurrency sets Currency field to given value. + +### HasCurrency + +`func (o *ESOrderReconResponseDataInner) HasCurrency() bool` + +HasCurrency returns a boolean if a field has been set. + +### GetSaleType + +`func (o *ESOrderReconResponseDataInner) GetSaleType() string` + +GetSaleType returns the SaleType field if non-nil, zero value otherwise. + +### GetSaleTypeOk + +`func (o *ESOrderReconResponseDataInner) GetSaleTypeOk() (*string, bool)` + +GetSaleTypeOk returns a tuple with the SaleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSaleType + +`func (o *ESOrderReconResponseDataInner) SetSaleType(v string)` + +SetSaleType sets SaleType field to given value. + +### HasSaleType + +`func (o *ESOrderReconResponseDataInner) HasSaleType() bool` + +HasSaleType returns a boolean if a field has been set. + +### GetCustomerName + +`func (o *ESOrderReconResponseDataInner) GetCustomerName() string` + +GetCustomerName returns the CustomerName field if non-nil, zero value otherwise. + +### GetCustomerNameOk + +`func (o *ESOrderReconResponseDataInner) GetCustomerNameOk() (*string, bool)` + +GetCustomerNameOk returns a tuple with the CustomerName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomerName + +`func (o *ESOrderReconResponseDataInner) SetCustomerName(v string)` + +SetCustomerName sets CustomerName field to given value. + +### HasCustomerName + +`func (o *ESOrderReconResponseDataInner) HasCustomerName() bool` + +HasCustomerName returns a boolean if a field has been set. + +### GetCustomerEmail + +`func (o *ESOrderReconResponseDataInner) GetCustomerEmail() string` + +GetCustomerEmail returns the CustomerEmail field if non-nil, zero value otherwise. + +### GetCustomerEmailOk + +`func (o *ESOrderReconResponseDataInner) GetCustomerEmailOk() (*string, bool)` + +GetCustomerEmailOk returns a tuple with the CustomerEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomerEmail + +`func (o *ESOrderReconResponseDataInner) SetCustomerEmail(v string)` + +SetCustomerEmail sets CustomerEmail field to given value. + +### HasCustomerEmail + +`func (o *ESOrderReconResponseDataInner) HasCustomerEmail() bool` + +HasCustomerEmail returns a boolean if a field has been set. + +### GetCustomerPhone + +`func (o *ESOrderReconResponseDataInner) GetCustomerPhone() string` + +GetCustomerPhone returns the CustomerPhone field if non-nil, zero value otherwise. + +### GetCustomerPhoneOk + +`func (o *ESOrderReconResponseDataInner) GetCustomerPhoneOk() (*string, bool)` + +GetCustomerPhoneOk returns a tuple with the CustomerPhone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomerPhone + +`func (o *ESOrderReconResponseDataInner) SetCustomerPhone(v string)` + +SetCustomerPhone sets CustomerPhone field to given value. + +### HasCustomerPhone + +`func (o *ESOrderReconResponseDataInner) HasCustomerPhone() bool` + +HasCustomerPhone returns a boolean if a field has been set. + +### GetMerchantVendorCommission + +`func (o *ESOrderReconResponseDataInner) GetMerchantVendorCommission() string` + +GetMerchantVendorCommission returns the MerchantVendorCommission field if non-nil, zero value otherwise. + +### GetMerchantVendorCommissionOk + +`func (o *ESOrderReconResponseDataInner) GetMerchantVendorCommissionOk() (*string, bool)` + +GetMerchantVendorCommissionOk returns a tuple with the MerchantVendorCommission field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMerchantVendorCommission + +`func (o *ESOrderReconResponseDataInner) SetMerchantVendorCommission(v string)` + +SetMerchantVendorCommission sets MerchantVendorCommission field to given value. + +### HasMerchantVendorCommission + +`func (o *ESOrderReconResponseDataInner) HasMerchantVendorCommission() bool` + +HasMerchantVendorCommission returns a boolean if a field has been set. + +### GetSplitServiceCharge + +`func (o *ESOrderReconResponseDataInner) GetSplitServiceCharge() string` + +GetSplitServiceCharge returns the SplitServiceCharge field if non-nil, zero value otherwise. + +### GetSplitServiceChargeOk + +`func (o *ESOrderReconResponseDataInner) GetSplitServiceChargeOk() (*string, bool)` + +GetSplitServiceChargeOk returns a tuple with the SplitServiceCharge field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSplitServiceCharge + +`func (o *ESOrderReconResponseDataInner) SetSplitServiceCharge(v string)` + +SetSplitServiceCharge sets SplitServiceCharge field to given value. + +### HasSplitServiceCharge + +`func (o *ESOrderReconResponseDataInner) HasSplitServiceCharge() bool` + +HasSplitServiceCharge returns a boolean if a field has been set. + +### GetSplitServiceTax + +`func (o *ESOrderReconResponseDataInner) GetSplitServiceTax() string` + +GetSplitServiceTax returns the SplitServiceTax field if non-nil, zero value otherwise. + +### GetSplitServiceTaxOk + +`func (o *ESOrderReconResponseDataInner) GetSplitServiceTaxOk() (*string, bool)` + +GetSplitServiceTaxOk returns a tuple with the SplitServiceTax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSplitServiceTax + +`func (o *ESOrderReconResponseDataInner) SetSplitServiceTax(v string)` + +SetSplitServiceTax sets SplitServiceTax field to given value. + +### HasSplitServiceTax + +`func (o *ESOrderReconResponseDataInner) HasSplitServiceTax() bool` + +HasSplitServiceTax returns a boolean if a field has been set. + +### GetPgServiceTax + +`func (o *ESOrderReconResponseDataInner) GetPgServiceTax() string` + +GetPgServiceTax returns the PgServiceTax field if non-nil, zero value otherwise. + +### GetPgServiceTaxOk + +`func (o *ESOrderReconResponseDataInner) GetPgServiceTaxOk() (*string, bool)` + +GetPgServiceTaxOk returns a tuple with the PgServiceTax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPgServiceTax + +`func (o *ESOrderReconResponseDataInner) SetPgServiceTax(v string)` + +SetPgServiceTax sets PgServiceTax field to given value. + +### HasPgServiceTax + +`func (o *ESOrderReconResponseDataInner) HasPgServiceTax() bool` + +HasPgServiceTax returns a boolean if a field has been set. + +### GetPgServiceCharge + +`func (o *ESOrderReconResponseDataInner) GetPgServiceCharge() string` + +GetPgServiceCharge returns the PgServiceCharge field if non-nil, zero value otherwise. + +### GetPgServiceChargeOk + +`func (o *ESOrderReconResponseDataInner) GetPgServiceChargeOk() (*string, bool)` + +GetPgServiceChargeOk returns a tuple with the PgServiceCharge field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPgServiceCharge + +`func (o *ESOrderReconResponseDataInner) SetPgServiceCharge(v string)` + +SetPgServiceCharge sets PgServiceCharge field to given value. + +### HasPgServiceCharge + +`func (o *ESOrderReconResponseDataInner) HasPgServiceCharge() bool` + +HasPgServiceCharge returns a boolean if a field has been set. + +### GetPgChargePostpaid + +`func (o *ESOrderReconResponseDataInner) GetPgChargePostpaid() string` + +GetPgChargePostpaid returns the PgChargePostpaid field if non-nil, zero value otherwise. + +### GetPgChargePostpaidOk + +`func (o *ESOrderReconResponseDataInner) GetPgChargePostpaidOk() (*string, bool)` + +GetPgChargePostpaidOk returns a tuple with the PgChargePostpaid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPgChargePostpaid + +`func (o *ESOrderReconResponseDataInner) SetPgChargePostpaid(v string)` + +SetPgChargePostpaid sets PgChargePostpaid field to given value. + +### HasPgChargePostpaid + +`func (o *ESOrderReconResponseDataInner) HasPgChargePostpaid() bool` + +HasPgChargePostpaid returns a boolean if a field has been set. + +### GetMerchantSettlementId + +`func (o *ESOrderReconResponseDataInner) GetMerchantSettlementId() string` + +GetMerchantSettlementId returns the MerchantSettlementId field if non-nil, zero value otherwise. + +### GetMerchantSettlementIdOk + +`func (o *ESOrderReconResponseDataInner) GetMerchantSettlementIdOk() (*string, bool)` + +GetMerchantSettlementIdOk returns a tuple with the MerchantSettlementId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMerchantSettlementId + +`func (o *ESOrderReconResponseDataInner) SetMerchantSettlementId(v string)` + +SetMerchantSettlementId sets MerchantSettlementId field to given value. + +### HasMerchantSettlementId + +`func (o *ESOrderReconResponseDataInner) HasMerchantSettlementId() bool` + +HasMerchantSettlementId returns a boolean if a field has been set. + +### GetAddedOn + +`func (o *ESOrderReconResponseDataInner) GetAddedOn() string` + +GetAddedOn returns the AddedOn field if non-nil, zero value otherwise. + +### GetAddedOnOk + +`func (o *ESOrderReconResponseDataInner) GetAddedOnOk() (*string, bool)` + +GetAddedOnOk returns a tuple with the AddedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddedOn + +`func (o *ESOrderReconResponseDataInner) SetAddedOn(v string)` + +SetAddedOn sets AddedOn field to given value. + +### HasAddedOn + +`func (o *ESOrderReconResponseDataInner) HasAddedOn() bool` + +HasAddedOn returns a boolean if a field has been set. + +### GetTags + +`func (o *ESOrderReconResponseDataInner) GetTags() string` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ESOrderReconResponseDataInner) GetTagsOk() (*string, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ESOrderReconResponseDataInner) SetTags(v string)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ESOrderReconResponseDataInner) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetEntityType + +`func (o *ESOrderReconResponseDataInner) GetEntityType() string` + +GetEntityType returns the EntityType field if non-nil, zero value otherwise. + +### GetEntityTypeOk + +`func (o *ESOrderReconResponseDataInner) GetEntityTypeOk() (*string, bool)` + +GetEntityTypeOk returns a tuple with the EntityType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntityType + +`func (o *ESOrderReconResponseDataInner) SetEntityType(v string)` + +SetEntityType sets EntityType field to given value. + +### HasEntityType + +`func (o *ESOrderReconResponseDataInner) HasEntityType() bool` + +HasEntityType returns a boolean if a field has been set. + +### GetSettlementInitiatedOn + +`func (o *ESOrderReconResponseDataInner) GetSettlementInitiatedOn() string` + +GetSettlementInitiatedOn returns the SettlementInitiatedOn field if non-nil, zero value otherwise. + +### GetSettlementInitiatedOnOk + +`func (o *ESOrderReconResponseDataInner) GetSettlementInitiatedOnOk() (*string, bool)` + +GetSettlementInitiatedOnOk returns a tuple with the SettlementInitiatedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSettlementInitiatedOn + +`func (o *ESOrderReconResponseDataInner) SetSettlementInitiatedOn(v string)` + +SetSettlementInitiatedOn sets SettlementInitiatedOn field to given value. + +### HasSettlementInitiatedOn + +`func (o *ESOrderReconResponseDataInner) HasSettlementInitiatedOn() bool` + +HasSettlementInitiatedOn returns a boolean if a field has been set. + +### GetSettlementTime + +`func (o *ESOrderReconResponseDataInner) GetSettlementTime() string` + +GetSettlementTime returns the SettlementTime field if non-nil, zero value otherwise. + +### GetSettlementTimeOk + +`func (o *ESOrderReconResponseDataInner) GetSettlementTimeOk() (*string, bool)` + +GetSettlementTimeOk returns a tuple with the SettlementTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSettlementTime + +`func (o *ESOrderReconResponseDataInner) SetSettlementTime(v string)` + +SetSettlementTime sets SettlementTime field to given value. + +### HasSettlementTime + +`func (o *ESOrderReconResponseDataInner) HasSettlementTime() bool` + +HasSettlementTime returns a boolean if a field has been set. + +### GetOrderSplits + +`func (o *ESOrderReconResponseDataInner) GetOrderSplits() []ESOrderReconResponseDataInnerOrderSplitsInner` + +GetOrderSplits returns the OrderSplits field if non-nil, zero value otherwise. + +### GetOrderSplitsOk + +`func (o *ESOrderReconResponseDataInner) GetOrderSplitsOk() (*[]ESOrderReconResponseDataInnerOrderSplitsInner, bool)` + +GetOrderSplitsOk returns a tuple with the OrderSplits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderSplits + +`func (o *ESOrderReconResponseDataInner) SetOrderSplits(v []ESOrderReconResponseDataInnerOrderSplitsInner)` + +SetOrderSplits sets OrderSplits field to given value. + +### HasOrderSplits + +`func (o *ESOrderReconResponseDataInner) HasOrderSplits() bool` + +HasOrderSplits returns a boolean if a field has been set. + +### GetEligibleSplitBalance + +`func (o *ESOrderReconResponseDataInner) GetEligibleSplitBalance() string` + +GetEligibleSplitBalance returns the EligibleSplitBalance field if non-nil, zero value otherwise. + +### GetEligibleSplitBalanceOk + +`func (o *ESOrderReconResponseDataInner) GetEligibleSplitBalanceOk() (*string, bool)` + +GetEligibleSplitBalanceOk returns a tuple with the EligibleSplitBalance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEligibleSplitBalance + +`func (o *ESOrderReconResponseDataInner) SetEligibleSplitBalance(v string)` + +SetEligibleSplitBalance sets EligibleSplitBalance field to given value. + +### HasEligibleSplitBalance + +`func (o *ESOrderReconResponseDataInner) HasEligibleSplitBalance() bool` + +HasEligibleSplitBalance returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ESOrderReconResponseDataInnerOrderSplitsInner.md b/docs/ESOrderReconResponseDataInnerOrderSplitsInner.md new file mode 100644 index 0000000..ba9aa4f --- /dev/null +++ b/docs/ESOrderReconResponseDataInnerOrderSplitsInner.md @@ -0,0 +1,82 @@ +# ESOrderReconResponseDataInnerOrderSplitsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Split** | Pointer to [**[]ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner**](ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner.md) | | [optional] +**CreatedAt** | Pointer to **string** | | [optional] + +## Methods + +### NewESOrderReconResponseDataInnerOrderSplitsInner + +`func NewESOrderReconResponseDataInnerOrderSplitsInner() *ESOrderReconResponseDataInnerOrderSplitsInner` + +NewESOrderReconResponseDataInnerOrderSplitsInner instantiates a new ESOrderReconResponseDataInnerOrderSplitsInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewESOrderReconResponseDataInnerOrderSplitsInnerWithDefaults + +`func NewESOrderReconResponseDataInnerOrderSplitsInnerWithDefaults() *ESOrderReconResponseDataInnerOrderSplitsInner` + +NewESOrderReconResponseDataInnerOrderSplitsInnerWithDefaults instantiates a new ESOrderReconResponseDataInnerOrderSplitsInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSplit + +`func (o *ESOrderReconResponseDataInnerOrderSplitsInner) GetSplit() []ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner` + +GetSplit returns the Split field if non-nil, zero value otherwise. + +### GetSplitOk + +`func (o *ESOrderReconResponseDataInnerOrderSplitsInner) GetSplitOk() (*[]ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner, bool)` + +GetSplitOk returns a tuple with the Split field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSplit + +`func (o *ESOrderReconResponseDataInnerOrderSplitsInner) SetSplit(v []ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner)` + +SetSplit sets Split field to given value. + +### HasSplit + +`func (o *ESOrderReconResponseDataInnerOrderSplitsInner) HasSplit() bool` + +HasSplit returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *ESOrderReconResponseDataInnerOrderSplitsInner) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *ESOrderReconResponseDataInnerOrderSplitsInner) GetCreatedAtOk() (*string, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *ESOrderReconResponseDataInnerOrderSplitsInner) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *ESOrderReconResponseDataInnerOrderSplitsInner) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner.md b/docs/ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner.md new file mode 100644 index 0000000..a4fd3ff --- /dev/null +++ b/docs/ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner.md @@ -0,0 +1,108 @@ +# ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MerchantVendorId** | Pointer to **string** | | [optional] +**Percentage** | Pointer to **float32** | | [optional] +**Tags** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewESOrderReconResponseDataInnerOrderSplitsInnerSplitInner + +`func NewESOrderReconResponseDataInnerOrderSplitsInnerSplitInner() *ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner` + +NewESOrderReconResponseDataInnerOrderSplitsInnerSplitInner instantiates a new ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewESOrderReconResponseDataInnerOrderSplitsInnerSplitInnerWithDefaults + +`func NewESOrderReconResponseDataInnerOrderSplitsInnerSplitInnerWithDefaults() *ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner` + +NewESOrderReconResponseDataInnerOrderSplitsInnerSplitInnerWithDefaults instantiates a new ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMerchantVendorId + +`func (o *ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner) GetMerchantVendorId() string` + +GetMerchantVendorId returns the MerchantVendorId field if non-nil, zero value otherwise. + +### GetMerchantVendorIdOk + +`func (o *ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner) GetMerchantVendorIdOk() (*string, bool)` + +GetMerchantVendorIdOk returns a tuple with the MerchantVendorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMerchantVendorId + +`func (o *ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner) SetMerchantVendorId(v string)` + +SetMerchantVendorId sets MerchantVendorId field to given value. + +### HasMerchantVendorId + +`func (o *ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner) HasMerchantVendorId() bool` + +HasMerchantVendorId returns a boolean if a field has been set. + +### GetPercentage + +`func (o *ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner) GetPercentage() float32` + +GetPercentage returns the Percentage field if non-nil, zero value otherwise. + +### GetPercentageOk + +`func (o *ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner) GetPercentageOk() (*float32, bool)` + +GetPercentageOk returns a tuple with the Percentage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPercentage + +`func (o *ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner) SetPercentage(v float32)` + +SetPercentage sets Percentage field to given value. + +### HasPercentage + +`func (o *ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner) HasPercentage() bool` + +HasPercentage returns a boolean if a field has been set. + +### GetTags + +`func (o *ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner) GetTags() map[string]interface{}` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner) GetTagsOk() (*map[string]interface{}, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner) SetTags(v map[string]interface{})` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner) HasTags() bool` + +HasTags returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EasySplitAPI.md b/docs/EasySplitAPI.md new file mode 100644 index 0000000..70b832e --- /dev/null +++ b/docs/EasySplitAPI.md @@ -0,0 +1,903 @@ +# \EasySplitAPI + +All URIs are relative to *https://sandbox.cashfree.com/pg* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**PGESCreateOnDemandTransfer**](EasySplitAPI.md#PGESCreateOnDemandTransfer) | **Post** /easy-split/vendors/{vendor_id}/transfer | Create On Demand Transfer +[**PGESCreateVendors**](EasySplitAPI.md#PGESCreateVendors) | **Post** /easy-split/vendors | Create vendor +[**PGESDownloadVendorsDocs**](EasySplitAPI.md#PGESDownloadVendorsDocs) | **Get** /easy-split/vendor-docs/{vendor_id}/download/{doc_type} | Download Vendor Documents +[**PGESFetchVendors**](EasySplitAPI.md#PGESFetchVendors) | **Get** /easy-split/vendors/{vendor_id} | Get Vendor All Details +[**PGESGetVendorBalance**](EasySplitAPI.md#PGESGetVendorBalance) | **Get** /easy-split/vendors/{vendor_id}/balances | Get On Demand Balance +[**PGESGetVendorBalanceTransferCharges**](EasySplitAPI.md#PGESGetVendorBalanceTransferCharges) | **Get** /easy-split/amount/{amount}/charges | Get Vendor Balance Transfer Charges +[**PGESGetVendorsDocs**](EasySplitAPI.md#PGESGetVendorsDocs) | **Get** /easy-split/vendor-docs/{vendor_id} | Get Vendor All Documents Status +[**PGESOrderRecon**](EasySplitAPI.md#PGESOrderRecon) | **Post** /split/order/vendor/recon | Get Split and Settlement Details by OrderID v2.0 +[**PGESUpdateVendors**](EasySplitAPI.md#PGESUpdateVendors) | **Patch** /easy-split/vendors/{vendor_id} | Update vendor Details +[**PGOrderSplitAfterPayment**](EasySplitAPI.md#PGOrderSplitAfterPayment) | **Post** /easy-split/orders/{order_id}/split | Split After Payment +[**PGOrderStaticSplit**](EasySplitAPI.md#PGOrderStaticSplit) | **Post** /easy-split/static-split | Create Static Split Configuration + + + +## PGESCreateOnDemandTransfer + +> AdjustVendorBalanceResponse PGESCreateOnDemandTransfer(ctx, vendorId).XApiVersion(xApiVersion).XRequestId(xRequestId).XIdempotencyKey(xIdempotencyKey).AdjustVendorBalanceRequest(adjustVendorBalanceRequest).Execute() + +Create On Demand Transfer + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + cashfree "github.com/cashfree/cashfree-pg/v4" +) + +func main() { + + clientId := "" + clientSecret := "" + cashfree.XClientId = &clientId + cashfree.XClientSecret = &clientSecret + cashfree.XEnvironment = cashfree.SANDBOX + + xApiVersion := "2023-08-01" + vendorId := "your-vendor-id" + xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" + xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" + adjustVendorBalanceRequest := *cashfree.NewAdjustVendorBalanceRequest("TransferFrom_example", "TransferType_example", float32(123)) + + resp, r, err := cashfree.PGESCreateOnDemandTransfer(&xApiVersion, &vendorId, &xRequestId, &xIdempotencyKey, &adjustVendorBalanceRequest, nil) + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `cashfree.PGESCreateOnDemandTransfer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PGESCreateOnDemandTransfer`: AdjustVendorBalanceResponse + fmt.Fprintf(os.Stdout, "Response from `cashfree.PGESCreateOnDemandTransfer`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**vendorId** | **string** | The id which uniquely identifies your vendor. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPGESCreateOnDemandTransferRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] + + **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **adjustVendorBalanceRequest** | [**AdjustVendorBalanceRequest**](AdjustVendorBalanceRequest.md) | Adjust Vendor Balance Request Body. | + +### Return type + +[**AdjustVendorBalanceResponse**](AdjustVendorBalanceResponse.md) + +### Authorization + +[XPartnerAPIKey](../README.md#XPartnerAPIKey), [XClientSecret](../README.md#XClientSecret), [XPartnerMerchantID](../README.md#XPartnerMerchantID), [XClientID](../README.md#XClientID), [XClientSignatureHeader](../README.md#XClientSignatureHeader) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PGESCreateVendors + +> CreateVendorResponse PGESCreateVendors(ctx).XApiVersion(xApiVersion).XRequestId(xRequestId).XIdempotencyKey(xIdempotencyKey).CreateVendorRequest(createVendorRequest).Execute() + +Create vendor + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + cashfree "github.com/cashfree/cashfree-pg/v4" +) + +func main() { + + clientId := "" + clientSecret := "" + cashfree.XClientId = &clientId + cashfree.XClientSecret = &clientSecret + cashfree.XEnvironment = cashfree.SANDBOX + + xApiVersion := "2023-08-01" + xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" + xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" + createVendorRequest := *cashfree.NewCreateVendorRequest("VendorId_example", "Status_example", "Name_example", "Email_example", "Phone_example", []cashfree.KycDetails{*cashfree.NewKycDetails()}) + + resp, r, err := cashfree.PGESCreateVendors(&xApiVersion, &xRequestId, &xIdempotencyKey, &createVendorRequest, nil) + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `cashfree.PGESCreateVendors``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PGESCreateVendors`: CreateVendorResponse + fmt.Fprintf(os.Stdout, "Response from `cashfree.PGESCreateVendors`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPGESCreateVendorsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] + **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **createVendorRequest** | [**CreateVendorRequest**](CreateVendorRequest.md) | Create Vendor Request Body. | + +### Return type + +[**CreateVendorResponse**](CreateVendorResponse.md) + +### Authorization + +[XPartnerAPIKey](../README.md#XPartnerAPIKey), [XClientSecret](../README.md#XClientSecret), [XPartnerMerchantID](../README.md#XPartnerMerchantID), [XClientID](../README.md#XClientID), [XClientSignatureHeader](../README.md#XClientSignatureHeader) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PGESDownloadVendorsDocs + +> VendorDocumentDownloadResponse PGESDownloadVendorsDocs(ctx, docType, vendorId).XRequestId(xRequestId).XIdempotencyKey(xIdempotencyKey).Execute() + +Download Vendor Documents + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + cashfree "github.com/cashfree/cashfree-pg/v4" +) + +func main() { + + clientId := "" + clientSecret := "" + cashfree.XClientId = &clientId + cashfree.XClientSecret = &clientSecret + cashfree.XEnvironment = cashfree.SANDBOX + + docType := "docType_example" + vendorId := "your-vendor-id" + xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" + xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" + + resp, r, err := cashfree.PGESDownloadVendorsDocs(&docType, &vendorId, &xRequestId, &xIdempotencyKey, nil) + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `cashfree.PGESDownloadVendorsDocs``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PGESDownloadVendorsDocs`: VendorDocumentDownloadResponse + fmt.Fprintf(os.Stdout, "Response from `cashfree.PGESDownloadVendorsDocs`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**docType** | **string** | Mention the document type that has to be downloaded. Only an uploaded document can be downloaded. | +**vendorId** | **string** | The id which uniquely identifies your vendor. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPGESDownloadVendorsDocsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + +### Return type + +[**VendorDocumentDownloadResponse**](VendorDocumentDownloadResponse.md) + +### Authorization + +[XPartnerAPIKey](../README.md#XPartnerAPIKey), [XClientSecret](../README.md#XClientSecret), [XPartnerMerchantID](../README.md#XPartnerMerchantID), [XClientID](../README.md#XClientID), [XClientSignatureHeader](../README.md#XClientSignatureHeader) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PGESFetchVendors + +> VendorEntity PGESFetchVendors(ctx, vendorId).XApiVersion(xApiVersion).XRequestId(xRequestId).XIdempotencyKey(xIdempotencyKey).Execute() + +Get Vendor All Details + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + cashfree "github.com/cashfree/cashfree-pg/v4" +) + +func main() { + + clientId := "" + clientSecret := "" + cashfree.XClientId = &clientId + cashfree.XClientSecret = &clientSecret + cashfree.XEnvironment = cashfree.SANDBOX + + xApiVersion := "2023-08-01" + vendorId := "your-vendor-id" + xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" + xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" + + resp, r, err := cashfree.PGESFetchVendors(&xApiVersion, &vendorId, &xRequestId, &xIdempotencyKey, nil) + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `cashfree.PGESFetchVendors``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PGESFetchVendors`: VendorEntity + fmt.Fprintf(os.Stdout, "Response from `cashfree.PGESFetchVendors`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**vendorId** | **string** | The id which uniquely identifies your vendor. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPGESFetchVendorsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] + + **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + +### Return type + +[**VendorEntity**](VendorEntity.md) + +### Authorization + +[XPartnerAPIKey](../README.md#XPartnerAPIKey), [XClientSecret](../README.md#XClientSecret), [XPartnerMerchantID](../README.md#XPartnerMerchantID), [XClientID](../README.md#XClientID), [XClientSignatureHeader](../README.md#XClientSignatureHeader) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PGESGetVendorBalance + +> VendorBalance PGESGetVendorBalance(ctx, vendorId).XApiVersion(xApiVersion).XRequestId(xRequestId).XIdempotencyKey(xIdempotencyKey).Execute() + +Get On Demand Balance + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + cashfree "github.com/cashfree/cashfree-pg/v4" +) + +func main() { + + clientId := "" + clientSecret := "" + cashfree.XClientId = &clientId + cashfree.XClientSecret = &clientSecret + cashfree.XEnvironment = cashfree.SANDBOX + + xApiVersion := "2023-08-01" + vendorId := "your-vendor-id" + xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" + xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" + + resp, r, err := cashfree.PGESGetVendorBalance(&xApiVersion, &vendorId, &xRequestId, &xIdempotencyKey, nil) + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `cashfree.PGESGetVendorBalance``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PGESGetVendorBalance`: VendorBalance + fmt.Fprintf(os.Stdout, "Response from `cashfree.PGESGetVendorBalance`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**vendorId** | **string** | The id which uniquely identifies your vendor. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPGESGetVendorBalanceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] + + **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + +### Return type + +[**VendorBalance**](VendorBalance.md) + +### Authorization + +[XPartnerAPIKey](../README.md#XPartnerAPIKey), [XClientSecret](../README.md#XClientSecret), [XPartnerMerchantID](../README.md#XPartnerMerchantID), [XClientID](../README.md#XClientID), [XClientSignatureHeader](../README.md#XClientSignatureHeader) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PGESGetVendorBalanceTransferCharges + +> VendorBalanceTransferCharges PGESGetVendorBalanceTransferCharges(ctx, amount).XApiVersion(xApiVersion).RateType(rateType).XRequestId(xRequestId).XIdempotencyKey(xIdempotencyKey).Execute() + +Get Vendor Balance Transfer Charges + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + cashfree "github.com/cashfree/cashfree-pg/v4" +) + +func main() { + + clientId := "" + clientSecret := "" + cashfree.XClientId = &clientId + cashfree.XClientSecret = &clientSecret + cashfree.XEnvironment = cashfree.SANDBOX + + xApiVersion := "2023-08-01" + amount := float32(1000) + rateType := "VENDOR_ON_DEMAND" + xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" + xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" + + resp, r, err := cashfree.PGESGetVendorBalanceTransferCharges(&xApiVersion, &amount, &rateType, &xRequestId, &xIdempotencyKey, nil) + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `cashfree.PGESGetVendorBalanceTransferCharges``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PGESGetVendorBalanceTransferCharges`: VendorBalanceTransferCharges + fmt.Fprintf(os.Stdout, "Response from `cashfree.PGESGetVendorBalanceTransferCharges`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**amount** | **float32** | Specify the amount for which you want to view the service charges and service taxes in the response. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPGESGetVendorBalanceTransferChargesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] + + **rateType** | **string** | Mention the type of rate for which you want to check the charges. Possible value: VENDOR_ON_DEMAND | + **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + +### Return type + +[**VendorBalanceTransferCharges**](VendorBalanceTransferCharges.md) + +### Authorization + +[XPartnerAPIKey](../README.md#XPartnerAPIKey), [XClientSecret](../README.md#XClientSecret), [XPartnerMerchantID](../README.md#XPartnerMerchantID), [XClientID](../README.md#XClientID), [XClientSignatureHeader](../README.md#XClientSignatureHeader) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PGESGetVendorsDocs + +> VendorDocumentsResponse PGESGetVendorsDocs(ctx, vendorId).XApiVersion(xApiVersion).XRequestId(xRequestId).XIdempotencyKey(xIdempotencyKey).Execute() + +Get Vendor All Documents Status + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + cashfree "github.com/cashfree/cashfree-pg/v4" +) + +func main() { + + clientId := "" + clientSecret := "" + cashfree.XClientId = &clientId + cashfree.XClientSecret = &clientSecret + cashfree.XEnvironment = cashfree.SANDBOX + + xApiVersion := "2023-08-01" + vendorId := "your-vendor-id" + xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" + xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" + + resp, r, err := cashfree.PGESGetVendorsDocs(&xApiVersion, &vendorId, &xRequestId, &xIdempotencyKey, nil) + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `cashfree.PGESGetVendorsDocs``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PGESGetVendorsDocs`: VendorDocumentsResponse + fmt.Fprintf(os.Stdout, "Response from `cashfree.PGESGetVendorsDocs`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**vendorId** | **string** | The id which uniquely identifies your vendor. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPGESGetVendorsDocsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] + + **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + +### Return type + +[**VendorDocumentsResponse**](VendorDocumentsResponse.md) + +### Authorization + +[XPartnerAPIKey](../README.md#XPartnerAPIKey), [XClientSecret](../README.md#XClientSecret), [XPartnerMerchantID](../README.md#XPartnerMerchantID), [XClientID](../README.md#XClientID), [XClientSignatureHeader](../README.md#XClientSignatureHeader) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PGESOrderRecon + +> ESOrderReconResponse PGESOrderRecon(ctx).XApiVersion(xApiVersion).XRequestId(xRequestId).XIdempotencyKey(xIdempotencyKey).ESOrderReconRequest(eSOrderReconRequest).Execute() + +Get Split and Settlement Details by OrderID v2.0 + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + cashfree "github.com/cashfree/cashfree-pg/v4" +) + +func main() { + + clientId := "" + clientSecret := "" + cashfree.XClientId = &clientId + cashfree.XClientSecret = &clientSecret + cashfree.XEnvironment = cashfree.SANDBOX + + xApiVersion := "2023-08-01" + xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" + xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" + eSOrderReconRequest := *cashfree.NewESOrderReconRequest(*cashfree.NewESOrderReconRequestFilters(), *cashfree.NewESOrderReconRequestPagination()) + + resp, r, err := cashfree.PGESOrderRecon(&xApiVersion, &xRequestId, &xIdempotencyKey, &eSOrderReconRequest, nil) + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `cashfree.PGESOrderRecon``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PGESOrderRecon`: ESOrderReconResponse + fmt.Fprintf(os.Stdout, "Response from `cashfree.PGESOrderRecon`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPGESOrderReconRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] + **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **eSOrderReconRequest** | [**ESOrderReconRequest**](ESOrderReconRequest.md) | Get Split and Settlement Details by OrderID v2.0 | + +### Return type + +[**ESOrderReconResponse**](ESOrderReconResponse.md) + +### Authorization + +[XPartnerAPIKey](../README.md#XPartnerAPIKey), [XClientSecret](../README.md#XClientSecret), [XPartnerMerchantID](../README.md#XPartnerMerchantID), [XClientID](../README.md#XClientID), [XClientSignatureHeader](../README.md#XClientSignatureHeader) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PGESUpdateVendors + +> UpdateVendorResponse PGESUpdateVendors(ctx, vendorId).XApiVersion(xApiVersion).UpdateVendorRequest(updateVendorRequest).Execute() + +Update vendor Details + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + cashfree "github.com/cashfree/cashfree-pg/v4" +) + +func main() { + + clientId := "" + clientSecret := "" + cashfree.XClientId = &clientId + cashfree.XClientSecret = &clientSecret + cashfree.XEnvironment = cashfree.SANDBOX + + xApiVersion := "2023-08-01" + vendorId := "your-vendor-id" + updateVendorRequest := *cashfree.NewUpdateVendorRequest("Status_example", "Name_example", "Email_example", "Phone_example", float32(123), []cashfree.KycDetails{*cashfree.NewKycDetails()}) + + resp, r, err := cashfree.PGESUpdateVendors(&xApiVersion, &vendorId, &updateVendorRequest, nil) + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `cashfree.PGESUpdateVendors``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PGESUpdateVendors`: UpdateVendorResponse + fmt.Fprintf(os.Stdout, "Response from `cashfree.PGESUpdateVendors`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**vendorId** | **string** | The id which uniquely identifies your vendor. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPGESUpdateVendorsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] + + **updateVendorRequest** | [**UpdateVendorRequest**](UpdateVendorRequest.md) | Create Vendor Request Body. | + +### Return type + +[**UpdateVendorResponse**](UpdateVendorResponse.md) + +### Authorization + +[XPartnerAPIKey](../README.md#XPartnerAPIKey), [XClientSecret](../README.md#XClientSecret), [XPartnerMerchantID](../README.md#XPartnerMerchantID), [XClientID](../README.md#XClientID), [XClientSignatureHeader](../README.md#XClientSignatureHeader) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PGOrderSplitAfterPayment + +> SplitAfterPaymentResponse PGOrderSplitAfterPayment(ctx, orderId).XApiVersion(xApiVersion).XRequestId(xRequestId).XIdempotencyKey(xIdempotencyKey).SplitAfterPaymentRequest(splitAfterPaymentRequest).Execute() + +Split After Payment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + cashfree "github.com/cashfree/cashfree-pg/v4" +) + +func main() { + + clientId := "" + clientSecret := "" + cashfree.XClientId = &clientId + cashfree.XClientSecret = &clientSecret + cashfree.XEnvironment = cashfree.SANDBOX + + xApiVersion := "2023-08-01" + orderId := "your-order-id" + xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" + xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" + splitAfterPaymentRequest := *cashfree.NewSplitAfterPaymentRequest([]cashfree.SplitAfterPaymentRequestSplitInner{*cashfree.NewSplitAfterPaymentRequestSplitInner()}) + + resp, r, err := cashfree.PGOrderSplitAfterPayment(&xApiVersion, &orderId, &xRequestId, &xIdempotencyKey, &splitAfterPaymentRequest, nil) + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `cashfree.PGOrderSplitAfterPayment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PGOrderSplitAfterPayment`: SplitAfterPaymentResponse + fmt.Fprintf(os.Stdout, "Response from `cashfree.PGOrderSplitAfterPayment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | **string** | The id which uniquely identifies your order | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPGOrderSplitAfterPaymentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] + + **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **splitAfterPaymentRequest** | [**SplitAfterPaymentRequest**](SplitAfterPaymentRequest.md) | Request Body to Create Split for an order. | + +### Return type + +[**SplitAfterPaymentResponse**](SplitAfterPaymentResponse.md) + +### Authorization + +[XPartnerAPIKey](../README.md#XPartnerAPIKey), [XClientSecret](../README.md#XClientSecret), [XPartnerMerchantID](../README.md#XPartnerMerchantID), [XClientID](../README.md#XClientID), [XClientSignatureHeader](../README.md#XClientSignatureHeader) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PGOrderStaticSplit + +> StaticSplitResponse PGOrderStaticSplit(ctx).XApiVersion(xApiVersion).XRequestId(xRequestId).XIdempotencyKey(xIdempotencyKey).StaticSplitRequest(staticSplitRequest).Execute() + +Create Static Split Configuration + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + cashfree "github.com/cashfree/cashfree-pg/v4" +) + +func main() { + + clientId := "" + clientSecret := "" + cashfree.XClientId = &clientId + cashfree.XClientSecret = &clientSecret + cashfree.XEnvironment = cashfree.SANDBOX + + xApiVersion := "2023-08-01" + xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" + xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" + staticSplitRequest := *cashfree.NewStaticSplitRequest(false, "ProductType_example", []cashfree.StaticSplitRequestSchemeInner{*cashfree.NewStaticSplitRequestSchemeInner()}) + + resp, r, err := cashfree.PGOrderStaticSplit(&xApiVersion, &xRequestId, &xIdempotencyKey, &staticSplitRequest, nil) + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `cashfree.PGOrderStaticSplit``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PGOrderStaticSplit`: StaticSplitResponse + fmt.Fprintf(os.Stdout, "Response from `cashfree.PGOrderStaticSplit`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPGOrderStaticSplitRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] + **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + **staticSplitRequest** | [**StaticSplitRequest**](StaticSplitRequest.md) | Static Split | + +### Return type + +[**StaticSplitResponse**](StaticSplitResponse.md) + +### Authorization + +[XPartnerAPIKey](../README.md#XPartnerAPIKey), [XClientSecret](../README.md#XClientSecret), [XPartnerMerchantID](../README.md#XPartnerMerchantID), [XClientID](../README.md#XClientID), [XClientSignatureHeader](../README.md#XClientSignatureHeader) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/KycDetails.md b/docs/KycDetails.md new file mode 100644 index 0000000..2515584 --- /dev/null +++ b/docs/KycDetails.md @@ -0,0 +1,264 @@ +# KycDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountType** | Pointer to **string** | | [optional] +**BusinessType** | Pointer to **string** | | [optional] +**Uidai** | Pointer to **float32** | | [optional] +**Gst** | Pointer to **string** | | [optional] +**Cin** | Pointer to **string** | | [optional] +**Pan** | Pointer to **string** | | [optional] +**PassportNumber** | Pointer to **string** | | [optional] +**DrivingLicense** | Pointer to **string** | | [optional] +**VoterId** | Pointer to **string** | | [optional] + +## Methods + +### NewKycDetails + +`func NewKycDetails() *KycDetails` + +NewKycDetails instantiates a new KycDetails object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewKycDetailsWithDefaults + +`func NewKycDetailsWithDefaults() *KycDetails` + +NewKycDetailsWithDefaults instantiates a new KycDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountType + +`func (o *KycDetails) GetAccountType() string` + +GetAccountType returns the AccountType field if non-nil, zero value otherwise. + +### GetAccountTypeOk + +`func (o *KycDetails) GetAccountTypeOk() (*string, bool)` + +GetAccountTypeOk returns a tuple with the AccountType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountType + +`func (o *KycDetails) SetAccountType(v string)` + +SetAccountType sets AccountType field to given value. + +### HasAccountType + +`func (o *KycDetails) HasAccountType() bool` + +HasAccountType returns a boolean if a field has been set. + +### GetBusinessType + +`func (o *KycDetails) GetBusinessType() string` + +GetBusinessType returns the BusinessType field if non-nil, zero value otherwise. + +### GetBusinessTypeOk + +`func (o *KycDetails) GetBusinessTypeOk() (*string, bool)` + +GetBusinessTypeOk returns a tuple with the BusinessType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBusinessType + +`func (o *KycDetails) SetBusinessType(v string)` + +SetBusinessType sets BusinessType field to given value. + +### HasBusinessType + +`func (o *KycDetails) HasBusinessType() bool` + +HasBusinessType returns a boolean if a field has been set. + +### GetUidai + +`func (o *KycDetails) GetUidai() float32` + +GetUidai returns the Uidai field if non-nil, zero value otherwise. + +### GetUidaiOk + +`func (o *KycDetails) GetUidaiOk() (*float32, bool)` + +GetUidaiOk returns a tuple with the Uidai field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUidai + +`func (o *KycDetails) SetUidai(v float32)` + +SetUidai sets Uidai field to given value. + +### HasUidai + +`func (o *KycDetails) HasUidai() bool` + +HasUidai returns a boolean if a field has been set. + +### GetGst + +`func (o *KycDetails) GetGst() string` + +GetGst returns the Gst field if non-nil, zero value otherwise. + +### GetGstOk + +`func (o *KycDetails) GetGstOk() (*string, bool)` + +GetGstOk returns a tuple with the Gst field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGst + +`func (o *KycDetails) SetGst(v string)` + +SetGst sets Gst field to given value. + +### HasGst + +`func (o *KycDetails) HasGst() bool` + +HasGst returns a boolean if a field has been set. + +### GetCin + +`func (o *KycDetails) GetCin() string` + +GetCin returns the Cin field if non-nil, zero value otherwise. + +### GetCinOk + +`func (o *KycDetails) GetCinOk() (*string, bool)` + +GetCinOk returns a tuple with the Cin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCin + +`func (o *KycDetails) SetCin(v string)` + +SetCin sets Cin field to given value. + +### HasCin + +`func (o *KycDetails) HasCin() bool` + +HasCin returns a boolean if a field has been set. + +### GetPan + +`func (o *KycDetails) GetPan() string` + +GetPan returns the Pan field if non-nil, zero value otherwise. + +### GetPanOk + +`func (o *KycDetails) GetPanOk() (*string, bool)` + +GetPanOk returns a tuple with the Pan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPan + +`func (o *KycDetails) SetPan(v string)` + +SetPan sets Pan field to given value. + +### HasPan + +`func (o *KycDetails) HasPan() bool` + +HasPan returns a boolean if a field has been set. + +### GetPassportNumber + +`func (o *KycDetails) GetPassportNumber() string` + +GetPassportNumber returns the PassportNumber field if non-nil, zero value otherwise. + +### GetPassportNumberOk + +`func (o *KycDetails) GetPassportNumberOk() (*string, bool)` + +GetPassportNumberOk returns a tuple with the PassportNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassportNumber + +`func (o *KycDetails) SetPassportNumber(v string)` + +SetPassportNumber sets PassportNumber field to given value. + +### HasPassportNumber + +`func (o *KycDetails) HasPassportNumber() bool` + +HasPassportNumber returns a boolean if a field has been set. + +### GetDrivingLicense + +`func (o *KycDetails) GetDrivingLicense() string` + +GetDrivingLicense returns the DrivingLicense field if non-nil, zero value otherwise. + +### GetDrivingLicenseOk + +`func (o *KycDetails) GetDrivingLicenseOk() (*string, bool)` + +GetDrivingLicenseOk returns a tuple with the DrivingLicense field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDrivingLicense + +`func (o *KycDetails) SetDrivingLicense(v string)` + +SetDrivingLicense sets DrivingLicense field to given value. + +### HasDrivingLicense + +`func (o *KycDetails) HasDrivingLicense() bool` + +HasDrivingLicense returns a boolean if a field has been set. + +### GetVoterId + +`func (o *KycDetails) GetVoterId() string` + +GetVoterId returns the VoterId field if non-nil, zero value otherwise. + +### GetVoterIdOk + +`func (o *KycDetails) GetVoterIdOk() (*string, bool)` + +GetVoterIdOk returns a tuple with the VoterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVoterId + +`func (o *KycDetails) SetVoterId(v string)` + +SetVoterId sets VoterId field to given value. + +### HasVoterId + +`func (o *KycDetails) HasVoterId() bool` + +HasVoterId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/LinkEntity.md b/docs/LinkEntity.md index 21426d8..074bf4c 100644 --- a/docs/LinkEntity.md +++ b/docs/LinkEntity.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **LinkNotes** | Pointer to **map[string]string** | Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs | [optional] **LinkAutoReminders** | Pointer to **bool** | | [optional] **LinkNotify** | Pointer to [**LinkNotifyEntity**](LinkNotifyEntity.md) | | [optional] +**LinkQrcode** | Pointer to **string** | Base64 encoded string for payment link. You can scan with camera to open a link in the browser to complete the payment. | [optional] ## Methods @@ -466,6 +467,31 @@ SetLinkNotify sets LinkNotify field to given value. HasLinkNotify returns a boolean if a field has been set. +### GetLinkQrcode + +`func (o *LinkEntity) GetLinkQrcode() string` + +GetLinkQrcode returns the LinkQrcode field if non-nil, zero value otherwise. + +### GetLinkQrcodeOk + +`func (o *LinkEntity) GetLinkQrcodeOk() (*string, bool)` + +GetLinkQrcodeOk returns a tuple with the LinkQrcode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkQrcode + +`func (o *LinkEntity) SetLinkQrcode(v string)` + +SetLinkQrcode sets LinkQrcode field to given value. + +### HasLinkQrcode + +`func (o *LinkEntity) HasLinkQrcode() bool` + +HasLinkQrcode returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/OfferValidations.md b/docs/OfferValidations.md index a87c342..25b1a7e 100644 --- a/docs/OfferValidations.md +++ b/docs/OfferValidations.md @@ -5,13 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **MinAmount** | Pointer to **float32** | Minimum Amount for Offer to be Applicable | [optional] +**MaxAllowed** | **float32** | Maximum Amount for Offer to be Applicable | **PaymentMethod** | [**OfferValidationsPaymentMethod**](OfferValidationsPaymentMethod.md) | | ## Methods ### NewOfferValidations -`func NewOfferValidations(paymentMethod OfferValidationsPaymentMethod, ) *OfferValidations` +`func NewOfferValidations(maxAllowed float32, paymentMethod OfferValidationsPaymentMethod, ) *OfferValidations` NewOfferValidations instantiates a new OfferValidations object This constructor will assign default values to properties that have it defined, @@ -51,6 +52,26 @@ SetMinAmount sets MinAmount field to given value. HasMinAmount returns a boolean if a field has been set. +### GetMaxAllowed + +`func (o *OfferValidations) GetMaxAllowed() float32` + +GetMaxAllowed returns the MaxAllowed field if non-nil, zero value otherwise. + +### GetMaxAllowedOk + +`func (o *OfferValidations) GetMaxAllowedOk() (*float32, bool)` + +GetMaxAllowedOk returns a tuple with the MaxAllowed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxAllowed + +`func (o *OfferValidations) SetMaxAllowed(v float32)` + +SetMaxAllowed sets MaxAllowed field to given value. + + ### GetPaymentMethod `func (o *OfferValidations) GetPaymentMethod() OfferValidationsPaymentMethod` diff --git a/docs/OffersAPI.md b/docs/OffersAPI.md index 9daef47..f1b61f8 100644 --- a/docs/OffersAPI.md +++ b/docs/OffersAPI.md @@ -38,7 +38,7 @@ func main() { cashfree.XEnvironment = cashfree.SANDBOX xApiVersion := "2023-08-01" - createOfferRequest := *cashfree.NewCreateOfferRequest(*cashfree.NewOfferMeta("Test Offer", "Lorem ipsum dolor sit amet, consectetur adipiscing elit", "CFTESTOFFER", "2023-03-21T08:09:51Z", "2023-03-29T08:09:51Z"), *cashfree.NewOfferTnc("text", "Lorem ipsum dolor sit amet, consectetur adipiscing elit"), *cashfree.NewOfferDetails("DISCOUNT_AND_CASHBACK"), *cashfree.NewOfferValidations(cashfree.OfferValidations_payment_method{OfferAll: cashfree.NewOfferAll(map[string]interface{}(123))})) + createOfferRequest := *cashfree.NewCreateOfferRequest(*cashfree.NewOfferMeta("Test Offer", "Lorem ipsum dolor sit amet, consectetur adipiscing elit", "CFTESTOFFER", "2023-03-21T08:09:51Z", "2023-03-29T08:09:51Z"), *cashfree.NewOfferTnc("text", "Lorem ipsum dolor sit amet, consectetur adipiscing elit"), *cashfree.NewOfferDetails("DISCOUNT_AND_CASHBACK"), *cashfree.NewOfferValidations(float32(1), cashfree.OfferValidations_payment_method{OfferAll: cashfree.NewOfferAll(map[string]interface{}(123))})) xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" diff --git a/docs/PayOrderRequestPaymentMethod.md b/docs/PayOrderRequestPaymentMethod.md index fb640b7..e40d5b4 100644 --- a/docs/PayOrderRequestPaymentMethod.md +++ b/docs/PayOrderRequestPaymentMethod.md @@ -11,12 +11,13 @@ Name | Type | Description | Notes **Emi** | [**CardEMI**](CardEMI.md) | | **CardlessEmi** | [**CardlessEMI**](CardlessEMI.md) | | **Paylater** | [**Paylater**](Paylater.md) | | +**Banktransfer** | [**Banktransfer**](Banktransfer.md) | | ## Methods ### NewPayOrderRequestPaymentMethod -`func NewPayOrderRequestPaymentMethod(card Card, upi Upi, netbanking Netbanking, app App, emi CardEMI, cardlessEmi CardlessEMI, paylater Paylater, ) *PayOrderRequestPaymentMethod` +`func NewPayOrderRequestPaymentMethod(card Card, upi Upi, netbanking Netbanking, app App, emi CardEMI, cardlessEmi CardlessEMI, paylater Paylater, banktransfer Banktransfer, ) *PayOrderRequestPaymentMethod` NewPayOrderRequestPaymentMethod instantiates a new PayOrderRequestPaymentMethod object This constructor will assign default values to properties that have it defined, @@ -171,6 +172,26 @@ and a boolean to check if the value has been set. SetPaylater sets Paylater field to given value. +### GetBanktransfer + +`func (o *PayOrderRequestPaymentMethod) GetBanktransfer() Banktransfer` + +GetBanktransfer returns the Banktransfer field if non-nil, zero value otherwise. + +### GetBanktransferOk + +`func (o *PayOrderRequestPaymentMethod) GetBanktransferOk() (*Banktransfer, bool)` + +GetBanktransferOk returns a tuple with the Banktransfer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanktransfer + +`func (o *PayOrderRequestPaymentMethod) SetBanktransfer(v Banktransfer)` + +SetBanktransfer sets Banktransfer field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentEntityPaymentMethod.md b/docs/PaymentEntityPaymentMethod.md index 83e0733..cc0a225 100644 --- a/docs/PaymentEntityPaymentMethod.md +++ b/docs/PaymentEntityPaymentMethod.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **CardlessEmi** | Pointer to [**PaymentMethodAppInPaymentsEntityApp**](PaymentMethodAppInPaymentsEntityApp.md) | | [optional] **Paylater** | Pointer to [**PaymentMethodAppInPaymentsEntityApp**](PaymentMethodAppInPaymentsEntityApp.md) | | [optional] **Emi** | Pointer to [**PaymentMethodCardEMIInPaymentsEntityEmi**](PaymentMethodCardEMIInPaymentsEntityEmi.md) | | [optional] +**Banktransfer** | Pointer to [**PaymentMethodBankTransferInPaymentsEntityBanktransfer**](PaymentMethodBankTransferInPaymentsEntityBanktransfer.md) | | [optional] ## Methods @@ -206,6 +207,31 @@ SetEmi sets Emi field to given value. HasEmi returns a boolean if a field has been set. +### GetBanktransfer + +`func (o *PaymentEntityPaymentMethod) GetBanktransfer() PaymentMethodBankTransferInPaymentsEntityBanktransfer` + +GetBanktransfer returns the Banktransfer field if non-nil, zero value otherwise. + +### GetBanktransferOk + +`func (o *PaymentEntityPaymentMethod) GetBanktransferOk() (*PaymentMethodBankTransferInPaymentsEntityBanktransfer, bool)` + +GetBanktransferOk returns a tuple with the Banktransfer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanktransfer + +`func (o *PaymentEntityPaymentMethod) SetBanktransfer(v PaymentMethodBankTransferInPaymentsEntityBanktransfer)` + +SetBanktransfer sets Banktransfer field to given value. + +### HasBanktransfer + +`func (o *PaymentEntityPaymentMethod) HasBanktransfer() bool` + +HasBanktransfer returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PaymentMethodBankTransferInPaymentsEntity.md b/docs/PaymentMethodBankTransferInPaymentsEntity.md new file mode 100644 index 0000000..fa7928e --- /dev/null +++ b/docs/PaymentMethodBankTransferInPaymentsEntity.md @@ -0,0 +1,56 @@ +# PaymentMethodBankTransferInPaymentsEntity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Banktransfer** | Pointer to [**PaymentMethodBankTransferInPaymentsEntityBanktransfer**](PaymentMethodBankTransferInPaymentsEntityBanktransfer.md) | | [optional] + +## Methods + +### NewPaymentMethodBankTransferInPaymentsEntity + +`func NewPaymentMethodBankTransferInPaymentsEntity() *PaymentMethodBankTransferInPaymentsEntity` + +NewPaymentMethodBankTransferInPaymentsEntity instantiates a new PaymentMethodBankTransferInPaymentsEntity object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaymentMethodBankTransferInPaymentsEntityWithDefaults + +`func NewPaymentMethodBankTransferInPaymentsEntityWithDefaults() *PaymentMethodBankTransferInPaymentsEntity` + +NewPaymentMethodBankTransferInPaymentsEntityWithDefaults instantiates a new PaymentMethodBankTransferInPaymentsEntity object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBanktransfer + +`func (o *PaymentMethodBankTransferInPaymentsEntity) GetBanktransfer() PaymentMethodBankTransferInPaymentsEntityBanktransfer` + +GetBanktransfer returns the Banktransfer field if non-nil, zero value otherwise. + +### GetBanktransferOk + +`func (o *PaymentMethodBankTransferInPaymentsEntity) GetBanktransferOk() (*PaymentMethodBankTransferInPaymentsEntityBanktransfer, bool)` + +GetBanktransferOk returns a tuple with the Banktransfer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanktransfer + +`func (o *PaymentMethodBankTransferInPaymentsEntity) SetBanktransfer(v PaymentMethodBankTransferInPaymentsEntityBanktransfer)` + +SetBanktransfer sets Banktransfer field to given value. + +### HasBanktransfer + +`func (o *PaymentMethodBankTransferInPaymentsEntity) HasBanktransfer() bool` + +HasBanktransfer returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaymentMethodBankTransferInPaymentsEntityBanktransfer.md b/docs/PaymentMethodBankTransferInPaymentsEntityBanktransfer.md new file mode 100644 index 0000000..8ff60c3 --- /dev/null +++ b/docs/PaymentMethodBankTransferInPaymentsEntityBanktransfer.md @@ -0,0 +1,134 @@ +# PaymentMethodBankTransferInPaymentsEntityBanktransfer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Channel** | Pointer to **string** | | [optional] +**BanktransferBankName** | Pointer to **string** | | [optional] +**BanktransferIfsc** | Pointer to **string** | | [optional] +**BanktransferAccountNumber** | Pointer to **string** | | [optional] + +## Methods + +### NewPaymentMethodBankTransferInPaymentsEntityBanktransfer + +`func NewPaymentMethodBankTransferInPaymentsEntityBanktransfer() *PaymentMethodBankTransferInPaymentsEntityBanktransfer` + +NewPaymentMethodBankTransferInPaymentsEntityBanktransfer instantiates a new PaymentMethodBankTransferInPaymentsEntityBanktransfer object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaymentMethodBankTransferInPaymentsEntityBanktransferWithDefaults + +`func NewPaymentMethodBankTransferInPaymentsEntityBanktransferWithDefaults() *PaymentMethodBankTransferInPaymentsEntityBanktransfer` + +NewPaymentMethodBankTransferInPaymentsEntityBanktransferWithDefaults instantiates a new PaymentMethodBankTransferInPaymentsEntityBanktransfer object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetChannel + +`func (o *PaymentMethodBankTransferInPaymentsEntityBanktransfer) GetChannel() string` + +GetChannel returns the Channel field if non-nil, zero value otherwise. + +### GetChannelOk + +`func (o *PaymentMethodBankTransferInPaymentsEntityBanktransfer) GetChannelOk() (*string, bool)` + +GetChannelOk returns a tuple with the Channel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChannel + +`func (o *PaymentMethodBankTransferInPaymentsEntityBanktransfer) SetChannel(v string)` + +SetChannel sets Channel field to given value. + +### HasChannel + +`func (o *PaymentMethodBankTransferInPaymentsEntityBanktransfer) HasChannel() bool` + +HasChannel returns a boolean if a field has been set. + +### GetBanktransferBankName + +`func (o *PaymentMethodBankTransferInPaymentsEntityBanktransfer) GetBanktransferBankName() string` + +GetBanktransferBankName returns the BanktransferBankName field if non-nil, zero value otherwise. + +### GetBanktransferBankNameOk + +`func (o *PaymentMethodBankTransferInPaymentsEntityBanktransfer) GetBanktransferBankNameOk() (*string, bool)` + +GetBanktransferBankNameOk returns a tuple with the BanktransferBankName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanktransferBankName + +`func (o *PaymentMethodBankTransferInPaymentsEntityBanktransfer) SetBanktransferBankName(v string)` + +SetBanktransferBankName sets BanktransferBankName field to given value. + +### HasBanktransferBankName + +`func (o *PaymentMethodBankTransferInPaymentsEntityBanktransfer) HasBanktransferBankName() bool` + +HasBanktransferBankName returns a boolean if a field has been set. + +### GetBanktransferIfsc + +`func (o *PaymentMethodBankTransferInPaymentsEntityBanktransfer) GetBanktransferIfsc() string` + +GetBanktransferIfsc returns the BanktransferIfsc field if non-nil, zero value otherwise. + +### GetBanktransferIfscOk + +`func (o *PaymentMethodBankTransferInPaymentsEntityBanktransfer) GetBanktransferIfscOk() (*string, bool)` + +GetBanktransferIfscOk returns a tuple with the BanktransferIfsc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanktransferIfsc + +`func (o *PaymentMethodBankTransferInPaymentsEntityBanktransfer) SetBanktransferIfsc(v string)` + +SetBanktransferIfsc sets BanktransferIfsc field to given value. + +### HasBanktransferIfsc + +`func (o *PaymentMethodBankTransferInPaymentsEntityBanktransfer) HasBanktransferIfsc() bool` + +HasBanktransferIfsc returns a boolean if a field has been set. + +### GetBanktransferAccountNumber + +`func (o *PaymentMethodBankTransferInPaymentsEntityBanktransfer) GetBanktransferAccountNumber() string` + +GetBanktransferAccountNumber returns the BanktransferAccountNumber field if non-nil, zero value otherwise. + +### GetBanktransferAccountNumberOk + +`func (o *PaymentMethodBankTransferInPaymentsEntityBanktransfer) GetBanktransferAccountNumberOk() (*string, bool)` + +GetBanktransferAccountNumberOk returns a tuple with the BanktransferAccountNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBanktransferAccountNumber + +`func (o *PaymentMethodBankTransferInPaymentsEntityBanktransfer) SetBanktransferAccountNumber(v string)` + +SetBanktransferAccountNumber sets BanktransferAccountNumber field to given value. + +### HasBanktransferAccountNumber + +`func (o *PaymentMethodBankTransferInPaymentsEntityBanktransfer) HasBanktransferAccountNumber() bool` + +HasBanktransferAccountNumber returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ScheduleOption.md b/docs/ScheduleOption.md new file mode 100644 index 0000000..3b4302e --- /dev/null +++ b/docs/ScheduleOption.md @@ -0,0 +1,108 @@ +# ScheduleOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SettlementScheduleMessage** | Pointer to **string** | | [optional] +**ScheduleId** | Pointer to **float32** | | [optional] +**MerchantDefault** | Pointer to **bool** | | [optional] + +## Methods + +### NewScheduleOption + +`func NewScheduleOption() *ScheduleOption` + +NewScheduleOption instantiates a new ScheduleOption object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewScheduleOptionWithDefaults + +`func NewScheduleOptionWithDefaults() *ScheduleOption` + +NewScheduleOptionWithDefaults instantiates a new ScheduleOption object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSettlementScheduleMessage + +`func (o *ScheduleOption) GetSettlementScheduleMessage() string` + +GetSettlementScheduleMessage returns the SettlementScheduleMessage field if non-nil, zero value otherwise. + +### GetSettlementScheduleMessageOk + +`func (o *ScheduleOption) GetSettlementScheduleMessageOk() (*string, bool)` + +GetSettlementScheduleMessageOk returns a tuple with the SettlementScheduleMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSettlementScheduleMessage + +`func (o *ScheduleOption) SetSettlementScheduleMessage(v string)` + +SetSettlementScheduleMessage sets SettlementScheduleMessage field to given value. + +### HasSettlementScheduleMessage + +`func (o *ScheduleOption) HasSettlementScheduleMessage() bool` + +HasSettlementScheduleMessage returns a boolean if a field has been set. + +### GetScheduleId + +`func (o *ScheduleOption) GetScheduleId() float32` + +GetScheduleId returns the ScheduleId field if non-nil, zero value otherwise. + +### GetScheduleIdOk + +`func (o *ScheduleOption) GetScheduleIdOk() (*float32, bool)` + +GetScheduleIdOk returns a tuple with the ScheduleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheduleId + +`func (o *ScheduleOption) SetScheduleId(v float32)` + +SetScheduleId sets ScheduleId field to given value. + +### HasScheduleId + +`func (o *ScheduleOption) HasScheduleId() bool` + +HasScheduleId returns a boolean if a field has been set. + +### GetMerchantDefault + +`func (o *ScheduleOption) GetMerchantDefault() bool` + +GetMerchantDefault returns the MerchantDefault field if non-nil, zero value otherwise. + +### GetMerchantDefaultOk + +`func (o *ScheduleOption) GetMerchantDefaultOk() (*bool, bool)` + +GetMerchantDefaultOk returns a tuple with the MerchantDefault field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMerchantDefault + +`func (o *ScheduleOption) SetMerchantDefault(v bool)` + +SetMerchantDefault sets MerchantDefault field to given value. + +### HasMerchantDefault + +`func (o *ScheduleOption) HasMerchantDefault() bool` + +HasMerchantDefault returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SoftPOSAPI.md b/docs/SoftPOSAPI.md index 696b94d..85f7382 100644 --- a/docs/SoftPOSAPI.md +++ b/docs/SoftPOSAPI.md @@ -8,8 +8,9 @@ Method | HTTP request | Description [**SposCreateTerminalTransaction**](SoftPOSAPI.md#SposCreateTerminalTransaction) | **Post** /terminal/transactions | Create Terminal Transaction [**SposFetchTerminal**](SoftPOSAPI.md#SposFetchTerminal) | **Get** /terminal/{terminal_phone_no} | Get Terminal Status using Phone Number [**SposFetchTerminalQRCodes**](SoftPOSAPI.md#SposFetchTerminalQRCodes) | **Get** /terminal/qrcodes | Fetch Terminal QR Codes +[**SposFetchTerminalTransaction**](SoftPOSAPI.md#SposFetchTerminalTransaction) | **Get** /terminal/{cf_terminal_id}/payments | Get Terminal Transaction [**SposUpdateTerminal**](SoftPOSAPI.md#SposUpdateTerminal) | **Patch** /terminal/{cf_terminal_id} | Update Terminal -[**SposUpdateTerminalStatus**](SoftPOSAPI.md#SposUpdateTerminalStatus) | **Patch** /terminal/{cf_terminal_id}/status | Update Terminal Sttus +[**SposUpdateTerminalStatus**](SoftPOSAPI.md#SposUpdateTerminalStatus) | **Patch** /terminal/{cf_terminal_id}/status | Update Terminal Status [**SposUploadTerminalDocs**](SoftPOSAPI.md#SposUploadTerminalDocs) | **Post** /terminal/{cf_terminal_id}/docs | Upload Terminal Docs @@ -328,6 +329,89 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## SposFetchTerminalTransaction + +> TerminalPaymentEntity SposFetchTerminalTransaction(ctx, cfTerminalId).XApiVersion(xApiVersion).Utr(utr).XRequestId(xRequestId).XIdempotencyKey(xIdempotencyKey).Execute() + +Get Terminal Transaction + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + cashfree "github.com/cashfree/cashfree-pg/v4" +) + +func main() { + + clientId := "" + clientSecret := "" + cashfree.XClientId = &clientId + cashfree.XClientSecret = &clientSecret + cashfree.XEnvironment = cashfree.SANDBOX + + xApiVersion := "2023-08-01" + utr := "testUTR001" + cfTerminalId := "123344" + xRequestId := "4dfb9780-46fe-11ee-be56-0242ac120002" + xIdempotencyKey := "47bf8872-46fe-11ee-be56-0242ac120002" + + resp, r, err := cashfree.SposFetchTerminalTransaction(&xApiVersion, &utr, &cfTerminalId, &xRequestId, &xIdempotencyKey, nil) + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `cashfree.SposFetchTerminalTransaction``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SposFetchTerminalTransaction`: TerminalPaymentEntity + fmt.Fprintf(os.Stdout, "Response from `cashfree.SposFetchTerminalTransaction`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**cfTerminalId** | **string** | Provide the Cashfree terminal ID for which the details have to be updated. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSposFetchTerminalTransactionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] + **utr** | **string** | Utr of the transaction. | + + **xRequestId** | **string** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | + **xIdempotencyKey** | **string** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | + +### Return type + +[**TerminalPaymentEntity**](TerminalPaymentEntity.md) + +### Authorization + +[XPartnerAPIKey](../README.md#XPartnerAPIKey), [XClientSecret](../README.md#XClientSecret), [XPartnerMerchantID](../README.md#XPartnerMerchantID), [XClientID](../README.md#XClientID), [XClientSignatureHeader](../README.md#XClientSignatureHeader) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## SposUpdateTerminal > []UpdateTerminalEntity SposUpdateTerminal(ctx, cfTerminalId).XApiVersion(xApiVersion).UpdateTerminalRequest(updateTerminalRequest).XRequestId(xRequestId).XIdempotencyKey(xIdempotencyKey).Execute() @@ -415,7 +499,7 @@ Name | Type | Description | Notes > []UpdateTerminalEntity SposUpdateTerminalStatus(ctx, cfTerminalId).XApiVersion(xApiVersion).UpdateTerminalStatusRequest(updateTerminalStatusRequest).XRequestId(xRequestId).XIdempotencyKey(xIdempotencyKey).Execute() -Update Terminal Sttus +Update Terminal Status diff --git a/docs/SplitAfterPaymentRequest.md b/docs/SplitAfterPaymentRequest.md new file mode 100644 index 0000000..a0aef6c --- /dev/null +++ b/docs/SplitAfterPaymentRequest.md @@ -0,0 +1,77 @@ +# SplitAfterPaymentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Split** | [**[]SplitAfterPaymentRequestSplitInner**](SplitAfterPaymentRequestSplitInner.md) | Specify the vendors order split details. | +**DisableSplit** | Pointer to **bool** | Specify if you want to end the split or continue creating further splits in future. | [optional] + +## Methods + +### NewSplitAfterPaymentRequest + +`func NewSplitAfterPaymentRequest(split []SplitAfterPaymentRequestSplitInner, ) *SplitAfterPaymentRequest` + +NewSplitAfterPaymentRequest instantiates a new SplitAfterPaymentRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSplitAfterPaymentRequestWithDefaults + +`func NewSplitAfterPaymentRequestWithDefaults() *SplitAfterPaymentRequest` + +NewSplitAfterPaymentRequestWithDefaults instantiates a new SplitAfterPaymentRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSplit + +`func (o *SplitAfterPaymentRequest) GetSplit() []SplitAfterPaymentRequestSplitInner` + +GetSplit returns the Split field if non-nil, zero value otherwise. + +### GetSplitOk + +`func (o *SplitAfterPaymentRequest) GetSplitOk() (*[]SplitAfterPaymentRequestSplitInner, bool)` + +GetSplitOk returns a tuple with the Split field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSplit + +`func (o *SplitAfterPaymentRequest) SetSplit(v []SplitAfterPaymentRequestSplitInner)` + +SetSplit sets Split field to given value. + + +### GetDisableSplit + +`func (o *SplitAfterPaymentRequest) GetDisableSplit() bool` + +GetDisableSplit returns the DisableSplit field if non-nil, zero value otherwise. + +### GetDisableSplitOk + +`func (o *SplitAfterPaymentRequest) GetDisableSplitOk() (*bool, bool)` + +GetDisableSplitOk returns a tuple with the DisableSplit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisableSplit + +`func (o *SplitAfterPaymentRequest) SetDisableSplit(v bool)` + +SetDisableSplit sets DisableSplit field to given value. + +### HasDisableSplit + +`func (o *SplitAfterPaymentRequest) HasDisableSplit() bool` + +HasDisableSplit returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SplitAfterPaymentRequestSplitInner.md b/docs/SplitAfterPaymentRequestSplitInner.md new file mode 100644 index 0000000..1d48152 --- /dev/null +++ b/docs/SplitAfterPaymentRequestSplitInner.md @@ -0,0 +1,134 @@ +# SplitAfterPaymentRequestSplitInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VendorId** | Pointer to **string** | Specify the merchant vendor ID to split the payment. | [optional] +**Amount** | Pointer to **float32** | Specify the amount to be split to the vendor. | [optional] +**Percentage** | Pointer to **float32** | Specify the percentage of amount to be split. | [optional] +**Tags** | Pointer to [**[]SplitAfterPaymentRequestSplitInnerTagsInner**](SplitAfterPaymentRequestSplitInnerTagsInner.md) | Provide additional data fields using tags. Sample data fields are mentioned below. | [optional] + +## Methods + +### NewSplitAfterPaymentRequestSplitInner + +`func NewSplitAfterPaymentRequestSplitInner() *SplitAfterPaymentRequestSplitInner` + +NewSplitAfterPaymentRequestSplitInner instantiates a new SplitAfterPaymentRequestSplitInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSplitAfterPaymentRequestSplitInnerWithDefaults + +`func NewSplitAfterPaymentRequestSplitInnerWithDefaults() *SplitAfterPaymentRequestSplitInner` + +NewSplitAfterPaymentRequestSplitInnerWithDefaults instantiates a new SplitAfterPaymentRequestSplitInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetVendorId + +`func (o *SplitAfterPaymentRequestSplitInner) GetVendorId() string` + +GetVendorId returns the VendorId field if non-nil, zero value otherwise. + +### GetVendorIdOk + +`func (o *SplitAfterPaymentRequestSplitInner) GetVendorIdOk() (*string, bool)` + +GetVendorIdOk returns a tuple with the VendorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendorId + +`func (o *SplitAfterPaymentRequestSplitInner) SetVendorId(v string)` + +SetVendorId sets VendorId field to given value. + +### HasVendorId + +`func (o *SplitAfterPaymentRequestSplitInner) HasVendorId() bool` + +HasVendorId returns a boolean if a field has been set. + +### GetAmount + +`func (o *SplitAfterPaymentRequestSplitInner) GetAmount() float32` + +GetAmount returns the Amount field if non-nil, zero value otherwise. + +### GetAmountOk + +`func (o *SplitAfterPaymentRequestSplitInner) GetAmountOk() (*float32, bool)` + +GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmount + +`func (o *SplitAfterPaymentRequestSplitInner) SetAmount(v float32)` + +SetAmount sets Amount field to given value. + +### HasAmount + +`func (o *SplitAfterPaymentRequestSplitInner) HasAmount() bool` + +HasAmount returns a boolean if a field has been set. + +### GetPercentage + +`func (o *SplitAfterPaymentRequestSplitInner) GetPercentage() float32` + +GetPercentage returns the Percentage field if non-nil, zero value otherwise. + +### GetPercentageOk + +`func (o *SplitAfterPaymentRequestSplitInner) GetPercentageOk() (*float32, bool)` + +GetPercentageOk returns a tuple with the Percentage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPercentage + +`func (o *SplitAfterPaymentRequestSplitInner) SetPercentage(v float32)` + +SetPercentage sets Percentage field to given value. + +### HasPercentage + +`func (o *SplitAfterPaymentRequestSplitInner) HasPercentage() bool` + +HasPercentage returns a boolean if a field has been set. + +### GetTags + +`func (o *SplitAfterPaymentRequestSplitInner) GetTags() []SplitAfterPaymentRequestSplitInnerTagsInner` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *SplitAfterPaymentRequestSplitInner) GetTagsOk() (*[]SplitAfterPaymentRequestSplitInnerTagsInner, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *SplitAfterPaymentRequestSplitInner) SetTags(v []SplitAfterPaymentRequestSplitInnerTagsInner)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *SplitAfterPaymentRequestSplitInner) HasTags() bool` + +HasTags returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SplitAfterPaymentRequestSplitInnerTagsInner.md b/docs/SplitAfterPaymentRequestSplitInnerTagsInner.md new file mode 100644 index 0000000..07aa04c --- /dev/null +++ b/docs/SplitAfterPaymentRequestSplitInnerTagsInner.md @@ -0,0 +1,82 @@ +# SplitAfterPaymentRequestSplitInnerTagsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeyValue1** | Pointer to **string** | | [optional] +**KeyValue2** | Pointer to **string** | | [optional] + +## Methods + +### NewSplitAfterPaymentRequestSplitInnerTagsInner + +`func NewSplitAfterPaymentRequestSplitInnerTagsInner() *SplitAfterPaymentRequestSplitInnerTagsInner` + +NewSplitAfterPaymentRequestSplitInnerTagsInner instantiates a new SplitAfterPaymentRequestSplitInnerTagsInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSplitAfterPaymentRequestSplitInnerTagsInnerWithDefaults + +`func NewSplitAfterPaymentRequestSplitInnerTagsInnerWithDefaults() *SplitAfterPaymentRequestSplitInnerTagsInner` + +NewSplitAfterPaymentRequestSplitInnerTagsInnerWithDefaults instantiates a new SplitAfterPaymentRequestSplitInnerTagsInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetKeyValue1 + +`func (o *SplitAfterPaymentRequestSplitInnerTagsInner) GetKeyValue1() string` + +GetKeyValue1 returns the KeyValue1 field if non-nil, zero value otherwise. + +### GetKeyValue1Ok + +`func (o *SplitAfterPaymentRequestSplitInnerTagsInner) GetKeyValue1Ok() (*string, bool)` + +GetKeyValue1Ok returns a tuple with the KeyValue1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyValue1 + +`func (o *SplitAfterPaymentRequestSplitInnerTagsInner) SetKeyValue1(v string)` + +SetKeyValue1 sets KeyValue1 field to given value. + +### HasKeyValue1 + +`func (o *SplitAfterPaymentRequestSplitInnerTagsInner) HasKeyValue1() bool` + +HasKeyValue1 returns a boolean if a field has been set. + +### GetKeyValue2 + +`func (o *SplitAfterPaymentRequestSplitInnerTagsInner) GetKeyValue2() string` + +GetKeyValue2 returns the KeyValue2 field if non-nil, zero value otherwise. + +### GetKeyValue2Ok + +`func (o *SplitAfterPaymentRequestSplitInnerTagsInner) GetKeyValue2Ok() (*string, bool)` + +GetKeyValue2Ok returns a tuple with the KeyValue2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyValue2 + +`func (o *SplitAfterPaymentRequestSplitInnerTagsInner) SetKeyValue2(v string)` + +SetKeyValue2 sets KeyValue2 field to given value. + +### HasKeyValue2 + +`func (o *SplitAfterPaymentRequestSplitInnerTagsInner) HasKeyValue2() bool` + +HasKeyValue2 returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SplitAfterPaymentResponse.md b/docs/SplitAfterPaymentResponse.md new file mode 100644 index 0000000..aa60bb0 --- /dev/null +++ b/docs/SplitAfterPaymentResponse.md @@ -0,0 +1,82 @@ +# SplitAfterPaymentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] + +## Methods + +### NewSplitAfterPaymentResponse + +`func NewSplitAfterPaymentResponse() *SplitAfterPaymentResponse` + +NewSplitAfterPaymentResponse instantiates a new SplitAfterPaymentResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSplitAfterPaymentResponseWithDefaults + +`func NewSplitAfterPaymentResponseWithDefaults() *SplitAfterPaymentResponse` + +NewSplitAfterPaymentResponseWithDefaults instantiates a new SplitAfterPaymentResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *SplitAfterPaymentResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SplitAfterPaymentResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *SplitAfterPaymentResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SplitAfterPaymentResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetMessage + +`func (o *SplitAfterPaymentResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *SplitAfterPaymentResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *SplitAfterPaymentResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *SplitAfterPaymentResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StaticSplitRequest.md b/docs/StaticSplitRequest.md new file mode 100644 index 0000000..3b7c29a --- /dev/null +++ b/docs/StaticSplitRequest.md @@ -0,0 +1,145 @@ +# StaticSplitRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Active** | **bool** | Specify if the split is to be active or not. Possible values: true/false | +**TerminalId** | Pointer to **string** | For Subscription payments, the subscription reference ID is to be shared as the terminal ID. Incase for Payment Gateway terminal ID is non-mandatory. Mention as 0 if not applicable. | [optional] +**TerminalReferenceId** | Pointer to **float32** | You can share additional information using the reference ID. | [optional] +**ProductType** | **string** | Specify the product for which the split should be created. If you want split to be created for Payment Gateway pass value as \"PG\". If you want split to be created for Subscription, pass value as \"SBC\". Accepted values - \"STATIC_QR\", \"SBC\", \"PG\", \"EPOS\". | +**Scheme** | [**[]StaticSplitRequestSchemeInner**](StaticSplitRequestSchemeInner.md) | Provide the split scheme details. | + +## Methods + +### NewStaticSplitRequest + +`func NewStaticSplitRequest(active bool, productType string, scheme []StaticSplitRequestSchemeInner, ) *StaticSplitRequest` + +NewStaticSplitRequest instantiates a new StaticSplitRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStaticSplitRequestWithDefaults + +`func NewStaticSplitRequestWithDefaults() *StaticSplitRequest` + +NewStaticSplitRequestWithDefaults instantiates a new StaticSplitRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetActive + +`func (o *StaticSplitRequest) GetActive() bool` + +GetActive returns the Active field if non-nil, zero value otherwise. + +### GetActiveOk + +`func (o *StaticSplitRequest) GetActiveOk() (*bool, bool)` + +GetActiveOk returns a tuple with the Active field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActive + +`func (o *StaticSplitRequest) SetActive(v bool)` + +SetActive sets Active field to given value. + + +### GetTerminalId + +`func (o *StaticSplitRequest) GetTerminalId() string` + +GetTerminalId returns the TerminalId field if non-nil, zero value otherwise. + +### GetTerminalIdOk + +`func (o *StaticSplitRequest) GetTerminalIdOk() (*string, bool)` + +GetTerminalIdOk returns a tuple with the TerminalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminalId + +`func (o *StaticSplitRequest) SetTerminalId(v string)` + +SetTerminalId sets TerminalId field to given value. + +### HasTerminalId + +`func (o *StaticSplitRequest) HasTerminalId() bool` + +HasTerminalId returns a boolean if a field has been set. + +### GetTerminalReferenceId + +`func (o *StaticSplitRequest) GetTerminalReferenceId() float32` + +GetTerminalReferenceId returns the TerminalReferenceId field if non-nil, zero value otherwise. + +### GetTerminalReferenceIdOk + +`func (o *StaticSplitRequest) GetTerminalReferenceIdOk() (*float32, bool)` + +GetTerminalReferenceIdOk returns a tuple with the TerminalReferenceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminalReferenceId + +`func (o *StaticSplitRequest) SetTerminalReferenceId(v float32)` + +SetTerminalReferenceId sets TerminalReferenceId field to given value. + +### HasTerminalReferenceId + +`func (o *StaticSplitRequest) HasTerminalReferenceId() bool` + +HasTerminalReferenceId returns a boolean if a field has been set. + +### GetProductType + +`func (o *StaticSplitRequest) GetProductType() string` + +GetProductType returns the ProductType field if non-nil, zero value otherwise. + +### GetProductTypeOk + +`func (o *StaticSplitRequest) GetProductTypeOk() (*string, bool)` + +GetProductTypeOk returns a tuple with the ProductType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProductType + +`func (o *StaticSplitRequest) SetProductType(v string)` + +SetProductType sets ProductType field to given value. + + +### GetScheme + +`func (o *StaticSplitRequest) GetScheme() []StaticSplitRequestSchemeInner` + +GetScheme returns the Scheme field if non-nil, zero value otherwise. + +### GetSchemeOk + +`func (o *StaticSplitRequest) GetSchemeOk() (*[]StaticSplitRequestSchemeInner, bool)` + +GetSchemeOk returns a tuple with the Scheme field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheme + +`func (o *StaticSplitRequest) SetScheme(v []StaticSplitRequestSchemeInner)` + +SetScheme sets Scheme field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StaticSplitRequestSchemeInner.md b/docs/StaticSplitRequestSchemeInner.md new file mode 100644 index 0000000..19d91e7 --- /dev/null +++ b/docs/StaticSplitRequestSchemeInner.md @@ -0,0 +1,82 @@ +# StaticSplitRequestSchemeInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MerchantVendorId** | Pointer to **string** | Specify the merchant vendor ID to create the split scheme for the payment. | [optional] +**Percentage** | Pointer to **string** | Specify the percentage of amount to be split. | [optional] + +## Methods + +### NewStaticSplitRequestSchemeInner + +`func NewStaticSplitRequestSchemeInner() *StaticSplitRequestSchemeInner` + +NewStaticSplitRequestSchemeInner instantiates a new StaticSplitRequestSchemeInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStaticSplitRequestSchemeInnerWithDefaults + +`func NewStaticSplitRequestSchemeInnerWithDefaults() *StaticSplitRequestSchemeInner` + +NewStaticSplitRequestSchemeInnerWithDefaults instantiates a new StaticSplitRequestSchemeInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMerchantVendorId + +`func (o *StaticSplitRequestSchemeInner) GetMerchantVendorId() string` + +GetMerchantVendorId returns the MerchantVendorId field if non-nil, zero value otherwise. + +### GetMerchantVendorIdOk + +`func (o *StaticSplitRequestSchemeInner) GetMerchantVendorIdOk() (*string, bool)` + +GetMerchantVendorIdOk returns a tuple with the MerchantVendorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMerchantVendorId + +`func (o *StaticSplitRequestSchemeInner) SetMerchantVendorId(v string)` + +SetMerchantVendorId sets MerchantVendorId field to given value. + +### HasMerchantVendorId + +`func (o *StaticSplitRequestSchemeInner) HasMerchantVendorId() bool` + +HasMerchantVendorId returns a boolean if a field has been set. + +### GetPercentage + +`func (o *StaticSplitRequestSchemeInner) GetPercentage() string` + +GetPercentage returns the Percentage field if non-nil, zero value otherwise. + +### GetPercentageOk + +`func (o *StaticSplitRequestSchemeInner) GetPercentageOk() (*string, bool)` + +GetPercentageOk returns a tuple with the Percentage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPercentage + +`func (o *StaticSplitRequestSchemeInner) SetPercentage(v string)` + +SetPercentage sets Percentage field to given value. + +### HasPercentage + +`func (o *StaticSplitRequestSchemeInner) HasPercentage() bool` + +HasPercentage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StaticSplitResponse.md b/docs/StaticSplitResponse.md new file mode 100644 index 0000000..11aa391 --- /dev/null +++ b/docs/StaticSplitResponse.md @@ -0,0 +1,186 @@ +# StaticSplitResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Active** | Pointer to **bool** | | [optional] +**TerminalId** | Pointer to **string** | | [optional] +**TerminalReferenceId** | Pointer to **float32** | | [optional] +**ProductType** | Pointer to **string** | | [optional] +**Scheme** | Pointer to [**[]StaticSplitResponseSchemeInner**](StaticSplitResponseSchemeInner.md) | | [optional] +**AddedOn** | Pointer to **string** | | [optional] + +## Methods + +### NewStaticSplitResponse + +`func NewStaticSplitResponse() *StaticSplitResponse` + +NewStaticSplitResponse instantiates a new StaticSplitResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStaticSplitResponseWithDefaults + +`func NewStaticSplitResponseWithDefaults() *StaticSplitResponse` + +NewStaticSplitResponseWithDefaults instantiates a new StaticSplitResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetActive + +`func (o *StaticSplitResponse) GetActive() bool` + +GetActive returns the Active field if non-nil, zero value otherwise. + +### GetActiveOk + +`func (o *StaticSplitResponse) GetActiveOk() (*bool, bool)` + +GetActiveOk returns a tuple with the Active field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActive + +`func (o *StaticSplitResponse) SetActive(v bool)` + +SetActive sets Active field to given value. + +### HasActive + +`func (o *StaticSplitResponse) HasActive() bool` + +HasActive returns a boolean if a field has been set. + +### GetTerminalId + +`func (o *StaticSplitResponse) GetTerminalId() string` + +GetTerminalId returns the TerminalId field if non-nil, zero value otherwise. + +### GetTerminalIdOk + +`func (o *StaticSplitResponse) GetTerminalIdOk() (*string, bool)` + +GetTerminalIdOk returns a tuple with the TerminalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminalId + +`func (o *StaticSplitResponse) SetTerminalId(v string)` + +SetTerminalId sets TerminalId field to given value. + +### HasTerminalId + +`func (o *StaticSplitResponse) HasTerminalId() bool` + +HasTerminalId returns a boolean if a field has been set. + +### GetTerminalReferenceId + +`func (o *StaticSplitResponse) GetTerminalReferenceId() float32` + +GetTerminalReferenceId returns the TerminalReferenceId field if non-nil, zero value otherwise. + +### GetTerminalReferenceIdOk + +`func (o *StaticSplitResponse) GetTerminalReferenceIdOk() (*float32, bool)` + +GetTerminalReferenceIdOk returns a tuple with the TerminalReferenceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminalReferenceId + +`func (o *StaticSplitResponse) SetTerminalReferenceId(v float32)` + +SetTerminalReferenceId sets TerminalReferenceId field to given value. + +### HasTerminalReferenceId + +`func (o *StaticSplitResponse) HasTerminalReferenceId() bool` + +HasTerminalReferenceId returns a boolean if a field has been set. + +### GetProductType + +`func (o *StaticSplitResponse) GetProductType() string` + +GetProductType returns the ProductType field if non-nil, zero value otherwise. + +### GetProductTypeOk + +`func (o *StaticSplitResponse) GetProductTypeOk() (*string, bool)` + +GetProductTypeOk returns a tuple with the ProductType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProductType + +`func (o *StaticSplitResponse) SetProductType(v string)` + +SetProductType sets ProductType field to given value. + +### HasProductType + +`func (o *StaticSplitResponse) HasProductType() bool` + +HasProductType returns a boolean if a field has been set. + +### GetScheme + +`func (o *StaticSplitResponse) GetScheme() []StaticSplitResponseSchemeInner` + +GetScheme returns the Scheme field if non-nil, zero value otherwise. + +### GetSchemeOk + +`func (o *StaticSplitResponse) GetSchemeOk() (*[]StaticSplitResponseSchemeInner, bool)` + +GetSchemeOk returns a tuple with the Scheme field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheme + +`func (o *StaticSplitResponse) SetScheme(v []StaticSplitResponseSchemeInner)` + +SetScheme sets Scheme field to given value. + +### HasScheme + +`func (o *StaticSplitResponse) HasScheme() bool` + +HasScheme returns a boolean if a field has been set. + +### GetAddedOn + +`func (o *StaticSplitResponse) GetAddedOn() string` + +GetAddedOn returns the AddedOn field if non-nil, zero value otherwise. + +### GetAddedOnOk + +`func (o *StaticSplitResponse) GetAddedOnOk() (*string, bool)` + +GetAddedOnOk returns a tuple with the AddedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddedOn + +`func (o *StaticSplitResponse) SetAddedOn(v string)` + +SetAddedOn sets AddedOn field to given value. + +### HasAddedOn + +`func (o *StaticSplitResponse) HasAddedOn() bool` + +HasAddedOn returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/StaticSplitResponseSchemeInner.md b/docs/StaticSplitResponseSchemeInner.md new file mode 100644 index 0000000..45539c5 --- /dev/null +++ b/docs/StaticSplitResponseSchemeInner.md @@ -0,0 +1,82 @@ +# StaticSplitResponseSchemeInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MerchantVendorId** | Pointer to **string** | | [optional] +**Percentage** | Pointer to **string** | | [optional] + +## Methods + +### NewStaticSplitResponseSchemeInner + +`func NewStaticSplitResponseSchemeInner() *StaticSplitResponseSchemeInner` + +NewStaticSplitResponseSchemeInner instantiates a new StaticSplitResponseSchemeInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStaticSplitResponseSchemeInnerWithDefaults + +`func NewStaticSplitResponseSchemeInnerWithDefaults() *StaticSplitResponseSchemeInner` + +NewStaticSplitResponseSchemeInnerWithDefaults instantiates a new StaticSplitResponseSchemeInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMerchantVendorId + +`func (o *StaticSplitResponseSchemeInner) GetMerchantVendorId() string` + +GetMerchantVendorId returns the MerchantVendorId field if non-nil, zero value otherwise. + +### GetMerchantVendorIdOk + +`func (o *StaticSplitResponseSchemeInner) GetMerchantVendorIdOk() (*string, bool)` + +GetMerchantVendorIdOk returns a tuple with the MerchantVendorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMerchantVendorId + +`func (o *StaticSplitResponseSchemeInner) SetMerchantVendorId(v string)` + +SetMerchantVendorId sets MerchantVendorId field to given value. + +### HasMerchantVendorId + +`func (o *StaticSplitResponseSchemeInner) HasMerchantVendorId() bool` + +HasMerchantVendorId returns a boolean if a field has been set. + +### GetPercentage + +`func (o *StaticSplitResponseSchemeInner) GetPercentage() string` + +GetPercentage returns the Percentage field if non-nil, zero value otherwise. + +### GetPercentageOk + +`func (o *StaticSplitResponseSchemeInner) GetPercentageOk() (*string, bool)` + +GetPercentageOk returns a tuple with the Percentage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPercentage + +`func (o *StaticSplitResponseSchemeInner) SetPercentage(v string)` + +SetPercentage sets Percentage field to given value. + +### HasPercentage + +`func (o *StaticSplitResponseSchemeInner) HasPercentage() bool` + +HasPercentage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TerminalPaymentEntity.md b/docs/TerminalPaymentEntity.md new file mode 100644 index 0000000..8bb0a86 --- /dev/null +++ b/docs/TerminalPaymentEntity.md @@ -0,0 +1,498 @@ +# TerminalPaymentEntity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CfPaymentId** | Pointer to **string** | | [optional] +**OrderId** | Pointer to **string** | | [optional] +**Entity** | Pointer to **string** | | [optional] +**ErrorDetails** | Pointer to [**ErrorDetailsInPaymentsEntity**](ErrorDetailsInPaymentsEntity.md) | | [optional] +**IsCaptured** | Pointer to **bool** | | [optional] +**OrderAmount** | Pointer to **float32** | Order amount can be different from payment amount if you collect service fee from the customer | [optional] +**PaymentGroup** | Pointer to **string** | Type of payment group. One of ['prepaid_card', 'upi_ppi_offline', 'cash', 'upi_credit_card', 'paypal', 'net_banking', 'cardless_emi', 'credit_card', 'bank_transfer', 'pay_later', 'debit_card_emi', 'debit_card', 'wallet', 'upi_ppi', 'upi', 'credit_card_emi'] | [optional] +**PaymentCurrency** | Pointer to **string** | | [optional] +**PaymentAmount** | Pointer to **float32** | | [optional] +**PaymentTime** | Pointer to **string** | This is the time when the payment was initiated | [optional] +**PaymentCompletionTime** | Pointer to **string** | This is the time when the payment reaches its terminal state | [optional] +**PaymentStatus** | Pointer to **string** | The transaction status can be one of [\"SUCCESS\", \"NOT_ATTEMPTED\", \"FAILED\", \"USER_DROPPED\", \"VOID\", \"CANCELLED\", \"PENDING\"] | [optional] +**PaymentMessage** | Pointer to **string** | | [optional] +**BankReference** | Pointer to **string** | | [optional] +**AuthId** | Pointer to **string** | | [optional] +**Authorization** | Pointer to [**AuthorizationInPaymentsEntity**](AuthorizationInPaymentsEntity.md) | | [optional] +**CustomerDetails** | Pointer to [**CustomerDetails**](CustomerDetails.md) | | [optional] +**PaymentMethod** | Pointer to [**PaymentEntityPaymentMethod**](PaymentEntityPaymentMethod.md) | | [optional] + +## Methods + +### NewTerminalPaymentEntity + +`func NewTerminalPaymentEntity() *TerminalPaymentEntity` + +NewTerminalPaymentEntity instantiates a new TerminalPaymentEntity object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTerminalPaymentEntityWithDefaults + +`func NewTerminalPaymentEntityWithDefaults() *TerminalPaymentEntity` + +NewTerminalPaymentEntityWithDefaults instantiates a new TerminalPaymentEntity object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCfPaymentId + +`func (o *TerminalPaymentEntity) GetCfPaymentId() string` + +GetCfPaymentId returns the CfPaymentId field if non-nil, zero value otherwise. + +### GetCfPaymentIdOk + +`func (o *TerminalPaymentEntity) GetCfPaymentIdOk() (*string, bool)` + +GetCfPaymentIdOk returns a tuple with the CfPaymentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCfPaymentId + +`func (o *TerminalPaymentEntity) SetCfPaymentId(v string)` + +SetCfPaymentId sets CfPaymentId field to given value. + +### HasCfPaymentId + +`func (o *TerminalPaymentEntity) HasCfPaymentId() bool` + +HasCfPaymentId returns a boolean if a field has been set. + +### GetOrderId + +`func (o *TerminalPaymentEntity) GetOrderId() string` + +GetOrderId returns the OrderId field if non-nil, zero value otherwise. + +### GetOrderIdOk + +`func (o *TerminalPaymentEntity) GetOrderIdOk() (*string, bool)` + +GetOrderIdOk returns a tuple with the OrderId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderId + +`func (o *TerminalPaymentEntity) SetOrderId(v string)` + +SetOrderId sets OrderId field to given value. + +### HasOrderId + +`func (o *TerminalPaymentEntity) HasOrderId() bool` + +HasOrderId returns a boolean if a field has been set. + +### GetEntity + +`func (o *TerminalPaymentEntity) GetEntity() string` + +GetEntity returns the Entity field if non-nil, zero value otherwise. + +### GetEntityOk + +`func (o *TerminalPaymentEntity) GetEntityOk() (*string, bool)` + +GetEntityOk returns a tuple with the Entity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntity + +`func (o *TerminalPaymentEntity) SetEntity(v string)` + +SetEntity sets Entity field to given value. + +### HasEntity + +`func (o *TerminalPaymentEntity) HasEntity() bool` + +HasEntity returns a boolean if a field has been set. + +### GetErrorDetails + +`func (o *TerminalPaymentEntity) GetErrorDetails() ErrorDetailsInPaymentsEntity` + +GetErrorDetails returns the ErrorDetails field if non-nil, zero value otherwise. + +### GetErrorDetailsOk + +`func (o *TerminalPaymentEntity) GetErrorDetailsOk() (*ErrorDetailsInPaymentsEntity, bool)` + +GetErrorDetailsOk returns a tuple with the ErrorDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorDetails + +`func (o *TerminalPaymentEntity) SetErrorDetails(v ErrorDetailsInPaymentsEntity)` + +SetErrorDetails sets ErrorDetails field to given value. + +### HasErrorDetails + +`func (o *TerminalPaymentEntity) HasErrorDetails() bool` + +HasErrorDetails returns a boolean if a field has been set. + +### GetIsCaptured + +`func (o *TerminalPaymentEntity) GetIsCaptured() bool` + +GetIsCaptured returns the IsCaptured field if non-nil, zero value otherwise. + +### GetIsCapturedOk + +`func (o *TerminalPaymentEntity) GetIsCapturedOk() (*bool, bool)` + +GetIsCapturedOk returns a tuple with the IsCaptured field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsCaptured + +`func (o *TerminalPaymentEntity) SetIsCaptured(v bool)` + +SetIsCaptured sets IsCaptured field to given value. + +### HasIsCaptured + +`func (o *TerminalPaymentEntity) HasIsCaptured() bool` + +HasIsCaptured returns a boolean if a field has been set. + +### GetOrderAmount + +`func (o *TerminalPaymentEntity) GetOrderAmount() float32` + +GetOrderAmount returns the OrderAmount field if non-nil, zero value otherwise. + +### GetOrderAmountOk + +`func (o *TerminalPaymentEntity) GetOrderAmountOk() (*float32, bool)` + +GetOrderAmountOk returns a tuple with the OrderAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderAmount + +`func (o *TerminalPaymentEntity) SetOrderAmount(v float32)` + +SetOrderAmount sets OrderAmount field to given value. + +### HasOrderAmount + +`func (o *TerminalPaymentEntity) HasOrderAmount() bool` + +HasOrderAmount returns a boolean if a field has been set. + +### GetPaymentGroup + +`func (o *TerminalPaymentEntity) GetPaymentGroup() string` + +GetPaymentGroup returns the PaymentGroup field if non-nil, zero value otherwise. + +### GetPaymentGroupOk + +`func (o *TerminalPaymentEntity) GetPaymentGroupOk() (*string, bool)` + +GetPaymentGroupOk returns a tuple with the PaymentGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentGroup + +`func (o *TerminalPaymentEntity) SetPaymentGroup(v string)` + +SetPaymentGroup sets PaymentGroup field to given value. + +### HasPaymentGroup + +`func (o *TerminalPaymentEntity) HasPaymentGroup() bool` + +HasPaymentGroup returns a boolean if a field has been set. + +### GetPaymentCurrency + +`func (o *TerminalPaymentEntity) GetPaymentCurrency() string` + +GetPaymentCurrency returns the PaymentCurrency field if non-nil, zero value otherwise. + +### GetPaymentCurrencyOk + +`func (o *TerminalPaymentEntity) GetPaymentCurrencyOk() (*string, bool)` + +GetPaymentCurrencyOk returns a tuple with the PaymentCurrency field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentCurrency + +`func (o *TerminalPaymentEntity) SetPaymentCurrency(v string)` + +SetPaymentCurrency sets PaymentCurrency field to given value. + +### HasPaymentCurrency + +`func (o *TerminalPaymentEntity) HasPaymentCurrency() bool` + +HasPaymentCurrency returns a boolean if a field has been set. + +### GetPaymentAmount + +`func (o *TerminalPaymentEntity) GetPaymentAmount() float32` + +GetPaymentAmount returns the PaymentAmount field if non-nil, zero value otherwise. + +### GetPaymentAmountOk + +`func (o *TerminalPaymentEntity) GetPaymentAmountOk() (*float32, bool)` + +GetPaymentAmountOk returns a tuple with the PaymentAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentAmount + +`func (o *TerminalPaymentEntity) SetPaymentAmount(v float32)` + +SetPaymentAmount sets PaymentAmount field to given value. + +### HasPaymentAmount + +`func (o *TerminalPaymentEntity) HasPaymentAmount() bool` + +HasPaymentAmount returns a boolean if a field has been set. + +### GetPaymentTime + +`func (o *TerminalPaymentEntity) GetPaymentTime() string` + +GetPaymentTime returns the PaymentTime field if non-nil, zero value otherwise. + +### GetPaymentTimeOk + +`func (o *TerminalPaymentEntity) GetPaymentTimeOk() (*string, bool)` + +GetPaymentTimeOk returns a tuple with the PaymentTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentTime + +`func (o *TerminalPaymentEntity) SetPaymentTime(v string)` + +SetPaymentTime sets PaymentTime field to given value. + +### HasPaymentTime + +`func (o *TerminalPaymentEntity) HasPaymentTime() bool` + +HasPaymentTime returns a boolean if a field has been set. + +### GetPaymentCompletionTime + +`func (o *TerminalPaymentEntity) GetPaymentCompletionTime() string` + +GetPaymentCompletionTime returns the PaymentCompletionTime field if non-nil, zero value otherwise. + +### GetPaymentCompletionTimeOk + +`func (o *TerminalPaymentEntity) GetPaymentCompletionTimeOk() (*string, bool)` + +GetPaymentCompletionTimeOk returns a tuple with the PaymentCompletionTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentCompletionTime + +`func (o *TerminalPaymentEntity) SetPaymentCompletionTime(v string)` + +SetPaymentCompletionTime sets PaymentCompletionTime field to given value. + +### HasPaymentCompletionTime + +`func (o *TerminalPaymentEntity) HasPaymentCompletionTime() bool` + +HasPaymentCompletionTime returns a boolean if a field has been set. + +### GetPaymentStatus + +`func (o *TerminalPaymentEntity) GetPaymentStatus() string` + +GetPaymentStatus returns the PaymentStatus field if non-nil, zero value otherwise. + +### GetPaymentStatusOk + +`func (o *TerminalPaymentEntity) GetPaymentStatusOk() (*string, bool)` + +GetPaymentStatusOk returns a tuple with the PaymentStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentStatus + +`func (o *TerminalPaymentEntity) SetPaymentStatus(v string)` + +SetPaymentStatus sets PaymentStatus field to given value. + +### HasPaymentStatus + +`func (o *TerminalPaymentEntity) HasPaymentStatus() bool` + +HasPaymentStatus returns a boolean if a field has been set. + +### GetPaymentMessage + +`func (o *TerminalPaymentEntity) GetPaymentMessage() string` + +GetPaymentMessage returns the PaymentMessage field if non-nil, zero value otherwise. + +### GetPaymentMessageOk + +`func (o *TerminalPaymentEntity) GetPaymentMessageOk() (*string, bool)` + +GetPaymentMessageOk returns a tuple with the PaymentMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentMessage + +`func (o *TerminalPaymentEntity) SetPaymentMessage(v string)` + +SetPaymentMessage sets PaymentMessage field to given value. + +### HasPaymentMessage + +`func (o *TerminalPaymentEntity) HasPaymentMessage() bool` + +HasPaymentMessage returns a boolean if a field has been set. + +### GetBankReference + +`func (o *TerminalPaymentEntity) GetBankReference() string` + +GetBankReference returns the BankReference field if non-nil, zero value otherwise. + +### GetBankReferenceOk + +`func (o *TerminalPaymentEntity) GetBankReferenceOk() (*string, bool)` + +GetBankReferenceOk returns a tuple with the BankReference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBankReference + +`func (o *TerminalPaymentEntity) SetBankReference(v string)` + +SetBankReference sets BankReference field to given value. + +### HasBankReference + +`func (o *TerminalPaymentEntity) HasBankReference() bool` + +HasBankReference returns a boolean if a field has been set. + +### GetAuthId + +`func (o *TerminalPaymentEntity) GetAuthId() string` + +GetAuthId returns the AuthId field if non-nil, zero value otherwise. + +### GetAuthIdOk + +`func (o *TerminalPaymentEntity) GetAuthIdOk() (*string, bool)` + +GetAuthIdOk returns a tuple with the AuthId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthId + +`func (o *TerminalPaymentEntity) SetAuthId(v string)` + +SetAuthId sets AuthId field to given value. + +### HasAuthId + +`func (o *TerminalPaymentEntity) HasAuthId() bool` + +HasAuthId returns a boolean if a field has been set. + +### GetAuthorization + +`func (o *TerminalPaymentEntity) GetAuthorization() AuthorizationInPaymentsEntity` + +GetAuthorization returns the Authorization field if non-nil, zero value otherwise. + +### GetAuthorizationOk + +`func (o *TerminalPaymentEntity) GetAuthorizationOk() (*AuthorizationInPaymentsEntity, bool)` + +GetAuthorizationOk returns a tuple with the Authorization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthorization + +`func (o *TerminalPaymentEntity) SetAuthorization(v AuthorizationInPaymentsEntity)` + +SetAuthorization sets Authorization field to given value. + +### HasAuthorization + +`func (o *TerminalPaymentEntity) HasAuthorization() bool` + +HasAuthorization returns a boolean if a field has been set. + +### GetCustomerDetails + +`func (o *TerminalPaymentEntity) GetCustomerDetails() CustomerDetails` + +GetCustomerDetails returns the CustomerDetails field if non-nil, zero value otherwise. + +### GetCustomerDetailsOk + +`func (o *TerminalPaymentEntity) GetCustomerDetailsOk() (*CustomerDetails, bool)` + +GetCustomerDetailsOk returns a tuple with the CustomerDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomerDetails + +`func (o *TerminalPaymentEntity) SetCustomerDetails(v CustomerDetails)` + +SetCustomerDetails sets CustomerDetails field to given value. + +### HasCustomerDetails + +`func (o *TerminalPaymentEntity) HasCustomerDetails() bool` + +HasCustomerDetails returns a boolean if a field has been set. + +### GetPaymentMethod + +`func (o *TerminalPaymentEntity) GetPaymentMethod() PaymentEntityPaymentMethod` + +GetPaymentMethod returns the PaymentMethod field if non-nil, zero value otherwise. + +### GetPaymentMethodOk + +`func (o *TerminalPaymentEntity) GetPaymentMethodOk() (*PaymentEntityPaymentMethod, bool)` + +GetPaymentMethodOk returns a tuple with the PaymentMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentMethod + +`func (o *TerminalPaymentEntity) SetPaymentMethod(v PaymentEntityPaymentMethod)` + +SetPaymentMethod sets PaymentMethod field to given value. + +### HasPaymentMethod + +`func (o *TerminalPaymentEntity) HasPaymentMethod() bool` + +HasPaymentMethod returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TransferDetails.md b/docs/TransferDetails.md new file mode 100644 index 0000000..3bdc2eb --- /dev/null +++ b/docs/TransferDetails.md @@ -0,0 +1,186 @@ +# TransferDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VendorId** | Pointer to **string** | | [optional] +**TransferFrom** | Pointer to **string** | | [optional] +**TransferType** | Pointer to **string** | | [optional] +**TransferAmount** | Pointer to **float32** | | [optional] +**Remark** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]TransferDetailsTagsInner**](TransferDetailsTagsInner.md) | | [optional] + +## Methods + +### NewTransferDetails + +`func NewTransferDetails() *TransferDetails` + +NewTransferDetails instantiates a new TransferDetails object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTransferDetailsWithDefaults + +`func NewTransferDetailsWithDefaults() *TransferDetails` + +NewTransferDetailsWithDefaults instantiates a new TransferDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetVendorId + +`func (o *TransferDetails) GetVendorId() string` + +GetVendorId returns the VendorId field if non-nil, zero value otherwise. + +### GetVendorIdOk + +`func (o *TransferDetails) GetVendorIdOk() (*string, bool)` + +GetVendorIdOk returns a tuple with the VendorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendorId + +`func (o *TransferDetails) SetVendorId(v string)` + +SetVendorId sets VendorId field to given value. + +### HasVendorId + +`func (o *TransferDetails) HasVendorId() bool` + +HasVendorId returns a boolean if a field has been set. + +### GetTransferFrom + +`func (o *TransferDetails) GetTransferFrom() string` + +GetTransferFrom returns the TransferFrom field if non-nil, zero value otherwise. + +### GetTransferFromOk + +`func (o *TransferDetails) GetTransferFromOk() (*string, bool)` + +GetTransferFromOk returns a tuple with the TransferFrom field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransferFrom + +`func (o *TransferDetails) SetTransferFrom(v string)` + +SetTransferFrom sets TransferFrom field to given value. + +### HasTransferFrom + +`func (o *TransferDetails) HasTransferFrom() bool` + +HasTransferFrom returns a boolean if a field has been set. + +### GetTransferType + +`func (o *TransferDetails) GetTransferType() string` + +GetTransferType returns the TransferType field if non-nil, zero value otherwise. + +### GetTransferTypeOk + +`func (o *TransferDetails) GetTransferTypeOk() (*string, bool)` + +GetTransferTypeOk returns a tuple with the TransferType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransferType + +`func (o *TransferDetails) SetTransferType(v string)` + +SetTransferType sets TransferType field to given value. + +### HasTransferType + +`func (o *TransferDetails) HasTransferType() bool` + +HasTransferType returns a boolean if a field has been set. + +### GetTransferAmount + +`func (o *TransferDetails) GetTransferAmount() float32` + +GetTransferAmount returns the TransferAmount field if non-nil, zero value otherwise. + +### GetTransferAmountOk + +`func (o *TransferDetails) GetTransferAmountOk() (*float32, bool)` + +GetTransferAmountOk returns a tuple with the TransferAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransferAmount + +`func (o *TransferDetails) SetTransferAmount(v float32)` + +SetTransferAmount sets TransferAmount field to given value. + +### HasTransferAmount + +`func (o *TransferDetails) HasTransferAmount() bool` + +HasTransferAmount returns a boolean if a field has been set. + +### GetRemark + +`func (o *TransferDetails) GetRemark() string` + +GetRemark returns the Remark field if non-nil, zero value otherwise. + +### GetRemarkOk + +`func (o *TransferDetails) GetRemarkOk() (*string, bool)` + +GetRemarkOk returns a tuple with the Remark field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemark + +`func (o *TransferDetails) SetRemark(v string)` + +SetRemark sets Remark field to given value. + +### HasRemark + +`func (o *TransferDetails) HasRemark() bool` + +HasRemark returns a boolean if a field has been set. + +### GetTags + +`func (o *TransferDetails) GetTags() []TransferDetailsTagsInner` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *TransferDetails) GetTagsOk() (*[]TransferDetailsTagsInner, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *TransferDetails) SetTags(v []TransferDetailsTagsInner)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *TransferDetails) HasTags() bool` + +HasTags returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TransferDetailsTagsInner.md b/docs/TransferDetailsTagsInner.md new file mode 100644 index 0000000..b81dec4 --- /dev/null +++ b/docs/TransferDetailsTagsInner.md @@ -0,0 +1,82 @@ +# TransferDetailsTagsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Product** | Pointer to **string** | | [optional] +**Size** | Pointer to **float32** | | [optional] + +## Methods + +### NewTransferDetailsTagsInner + +`func NewTransferDetailsTagsInner() *TransferDetailsTagsInner` + +NewTransferDetailsTagsInner instantiates a new TransferDetailsTagsInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTransferDetailsTagsInnerWithDefaults + +`func NewTransferDetailsTagsInnerWithDefaults() *TransferDetailsTagsInner` + +NewTransferDetailsTagsInnerWithDefaults instantiates a new TransferDetailsTagsInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetProduct + +`func (o *TransferDetailsTagsInner) GetProduct() string` + +GetProduct returns the Product field if non-nil, zero value otherwise. + +### GetProductOk + +`func (o *TransferDetailsTagsInner) GetProductOk() (*string, bool)` + +GetProductOk returns a tuple with the Product field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProduct + +`func (o *TransferDetailsTagsInner) SetProduct(v string)` + +SetProduct sets Product field to given value. + +### HasProduct + +`func (o *TransferDetailsTagsInner) HasProduct() bool` + +HasProduct returns a boolean if a field has been set. + +### GetSize + +`func (o *TransferDetailsTagsInner) GetSize() float32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *TransferDetailsTagsInner) GetSizeOk() (*float32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *TransferDetailsTagsInner) SetSize(v float32)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *TransferDetailsTagsInner) HasSize() bool` + +HasSize returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateVendorRequest.md b/docs/UpdateVendorRequest.md new file mode 100644 index 0000000..1cedaba --- /dev/null +++ b/docs/UpdateVendorRequest.md @@ -0,0 +1,260 @@ +# UpdateVendorRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | Specify the status of vendor that should be updated. Possible values: ACTIVE,BLOCKED, DELETED | +**Name** | **string** | Specify the name of the vendor to be updated. Name should not have any special character except . / - & | +**Email** | **string** | Specify the vendor email ID that should be updated. String in email ID format (Ex:johndoe_1@cashfree.com) should contain @ and dot (.) | +**Phone** | **string** | Specify the beneficiaries phone number to be updated. Phone number registered in India (only digits, 8 - 12 characters after excluding +91). | +**VerifyAccount** | Pointer to **bool** | Specify if the vendor bank account details should be verified. Possible values: true or false | [optional] +**DashboardAccess** | Pointer to **bool** | Update if the vendor will have dashboard access or not. Possible values are: true or false | [optional] +**ScheduleOption** | **float32** | Specify the settlement cycle to be updated. View the settlement cycle details from the \"Settlement Cycles Supported\" table. If no schedule option is configured, the settlement cycle ID \"1\" will be in effect. Select \"8\" or \"9\" if you want to schedule instant vendor settlements. | +**Bank** | Pointer to [**[]BankDetails**](BankDetails.md) | Specify the vendor bank account details to be updated. | [optional] +**Upi** | Pointer to [**[]UpiDetails**](UpiDetails.md) | Updated beneficiary upi vpa. Alphanumeric, dot (.), hyphen (-), at sign (@), and underscore allowed (100 character limit). Note: underscore and dot (.) gets accepted before and after @, but hyphen (-) is only accepted before @ sign. | [optional] +**KycDetails** | [**[]KycDetails**](KycDetails.md) | Specify the kyc details that should be updated. | + +## Methods + +### NewUpdateVendorRequest + +`func NewUpdateVendorRequest(status string, name string, email string, phone string, scheduleOption float32, kycDetails []KycDetails, ) *UpdateVendorRequest` + +NewUpdateVendorRequest instantiates a new UpdateVendorRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdateVendorRequestWithDefaults + +`func NewUpdateVendorRequestWithDefaults() *UpdateVendorRequest` + +NewUpdateVendorRequestWithDefaults instantiates a new UpdateVendorRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *UpdateVendorRequest) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *UpdateVendorRequest) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *UpdateVendorRequest) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetName + +`func (o *UpdateVendorRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UpdateVendorRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UpdateVendorRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetEmail + +`func (o *UpdateVendorRequest) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *UpdateVendorRequest) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *UpdateVendorRequest) SetEmail(v string)` + +SetEmail sets Email field to given value. + + +### GetPhone + +`func (o *UpdateVendorRequest) GetPhone() string` + +GetPhone returns the Phone field if non-nil, zero value otherwise. + +### GetPhoneOk + +`func (o *UpdateVendorRequest) GetPhoneOk() (*string, bool)` + +GetPhoneOk returns a tuple with the Phone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhone + +`func (o *UpdateVendorRequest) SetPhone(v string)` + +SetPhone sets Phone field to given value. + + +### GetVerifyAccount + +`func (o *UpdateVendorRequest) GetVerifyAccount() bool` + +GetVerifyAccount returns the VerifyAccount field if non-nil, zero value otherwise. + +### GetVerifyAccountOk + +`func (o *UpdateVendorRequest) GetVerifyAccountOk() (*bool, bool)` + +GetVerifyAccountOk returns a tuple with the VerifyAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerifyAccount + +`func (o *UpdateVendorRequest) SetVerifyAccount(v bool)` + +SetVerifyAccount sets VerifyAccount field to given value. + +### HasVerifyAccount + +`func (o *UpdateVendorRequest) HasVerifyAccount() bool` + +HasVerifyAccount returns a boolean if a field has been set. + +### GetDashboardAccess + +`func (o *UpdateVendorRequest) GetDashboardAccess() bool` + +GetDashboardAccess returns the DashboardAccess field if non-nil, zero value otherwise. + +### GetDashboardAccessOk + +`func (o *UpdateVendorRequest) GetDashboardAccessOk() (*bool, bool)` + +GetDashboardAccessOk returns a tuple with the DashboardAccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDashboardAccess + +`func (o *UpdateVendorRequest) SetDashboardAccess(v bool)` + +SetDashboardAccess sets DashboardAccess field to given value. + +### HasDashboardAccess + +`func (o *UpdateVendorRequest) HasDashboardAccess() bool` + +HasDashboardAccess returns a boolean if a field has been set. + +### GetScheduleOption + +`func (o *UpdateVendorRequest) GetScheduleOption() float32` + +GetScheduleOption returns the ScheduleOption field if non-nil, zero value otherwise. + +### GetScheduleOptionOk + +`func (o *UpdateVendorRequest) GetScheduleOptionOk() (*float32, bool)` + +GetScheduleOptionOk returns a tuple with the ScheduleOption field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheduleOption + +`func (o *UpdateVendorRequest) SetScheduleOption(v float32)` + +SetScheduleOption sets ScheduleOption field to given value. + + +### GetBank + +`func (o *UpdateVendorRequest) GetBank() []BankDetails` + +GetBank returns the Bank field if non-nil, zero value otherwise. + +### GetBankOk + +`func (o *UpdateVendorRequest) GetBankOk() (*[]BankDetails, bool)` + +GetBankOk returns a tuple with the Bank field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBank + +`func (o *UpdateVendorRequest) SetBank(v []BankDetails)` + +SetBank sets Bank field to given value. + +### HasBank + +`func (o *UpdateVendorRequest) HasBank() bool` + +HasBank returns a boolean if a field has been set. + +### GetUpi + +`func (o *UpdateVendorRequest) GetUpi() []UpiDetails` + +GetUpi returns the Upi field if non-nil, zero value otherwise. + +### GetUpiOk + +`func (o *UpdateVendorRequest) GetUpiOk() (*[]UpiDetails, bool)` + +GetUpiOk returns a tuple with the Upi field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpi + +`func (o *UpdateVendorRequest) SetUpi(v []UpiDetails)` + +SetUpi sets Upi field to given value. + +### HasUpi + +`func (o *UpdateVendorRequest) HasUpi() bool` + +HasUpi returns a boolean if a field has been set. + +### GetKycDetails + +`func (o *UpdateVendorRequest) GetKycDetails() []KycDetails` + +GetKycDetails returns the KycDetails field if non-nil, zero value otherwise. + +### GetKycDetailsOk + +`func (o *UpdateVendorRequest) GetKycDetailsOk() (*[]KycDetails, bool)` + +GetKycDetailsOk returns a tuple with the KycDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKycDetails + +`func (o *UpdateVendorRequest) SetKycDetails(v []KycDetails)` + +SetKycDetails sets KycDetails field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateVendorResponse.md b/docs/UpdateVendorResponse.md new file mode 100644 index 0000000..c8e21f2 --- /dev/null +++ b/docs/UpdateVendorResponse.md @@ -0,0 +1,472 @@ +# UpdateVendorResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**Bank** | Pointer to [**[]BankDetails**](BankDetails.md) | | [optional] +**Upi** | Pointer to **string** | | [optional] +**AddedOn** | Pointer to **string** | | [optional] +**UpdatedOn** | Pointer to **string** | | [optional] +**VendorType** | Pointer to **string** | | [optional] +**AccountType** | Pointer to **string** | | [optional] +**BusinessType** | Pointer to **string** | | [optional] +**Phone** | Pointer to **float32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**VendorId** | Pointer to **string** | | [optional] +**ScheduleOption** | Pointer to [**[]ScheduleOption**](ScheduleOption.md) | | [optional] +**KycDetails** | Pointer to [**[]KycDetails**](KycDetails.md) | | [optional] +**DashboardAccess** | Pointer to **bool** | | [optional] +**BankDetails** | Pointer to **string** | | [optional] +**RelatedDocs** | Pointer to [**[]VendorEntityRelatedDocsInner**](VendorEntityRelatedDocsInner.md) | | [optional] + +## Methods + +### NewUpdateVendorResponse + +`func NewUpdateVendorResponse() *UpdateVendorResponse` + +NewUpdateVendorResponse instantiates a new UpdateVendorResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdateVendorResponseWithDefaults + +`func NewUpdateVendorResponseWithDefaults() *UpdateVendorResponse` + +NewUpdateVendorResponseWithDefaults instantiates a new UpdateVendorResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEmail + +`func (o *UpdateVendorResponse) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *UpdateVendorResponse) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *UpdateVendorResponse) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *UpdateVendorResponse) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetStatus + +`func (o *UpdateVendorResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *UpdateVendorResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *UpdateVendorResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *UpdateVendorResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetBank + +`func (o *UpdateVendorResponse) GetBank() []BankDetails` + +GetBank returns the Bank field if non-nil, zero value otherwise. + +### GetBankOk + +`func (o *UpdateVendorResponse) GetBankOk() (*[]BankDetails, bool)` + +GetBankOk returns a tuple with the Bank field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBank + +`func (o *UpdateVendorResponse) SetBank(v []BankDetails)` + +SetBank sets Bank field to given value. + +### HasBank + +`func (o *UpdateVendorResponse) HasBank() bool` + +HasBank returns a boolean if a field has been set. + +### GetUpi + +`func (o *UpdateVendorResponse) GetUpi() string` + +GetUpi returns the Upi field if non-nil, zero value otherwise. + +### GetUpiOk + +`func (o *UpdateVendorResponse) GetUpiOk() (*string, bool)` + +GetUpiOk returns a tuple with the Upi field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpi + +`func (o *UpdateVendorResponse) SetUpi(v string)` + +SetUpi sets Upi field to given value. + +### HasUpi + +`func (o *UpdateVendorResponse) HasUpi() bool` + +HasUpi returns a boolean if a field has been set. + +### GetAddedOn + +`func (o *UpdateVendorResponse) GetAddedOn() string` + +GetAddedOn returns the AddedOn field if non-nil, zero value otherwise. + +### GetAddedOnOk + +`func (o *UpdateVendorResponse) GetAddedOnOk() (*string, bool)` + +GetAddedOnOk returns a tuple with the AddedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddedOn + +`func (o *UpdateVendorResponse) SetAddedOn(v string)` + +SetAddedOn sets AddedOn field to given value. + +### HasAddedOn + +`func (o *UpdateVendorResponse) HasAddedOn() bool` + +HasAddedOn returns a boolean if a field has been set. + +### GetUpdatedOn + +`func (o *UpdateVendorResponse) GetUpdatedOn() string` + +GetUpdatedOn returns the UpdatedOn field if non-nil, zero value otherwise. + +### GetUpdatedOnOk + +`func (o *UpdateVendorResponse) GetUpdatedOnOk() (*string, bool)` + +GetUpdatedOnOk returns a tuple with the UpdatedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedOn + +`func (o *UpdateVendorResponse) SetUpdatedOn(v string)` + +SetUpdatedOn sets UpdatedOn field to given value. + +### HasUpdatedOn + +`func (o *UpdateVendorResponse) HasUpdatedOn() bool` + +HasUpdatedOn returns a boolean if a field has been set. + +### GetVendorType + +`func (o *UpdateVendorResponse) GetVendorType() string` + +GetVendorType returns the VendorType field if non-nil, zero value otherwise. + +### GetVendorTypeOk + +`func (o *UpdateVendorResponse) GetVendorTypeOk() (*string, bool)` + +GetVendorTypeOk returns a tuple with the VendorType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendorType + +`func (o *UpdateVendorResponse) SetVendorType(v string)` + +SetVendorType sets VendorType field to given value. + +### HasVendorType + +`func (o *UpdateVendorResponse) HasVendorType() bool` + +HasVendorType returns a boolean if a field has been set. + +### GetAccountType + +`func (o *UpdateVendorResponse) GetAccountType() string` + +GetAccountType returns the AccountType field if non-nil, zero value otherwise. + +### GetAccountTypeOk + +`func (o *UpdateVendorResponse) GetAccountTypeOk() (*string, bool)` + +GetAccountTypeOk returns a tuple with the AccountType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountType + +`func (o *UpdateVendorResponse) SetAccountType(v string)` + +SetAccountType sets AccountType field to given value. + +### HasAccountType + +`func (o *UpdateVendorResponse) HasAccountType() bool` + +HasAccountType returns a boolean if a field has been set. + +### GetBusinessType + +`func (o *UpdateVendorResponse) GetBusinessType() string` + +GetBusinessType returns the BusinessType field if non-nil, zero value otherwise. + +### GetBusinessTypeOk + +`func (o *UpdateVendorResponse) GetBusinessTypeOk() (*string, bool)` + +GetBusinessTypeOk returns a tuple with the BusinessType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBusinessType + +`func (o *UpdateVendorResponse) SetBusinessType(v string)` + +SetBusinessType sets BusinessType field to given value. + +### HasBusinessType + +`func (o *UpdateVendorResponse) HasBusinessType() bool` + +HasBusinessType returns a boolean if a field has been set. + +### GetPhone + +`func (o *UpdateVendorResponse) GetPhone() float32` + +GetPhone returns the Phone field if non-nil, zero value otherwise. + +### GetPhoneOk + +`func (o *UpdateVendorResponse) GetPhoneOk() (*float32, bool)` + +GetPhoneOk returns a tuple with the Phone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhone + +`func (o *UpdateVendorResponse) SetPhone(v float32)` + +SetPhone sets Phone field to given value. + +### HasPhone + +`func (o *UpdateVendorResponse) HasPhone() bool` + +HasPhone returns a boolean if a field has been set. + +### GetName + +`func (o *UpdateVendorResponse) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UpdateVendorResponse) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UpdateVendorResponse) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *UpdateVendorResponse) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetVendorId + +`func (o *UpdateVendorResponse) GetVendorId() string` + +GetVendorId returns the VendorId field if non-nil, zero value otherwise. + +### GetVendorIdOk + +`func (o *UpdateVendorResponse) GetVendorIdOk() (*string, bool)` + +GetVendorIdOk returns a tuple with the VendorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendorId + +`func (o *UpdateVendorResponse) SetVendorId(v string)` + +SetVendorId sets VendorId field to given value. + +### HasVendorId + +`func (o *UpdateVendorResponse) HasVendorId() bool` + +HasVendorId returns a boolean if a field has been set. + +### GetScheduleOption + +`func (o *UpdateVendorResponse) GetScheduleOption() []ScheduleOption` + +GetScheduleOption returns the ScheduleOption field if non-nil, zero value otherwise. + +### GetScheduleOptionOk + +`func (o *UpdateVendorResponse) GetScheduleOptionOk() (*[]ScheduleOption, bool)` + +GetScheduleOptionOk returns a tuple with the ScheduleOption field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheduleOption + +`func (o *UpdateVendorResponse) SetScheduleOption(v []ScheduleOption)` + +SetScheduleOption sets ScheduleOption field to given value. + +### HasScheduleOption + +`func (o *UpdateVendorResponse) HasScheduleOption() bool` + +HasScheduleOption returns a boolean if a field has been set. + +### GetKycDetails + +`func (o *UpdateVendorResponse) GetKycDetails() []KycDetails` + +GetKycDetails returns the KycDetails field if non-nil, zero value otherwise. + +### GetKycDetailsOk + +`func (o *UpdateVendorResponse) GetKycDetailsOk() (*[]KycDetails, bool)` + +GetKycDetailsOk returns a tuple with the KycDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKycDetails + +`func (o *UpdateVendorResponse) SetKycDetails(v []KycDetails)` + +SetKycDetails sets KycDetails field to given value. + +### HasKycDetails + +`func (o *UpdateVendorResponse) HasKycDetails() bool` + +HasKycDetails returns a boolean if a field has been set. + +### GetDashboardAccess + +`func (o *UpdateVendorResponse) GetDashboardAccess() bool` + +GetDashboardAccess returns the DashboardAccess field if non-nil, zero value otherwise. + +### GetDashboardAccessOk + +`func (o *UpdateVendorResponse) GetDashboardAccessOk() (*bool, bool)` + +GetDashboardAccessOk returns a tuple with the DashboardAccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDashboardAccess + +`func (o *UpdateVendorResponse) SetDashboardAccess(v bool)` + +SetDashboardAccess sets DashboardAccess field to given value. + +### HasDashboardAccess + +`func (o *UpdateVendorResponse) HasDashboardAccess() bool` + +HasDashboardAccess returns a boolean if a field has been set. + +### GetBankDetails + +`func (o *UpdateVendorResponse) GetBankDetails() string` + +GetBankDetails returns the BankDetails field if non-nil, zero value otherwise. + +### GetBankDetailsOk + +`func (o *UpdateVendorResponse) GetBankDetailsOk() (*string, bool)` + +GetBankDetailsOk returns a tuple with the BankDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBankDetails + +`func (o *UpdateVendorResponse) SetBankDetails(v string)` + +SetBankDetails sets BankDetails field to given value. + +### HasBankDetails + +`func (o *UpdateVendorResponse) HasBankDetails() bool` + +HasBankDetails returns a boolean if a field has been set. + +### GetRelatedDocs + +`func (o *UpdateVendorResponse) GetRelatedDocs() []VendorEntityRelatedDocsInner` + +GetRelatedDocs returns the RelatedDocs field if non-nil, zero value otherwise. + +### GetRelatedDocsOk + +`func (o *UpdateVendorResponse) GetRelatedDocsOk() (*[]VendorEntityRelatedDocsInner, bool)` + +GetRelatedDocsOk returns a tuple with the RelatedDocs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelatedDocs + +`func (o *UpdateVendorResponse) SetRelatedDocs(v []VendorEntityRelatedDocsInner)` + +SetRelatedDocs sets RelatedDocs field to given value. + +### HasRelatedDocs + +`func (o *UpdateVendorResponse) HasRelatedDocs() bool` + +HasRelatedDocs returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpiDetails.md b/docs/UpiDetails.md new file mode 100644 index 0000000..c963131 --- /dev/null +++ b/docs/UpiDetails.md @@ -0,0 +1,82 @@ +# UpiDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Vpa** | Pointer to **string** | | [optional] +**AccountHolder** | Pointer to **string** | | [optional] + +## Methods + +### NewUpiDetails + +`func NewUpiDetails() *UpiDetails` + +NewUpiDetails instantiates a new UpiDetails object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpiDetailsWithDefaults + +`func NewUpiDetailsWithDefaults() *UpiDetails` + +NewUpiDetailsWithDefaults instantiates a new UpiDetails object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetVpa + +`func (o *UpiDetails) GetVpa() string` + +GetVpa returns the Vpa field if non-nil, zero value otherwise. + +### GetVpaOk + +`func (o *UpiDetails) GetVpaOk() (*string, bool)` + +GetVpaOk returns a tuple with the Vpa field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVpa + +`func (o *UpiDetails) SetVpa(v string)` + +SetVpa sets Vpa field to given value. + +### HasVpa + +`func (o *UpiDetails) HasVpa() bool` + +HasVpa returns a boolean if a field has been set. + +### GetAccountHolder + +`func (o *UpiDetails) GetAccountHolder() string` + +GetAccountHolder returns the AccountHolder field if non-nil, zero value otherwise. + +### GetAccountHolderOk + +`func (o *UpiDetails) GetAccountHolderOk() (*string, bool)` + +GetAccountHolderOk returns a tuple with the AccountHolder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountHolder + +`func (o *UpiDetails) SetAccountHolder(v string)` + +SetAccountHolder sets AccountHolder field to given value. + +### HasAccountHolder + +`func (o *UpiDetails) HasAccountHolder() bool` + +HasAccountHolder returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UploadVendorDocsRequest.md b/docs/UploadVendorDocsRequest.md new file mode 100644 index 0000000..d71cdae --- /dev/null +++ b/docs/UploadVendorDocsRequest.md @@ -0,0 +1,108 @@ +# UploadVendorDocsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DocType** | Pointer to **string** | Mention the type of the document you are uploading. Possible values: UIDAI_FRONT, UIDAI_BACK, UIDAI_NUMBER, DL, DL_NUMBER, PASSPORT_FRONT, PASSPORT_BACK, PASSPORT_NUMBER, VOTER_ID, VOTER_ID_NUMBER, PAN, PAN_NUMBER, GST, GSTIN_NUMBER, CIN, CIN_NUMBER, NBFC_CERTIFICATE. If the doc type ends with a number you should add the doc value else upload the doc file. | [optional] +**DocValue** | Pointer to ***os.File** | Enter the display name of the uploaded file. | [optional] +**File** | Pointer to **string** | Select the document that should be uploaded or provide the path of that file. You cannot upload a file that is more than 2MB in size. | [optional] + +## Methods + +### NewUploadVendorDocsRequest + +`func NewUploadVendorDocsRequest() *UploadVendorDocsRequest` + +NewUploadVendorDocsRequest instantiates a new UploadVendorDocsRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUploadVendorDocsRequestWithDefaults + +`func NewUploadVendorDocsRequestWithDefaults() *UploadVendorDocsRequest` + +NewUploadVendorDocsRequestWithDefaults instantiates a new UploadVendorDocsRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDocType + +`func (o *UploadVendorDocsRequest) GetDocType() string` + +GetDocType returns the DocType field if non-nil, zero value otherwise. + +### GetDocTypeOk + +`func (o *UploadVendorDocsRequest) GetDocTypeOk() (*string, bool)` + +GetDocTypeOk returns a tuple with the DocType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDocType + +`func (o *UploadVendorDocsRequest) SetDocType(v string)` + +SetDocType sets DocType field to given value. + +### HasDocType + +`func (o *UploadVendorDocsRequest) HasDocType() bool` + +HasDocType returns a boolean if a field has been set. + +### GetDocValue + +`func (o *UploadVendorDocsRequest) GetDocValue() *os.File` + +GetDocValue returns the DocValue field if non-nil, zero value otherwise. + +### GetDocValueOk + +`func (o *UploadVendorDocsRequest) GetDocValueOk() (**os.File, bool)` + +GetDocValueOk returns a tuple with the DocValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDocValue + +`func (o *UploadVendorDocsRequest) SetDocValue(v *os.File)` + +SetDocValue sets DocValue field to given value. + +### HasDocValue + +`func (o *UploadVendorDocsRequest) HasDocValue() bool` + +HasDocValue returns a boolean if a field has been set. + +### GetFile + +`func (o *UploadVendorDocsRequest) GetFile() string` + +GetFile returns the File field if non-nil, zero value otherwise. + +### GetFileOk + +`func (o *UploadVendorDocsRequest) GetFileOk() (*string, bool)` + +GetFileOk returns a tuple with the File field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFile + +`func (o *UploadVendorDocsRequest) SetFile(v string)` + +SetFile sets File field to given value. + +### HasFile + +`func (o *UploadVendorDocsRequest) HasFile() bool` + +HasFile returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UploadVendorDocumentsResponse.md b/docs/UploadVendorDocumentsResponse.md new file mode 100644 index 0000000..63c9e2b --- /dev/null +++ b/docs/UploadVendorDocumentsResponse.md @@ -0,0 +1,160 @@ +# UploadVendorDocumentsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VendorId** | Pointer to **string** | | [optional] +**DocType** | Pointer to **string** | | [optional] +**DocValue** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**Remarks** | Pointer to **string** | | [optional] + +## Methods + +### NewUploadVendorDocumentsResponse + +`func NewUploadVendorDocumentsResponse() *UploadVendorDocumentsResponse` + +NewUploadVendorDocumentsResponse instantiates a new UploadVendorDocumentsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUploadVendorDocumentsResponseWithDefaults + +`func NewUploadVendorDocumentsResponseWithDefaults() *UploadVendorDocumentsResponse` + +NewUploadVendorDocumentsResponseWithDefaults instantiates a new UploadVendorDocumentsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetVendorId + +`func (o *UploadVendorDocumentsResponse) GetVendorId() string` + +GetVendorId returns the VendorId field if non-nil, zero value otherwise. + +### GetVendorIdOk + +`func (o *UploadVendorDocumentsResponse) GetVendorIdOk() (*string, bool)` + +GetVendorIdOk returns a tuple with the VendorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendorId + +`func (o *UploadVendorDocumentsResponse) SetVendorId(v string)` + +SetVendorId sets VendorId field to given value. + +### HasVendorId + +`func (o *UploadVendorDocumentsResponse) HasVendorId() bool` + +HasVendorId returns a boolean if a field has been set. + +### GetDocType + +`func (o *UploadVendorDocumentsResponse) GetDocType() string` + +GetDocType returns the DocType field if non-nil, zero value otherwise. + +### GetDocTypeOk + +`func (o *UploadVendorDocumentsResponse) GetDocTypeOk() (*string, bool)` + +GetDocTypeOk returns a tuple with the DocType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDocType + +`func (o *UploadVendorDocumentsResponse) SetDocType(v string)` + +SetDocType sets DocType field to given value. + +### HasDocType + +`func (o *UploadVendorDocumentsResponse) HasDocType() bool` + +HasDocType returns a boolean if a field has been set. + +### GetDocValue + +`func (o *UploadVendorDocumentsResponse) GetDocValue() string` + +GetDocValue returns the DocValue field if non-nil, zero value otherwise. + +### GetDocValueOk + +`func (o *UploadVendorDocumentsResponse) GetDocValueOk() (*string, bool)` + +GetDocValueOk returns a tuple with the DocValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDocValue + +`func (o *UploadVendorDocumentsResponse) SetDocValue(v string)` + +SetDocValue sets DocValue field to given value. + +### HasDocValue + +`func (o *UploadVendorDocumentsResponse) HasDocValue() bool` + +HasDocValue returns a boolean if a field has been set. + +### GetStatus + +`func (o *UploadVendorDocumentsResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *UploadVendorDocumentsResponse) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *UploadVendorDocumentsResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *UploadVendorDocumentsResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRemarks + +`func (o *UploadVendorDocumentsResponse) GetRemarks() string` + +GetRemarks returns the Remarks field if non-nil, zero value otherwise. + +### GetRemarksOk + +`func (o *UploadVendorDocumentsResponse) GetRemarksOk() (*string, bool)` + +GetRemarksOk returns a tuple with the Remarks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemarks + +`func (o *UploadVendorDocumentsResponse) SetRemarks(v string)` + +SetRemarks sets Remarks field to given value. + +### HasRemarks + +`func (o *UploadVendorDocumentsResponse) HasRemarks() bool` + +HasRemarks returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VendorBalance.md b/docs/VendorBalance.md new file mode 100644 index 0000000..a91e9bd --- /dev/null +++ b/docs/VendorBalance.md @@ -0,0 +1,134 @@ +# VendorBalance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MerchantId** | Pointer to **float32** | | [optional] +**VendorId** | Pointer to **string** | | [optional] +**MerchantUnsettled** | Pointer to **float32** | | [optional] +**VendorUnsettled** | Pointer to **float32** | | [optional] + +## Methods + +### NewVendorBalance + +`func NewVendorBalance() *VendorBalance` + +NewVendorBalance instantiates a new VendorBalance object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVendorBalanceWithDefaults + +`func NewVendorBalanceWithDefaults() *VendorBalance` + +NewVendorBalanceWithDefaults instantiates a new VendorBalance object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMerchantId + +`func (o *VendorBalance) GetMerchantId() float32` + +GetMerchantId returns the MerchantId field if non-nil, zero value otherwise. + +### GetMerchantIdOk + +`func (o *VendorBalance) GetMerchantIdOk() (*float32, bool)` + +GetMerchantIdOk returns a tuple with the MerchantId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMerchantId + +`func (o *VendorBalance) SetMerchantId(v float32)` + +SetMerchantId sets MerchantId field to given value. + +### HasMerchantId + +`func (o *VendorBalance) HasMerchantId() bool` + +HasMerchantId returns a boolean if a field has been set. + +### GetVendorId + +`func (o *VendorBalance) GetVendorId() string` + +GetVendorId returns the VendorId field if non-nil, zero value otherwise. + +### GetVendorIdOk + +`func (o *VendorBalance) GetVendorIdOk() (*string, bool)` + +GetVendorIdOk returns a tuple with the VendorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendorId + +`func (o *VendorBalance) SetVendorId(v string)` + +SetVendorId sets VendorId field to given value. + +### HasVendorId + +`func (o *VendorBalance) HasVendorId() bool` + +HasVendorId returns a boolean if a field has been set. + +### GetMerchantUnsettled + +`func (o *VendorBalance) GetMerchantUnsettled() float32` + +GetMerchantUnsettled returns the MerchantUnsettled field if non-nil, zero value otherwise. + +### GetMerchantUnsettledOk + +`func (o *VendorBalance) GetMerchantUnsettledOk() (*float32, bool)` + +GetMerchantUnsettledOk returns a tuple with the MerchantUnsettled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMerchantUnsettled + +`func (o *VendorBalance) SetMerchantUnsettled(v float32)` + +SetMerchantUnsettled sets MerchantUnsettled field to given value. + +### HasMerchantUnsettled + +`func (o *VendorBalance) HasMerchantUnsettled() bool` + +HasMerchantUnsettled returns a boolean if a field has been set. + +### GetVendorUnsettled + +`func (o *VendorBalance) GetVendorUnsettled() float32` + +GetVendorUnsettled returns the VendorUnsettled field if non-nil, zero value otherwise. + +### GetVendorUnsettledOk + +`func (o *VendorBalance) GetVendorUnsettledOk() (*float32, bool)` + +GetVendorUnsettledOk returns a tuple with the VendorUnsettled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendorUnsettled + +`func (o *VendorBalance) SetVendorUnsettled(v float32)` + +SetVendorUnsettled sets VendorUnsettled field to given value. + +### HasVendorUnsettled + +`func (o *VendorBalance) HasVendorUnsettled() bool` + +HasVendorUnsettled returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VendorBalanceTransferCharges.md b/docs/VendorBalanceTransferCharges.md new file mode 100644 index 0000000..4c89924 --- /dev/null +++ b/docs/VendorBalanceTransferCharges.md @@ -0,0 +1,160 @@ +# VendorBalanceTransferCharges + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ServiceCharges** | Pointer to **float32** | | [optional] +**ServiceTax** | Pointer to **float32** | | [optional] +**Amount** | Pointer to **float32** | | [optional] +**BilledTo** | Pointer to **string** | | [optional] +**IsPostpaid** | Pointer to **bool** | | [optional] + +## Methods + +### NewVendorBalanceTransferCharges + +`func NewVendorBalanceTransferCharges() *VendorBalanceTransferCharges` + +NewVendorBalanceTransferCharges instantiates a new VendorBalanceTransferCharges object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVendorBalanceTransferChargesWithDefaults + +`func NewVendorBalanceTransferChargesWithDefaults() *VendorBalanceTransferCharges` + +NewVendorBalanceTransferChargesWithDefaults instantiates a new VendorBalanceTransferCharges object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetServiceCharges + +`func (o *VendorBalanceTransferCharges) GetServiceCharges() float32` + +GetServiceCharges returns the ServiceCharges field if non-nil, zero value otherwise. + +### GetServiceChargesOk + +`func (o *VendorBalanceTransferCharges) GetServiceChargesOk() (*float32, bool)` + +GetServiceChargesOk returns a tuple with the ServiceCharges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceCharges + +`func (o *VendorBalanceTransferCharges) SetServiceCharges(v float32)` + +SetServiceCharges sets ServiceCharges field to given value. + +### HasServiceCharges + +`func (o *VendorBalanceTransferCharges) HasServiceCharges() bool` + +HasServiceCharges returns a boolean if a field has been set. + +### GetServiceTax + +`func (o *VendorBalanceTransferCharges) GetServiceTax() float32` + +GetServiceTax returns the ServiceTax field if non-nil, zero value otherwise. + +### GetServiceTaxOk + +`func (o *VendorBalanceTransferCharges) GetServiceTaxOk() (*float32, bool)` + +GetServiceTaxOk returns a tuple with the ServiceTax field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceTax + +`func (o *VendorBalanceTransferCharges) SetServiceTax(v float32)` + +SetServiceTax sets ServiceTax field to given value. + +### HasServiceTax + +`func (o *VendorBalanceTransferCharges) HasServiceTax() bool` + +HasServiceTax returns a boolean if a field has been set. + +### GetAmount + +`func (o *VendorBalanceTransferCharges) GetAmount() float32` + +GetAmount returns the Amount field if non-nil, zero value otherwise. + +### GetAmountOk + +`func (o *VendorBalanceTransferCharges) GetAmountOk() (*float32, bool)` + +GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAmount + +`func (o *VendorBalanceTransferCharges) SetAmount(v float32)` + +SetAmount sets Amount field to given value. + +### HasAmount + +`func (o *VendorBalanceTransferCharges) HasAmount() bool` + +HasAmount returns a boolean if a field has been set. + +### GetBilledTo + +`func (o *VendorBalanceTransferCharges) GetBilledTo() string` + +GetBilledTo returns the BilledTo field if non-nil, zero value otherwise. + +### GetBilledToOk + +`func (o *VendorBalanceTransferCharges) GetBilledToOk() (*string, bool)` + +GetBilledToOk returns a tuple with the BilledTo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBilledTo + +`func (o *VendorBalanceTransferCharges) SetBilledTo(v string)` + +SetBilledTo sets BilledTo field to given value. + +### HasBilledTo + +`func (o *VendorBalanceTransferCharges) HasBilledTo() bool` + +HasBilledTo returns a boolean if a field has been set. + +### GetIsPostpaid + +`func (o *VendorBalanceTransferCharges) GetIsPostpaid() bool` + +GetIsPostpaid returns the IsPostpaid field if non-nil, zero value otherwise. + +### GetIsPostpaidOk + +`func (o *VendorBalanceTransferCharges) GetIsPostpaidOk() (*bool, bool)` + +GetIsPostpaidOk returns a tuple with the IsPostpaid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPostpaid + +`func (o *VendorBalanceTransferCharges) SetIsPostpaid(v bool)` + +SetIsPostpaid sets IsPostpaid field to given value. + +### HasIsPostpaid + +`func (o *VendorBalanceTransferCharges) HasIsPostpaid() bool` + +HasIsPostpaid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VendorDocumentDownloadResponse.md b/docs/VendorDocumentDownloadResponse.md new file mode 100644 index 0000000..c789e7a --- /dev/null +++ b/docs/VendorDocumentDownloadResponse.md @@ -0,0 +1,56 @@ +# VendorDocumentDownloadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DownloadUrl** | Pointer to **string** | | [optional] + +## Methods + +### NewVendorDocumentDownloadResponse + +`func NewVendorDocumentDownloadResponse() *VendorDocumentDownloadResponse` + +NewVendorDocumentDownloadResponse instantiates a new VendorDocumentDownloadResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVendorDocumentDownloadResponseWithDefaults + +`func NewVendorDocumentDownloadResponseWithDefaults() *VendorDocumentDownloadResponse` + +NewVendorDocumentDownloadResponseWithDefaults instantiates a new VendorDocumentDownloadResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDownloadUrl + +`func (o *VendorDocumentDownloadResponse) GetDownloadUrl() string` + +GetDownloadUrl returns the DownloadUrl field if non-nil, zero value otherwise. + +### GetDownloadUrlOk + +`func (o *VendorDocumentDownloadResponse) GetDownloadUrlOk() (*string, bool)` + +GetDownloadUrlOk returns a tuple with the DownloadUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDownloadUrl + +`func (o *VendorDocumentDownloadResponse) SetDownloadUrl(v string)` + +SetDownloadUrl sets DownloadUrl field to given value. + +### HasDownloadUrl + +`func (o *VendorDocumentDownloadResponse) HasDownloadUrl() bool` + +HasDownloadUrl returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VendorDocumentsResponse.md b/docs/VendorDocumentsResponse.md new file mode 100644 index 0000000..55c7b72 --- /dev/null +++ b/docs/VendorDocumentsResponse.md @@ -0,0 +1,56 @@ +# VendorDocumentsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Documents** | Pointer to [**[]VendorEntityRelatedDocsInner**](VendorEntityRelatedDocsInner.md) | | [optional] + +## Methods + +### NewVendorDocumentsResponse + +`func NewVendorDocumentsResponse() *VendorDocumentsResponse` + +NewVendorDocumentsResponse instantiates a new VendorDocumentsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVendorDocumentsResponseWithDefaults + +`func NewVendorDocumentsResponseWithDefaults() *VendorDocumentsResponse` + +NewVendorDocumentsResponseWithDefaults instantiates a new VendorDocumentsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDocuments + +`func (o *VendorDocumentsResponse) GetDocuments() []VendorEntityRelatedDocsInner` + +GetDocuments returns the Documents field if non-nil, zero value otherwise. + +### GetDocumentsOk + +`func (o *VendorDocumentsResponse) GetDocumentsOk() (*[]VendorEntityRelatedDocsInner, bool)` + +GetDocumentsOk returns a tuple with the Documents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDocuments + +`func (o *VendorDocumentsResponse) SetDocuments(v []VendorEntityRelatedDocsInner)` + +SetDocuments sets Documents field to given value. + +### HasDocuments + +`func (o *VendorDocumentsResponse) HasDocuments() bool` + +HasDocuments returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VendorEntity.md b/docs/VendorEntity.md new file mode 100644 index 0000000..d5129f7 --- /dev/null +++ b/docs/VendorEntity.md @@ -0,0 +1,394 @@ +# VendorEntity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**Phone** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**VendorId** | Pointer to **string** | | [optional] +**AddedOn** | Pointer to **string** | | [optional] +**UpdatedOn** | Pointer to **string** | | [optional] +**Bank** | Pointer to [**[]BankDetails**](BankDetails.md) | | [optional] +**Upi** | Pointer to **string** | | [optional] +**ScheduleOption** | Pointer to [**[]ScheduleOption**](ScheduleOption.md) | | [optional] +**VendorType** | Pointer to **string** | | [optional] +**AccountType** | Pointer to **string** | | [optional] +**BusinessType** | Pointer to **string** | | [optional] +**RelatedDocs** | Pointer to [**[]VendorEntityRelatedDocsInner**](VendorEntityRelatedDocsInner.md) | | [optional] + +## Methods + +### NewVendorEntity + +`func NewVendorEntity() *VendorEntity` + +NewVendorEntity instantiates a new VendorEntity object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVendorEntityWithDefaults + +`func NewVendorEntityWithDefaults() *VendorEntity` + +NewVendorEntityWithDefaults instantiates a new VendorEntity object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEmail + +`func (o *VendorEntity) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *VendorEntity) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *VendorEntity) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *VendorEntity) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetStatus + +`func (o *VendorEntity) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *VendorEntity) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *VendorEntity) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *VendorEntity) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetPhone + +`func (o *VendorEntity) GetPhone() string` + +GetPhone returns the Phone field if non-nil, zero value otherwise. + +### GetPhoneOk + +`func (o *VendorEntity) GetPhoneOk() (*string, bool)` + +GetPhoneOk returns a tuple with the Phone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhone + +`func (o *VendorEntity) SetPhone(v string)` + +SetPhone sets Phone field to given value. + +### HasPhone + +`func (o *VendorEntity) HasPhone() bool` + +HasPhone returns a boolean if a field has been set. + +### GetName + +`func (o *VendorEntity) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *VendorEntity) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *VendorEntity) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *VendorEntity) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetVendorId + +`func (o *VendorEntity) GetVendorId() string` + +GetVendorId returns the VendorId field if non-nil, zero value otherwise. + +### GetVendorIdOk + +`func (o *VendorEntity) GetVendorIdOk() (*string, bool)` + +GetVendorIdOk returns a tuple with the VendorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendorId + +`func (o *VendorEntity) SetVendorId(v string)` + +SetVendorId sets VendorId field to given value. + +### HasVendorId + +`func (o *VendorEntity) HasVendorId() bool` + +HasVendorId returns a boolean if a field has been set. + +### GetAddedOn + +`func (o *VendorEntity) GetAddedOn() string` + +GetAddedOn returns the AddedOn field if non-nil, zero value otherwise. + +### GetAddedOnOk + +`func (o *VendorEntity) GetAddedOnOk() (*string, bool)` + +GetAddedOnOk returns a tuple with the AddedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddedOn + +`func (o *VendorEntity) SetAddedOn(v string)` + +SetAddedOn sets AddedOn field to given value. + +### HasAddedOn + +`func (o *VendorEntity) HasAddedOn() bool` + +HasAddedOn returns a boolean if a field has been set. + +### GetUpdatedOn + +`func (o *VendorEntity) GetUpdatedOn() string` + +GetUpdatedOn returns the UpdatedOn field if non-nil, zero value otherwise. + +### GetUpdatedOnOk + +`func (o *VendorEntity) GetUpdatedOnOk() (*string, bool)` + +GetUpdatedOnOk returns a tuple with the UpdatedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedOn + +`func (o *VendorEntity) SetUpdatedOn(v string)` + +SetUpdatedOn sets UpdatedOn field to given value. + +### HasUpdatedOn + +`func (o *VendorEntity) HasUpdatedOn() bool` + +HasUpdatedOn returns a boolean if a field has been set. + +### GetBank + +`func (o *VendorEntity) GetBank() []BankDetails` + +GetBank returns the Bank field if non-nil, zero value otherwise. + +### GetBankOk + +`func (o *VendorEntity) GetBankOk() (*[]BankDetails, bool)` + +GetBankOk returns a tuple with the Bank field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBank + +`func (o *VendorEntity) SetBank(v []BankDetails)` + +SetBank sets Bank field to given value. + +### HasBank + +`func (o *VendorEntity) HasBank() bool` + +HasBank returns a boolean if a field has been set. + +### GetUpi + +`func (o *VendorEntity) GetUpi() string` + +GetUpi returns the Upi field if non-nil, zero value otherwise. + +### GetUpiOk + +`func (o *VendorEntity) GetUpiOk() (*string, bool)` + +GetUpiOk returns a tuple with the Upi field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpi + +`func (o *VendorEntity) SetUpi(v string)` + +SetUpi sets Upi field to given value. + +### HasUpi + +`func (o *VendorEntity) HasUpi() bool` + +HasUpi returns a boolean if a field has been set. + +### GetScheduleOption + +`func (o *VendorEntity) GetScheduleOption() []ScheduleOption` + +GetScheduleOption returns the ScheduleOption field if non-nil, zero value otherwise. + +### GetScheduleOptionOk + +`func (o *VendorEntity) GetScheduleOptionOk() (*[]ScheduleOption, bool)` + +GetScheduleOptionOk returns a tuple with the ScheduleOption field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheduleOption + +`func (o *VendorEntity) SetScheduleOption(v []ScheduleOption)` + +SetScheduleOption sets ScheduleOption field to given value. + +### HasScheduleOption + +`func (o *VendorEntity) HasScheduleOption() bool` + +HasScheduleOption returns a boolean if a field has been set. + +### GetVendorType + +`func (o *VendorEntity) GetVendorType() string` + +GetVendorType returns the VendorType field if non-nil, zero value otherwise. + +### GetVendorTypeOk + +`func (o *VendorEntity) GetVendorTypeOk() (*string, bool)` + +GetVendorTypeOk returns a tuple with the VendorType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendorType + +`func (o *VendorEntity) SetVendorType(v string)` + +SetVendorType sets VendorType field to given value. + +### HasVendorType + +`func (o *VendorEntity) HasVendorType() bool` + +HasVendorType returns a boolean if a field has been set. + +### GetAccountType + +`func (o *VendorEntity) GetAccountType() string` + +GetAccountType returns the AccountType field if non-nil, zero value otherwise. + +### GetAccountTypeOk + +`func (o *VendorEntity) GetAccountTypeOk() (*string, bool)` + +GetAccountTypeOk returns a tuple with the AccountType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountType + +`func (o *VendorEntity) SetAccountType(v string)` + +SetAccountType sets AccountType field to given value. + +### HasAccountType + +`func (o *VendorEntity) HasAccountType() bool` + +HasAccountType returns a boolean if a field has been set. + +### GetBusinessType + +`func (o *VendorEntity) GetBusinessType() string` + +GetBusinessType returns the BusinessType field if non-nil, zero value otherwise. + +### GetBusinessTypeOk + +`func (o *VendorEntity) GetBusinessTypeOk() (*string, bool)` + +GetBusinessTypeOk returns a tuple with the BusinessType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBusinessType + +`func (o *VendorEntity) SetBusinessType(v string)` + +SetBusinessType sets BusinessType field to given value. + +### HasBusinessType + +`func (o *VendorEntity) HasBusinessType() bool` + +HasBusinessType returns a boolean if a field has been set. + +### GetRelatedDocs + +`func (o *VendorEntity) GetRelatedDocs() []VendorEntityRelatedDocsInner` + +GetRelatedDocs returns the RelatedDocs field if non-nil, zero value otherwise. + +### GetRelatedDocsOk + +`func (o *VendorEntity) GetRelatedDocsOk() (*[]VendorEntityRelatedDocsInner, bool)` + +GetRelatedDocsOk returns a tuple with the RelatedDocs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelatedDocs + +`func (o *VendorEntity) SetRelatedDocs(v []VendorEntityRelatedDocsInner)` + +SetRelatedDocs sets RelatedDocs field to given value. + +### HasRelatedDocs + +`func (o *VendorEntity) HasRelatedDocs() bool` + +HasRelatedDocs returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VendorEntityRelatedDocsInner.md b/docs/VendorEntityRelatedDocsInner.md new file mode 100644 index 0000000..3131391 --- /dev/null +++ b/docs/VendorEntityRelatedDocsInner.md @@ -0,0 +1,160 @@ +# VendorEntityRelatedDocsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**VendorId** | Pointer to **string** | | [optional] +**DocType** | Pointer to **string** | | [optional] +**DocValue** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**Remarks** | Pointer to **string** | | [optional] + +## Methods + +### NewVendorEntityRelatedDocsInner + +`func NewVendorEntityRelatedDocsInner() *VendorEntityRelatedDocsInner` + +NewVendorEntityRelatedDocsInner instantiates a new VendorEntityRelatedDocsInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVendorEntityRelatedDocsInnerWithDefaults + +`func NewVendorEntityRelatedDocsInnerWithDefaults() *VendorEntityRelatedDocsInner` + +NewVendorEntityRelatedDocsInnerWithDefaults instantiates a new VendorEntityRelatedDocsInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetVendorId + +`func (o *VendorEntityRelatedDocsInner) GetVendorId() string` + +GetVendorId returns the VendorId field if non-nil, zero value otherwise. + +### GetVendorIdOk + +`func (o *VendorEntityRelatedDocsInner) GetVendorIdOk() (*string, bool)` + +GetVendorIdOk returns a tuple with the VendorId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVendorId + +`func (o *VendorEntityRelatedDocsInner) SetVendorId(v string)` + +SetVendorId sets VendorId field to given value. + +### HasVendorId + +`func (o *VendorEntityRelatedDocsInner) HasVendorId() bool` + +HasVendorId returns a boolean if a field has been set. + +### GetDocType + +`func (o *VendorEntityRelatedDocsInner) GetDocType() string` + +GetDocType returns the DocType field if non-nil, zero value otherwise. + +### GetDocTypeOk + +`func (o *VendorEntityRelatedDocsInner) GetDocTypeOk() (*string, bool)` + +GetDocTypeOk returns a tuple with the DocType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDocType + +`func (o *VendorEntityRelatedDocsInner) SetDocType(v string)` + +SetDocType sets DocType field to given value. + +### HasDocType + +`func (o *VendorEntityRelatedDocsInner) HasDocType() bool` + +HasDocType returns a boolean if a field has been set. + +### GetDocValue + +`func (o *VendorEntityRelatedDocsInner) GetDocValue() string` + +GetDocValue returns the DocValue field if non-nil, zero value otherwise. + +### GetDocValueOk + +`func (o *VendorEntityRelatedDocsInner) GetDocValueOk() (*string, bool)` + +GetDocValueOk returns a tuple with the DocValue field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDocValue + +`func (o *VendorEntityRelatedDocsInner) SetDocValue(v string)` + +SetDocValue sets DocValue field to given value. + +### HasDocValue + +`func (o *VendorEntityRelatedDocsInner) HasDocValue() bool` + +HasDocValue returns a boolean if a field has been set. + +### GetStatus + +`func (o *VendorEntityRelatedDocsInner) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *VendorEntityRelatedDocsInner) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *VendorEntityRelatedDocsInner) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *VendorEntityRelatedDocsInner) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRemarks + +`func (o *VendorEntityRelatedDocsInner) GetRemarks() string` + +GetRemarks returns the Remarks field if non-nil, zero value otherwise. + +### GetRemarksOk + +`func (o *VendorEntityRelatedDocsInner) GetRemarksOk() (*string, bool)` + +GetRemarksOk returns a tuple with the Remarks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemarks + +`func (o *VendorEntityRelatedDocsInner) SetRemarks(v string)` + +SetRemarks sets Remarks field to given value. + +### HasRemarks + +`func (o *VendorEntityRelatedDocsInner) HasRemarks() bool` + +HasRemarks returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/model_adjust_vendor_balance_request.go b/model_adjust_vendor_balance_request.go new file mode 100644 index 0000000..e0fd777 --- /dev/null +++ b/model_adjust_vendor_balance_request.go @@ -0,0 +1,61 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the AdjustVendorBalanceRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AdjustVendorBalanceRequest{} + +// AdjustVendorBalanceRequest Adjust Vendor Balance Request +type AdjustVendorBalanceRequest struct { + // Mention to whom you want to transfer the on demand balance. Possible values - MERCHANT, VENDOR. + TransferFrom string `json:"transfer_from"` + // Mention the type of transfer. Possible values: ON_DEMAND. + TransferType string `json:"transfer_type"` + // Mention the on demand transfer amount. + TransferAmount float32 `json:"transfer_amount"` + // Mention remarks if any for the on demand transfer. + Remark *string `json:"remark,omitempty"` + // Provide additional data fields using tags. + Tags map[string]interface{} `json:"tags,omitempty"` +} + + +func (o AdjustVendorBalanceRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AdjustVendorBalanceRequest) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + toSerialize["transfer_from"] = o.TransferFrom + toSerialize["transfer_type"] = o.TransferType + toSerialize["transfer_amount"] = o.TransferAmount + if !IsNil(o.Remark) { + toSerialize["remark"] = o.Remark + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + return toSerialize, nil +} + + + diff --git a/model_adjust_vendor_balance_response.go b/model_adjust_vendor_balance_response.go new file mode 100644 index 0000000..cf39dc7 --- /dev/null +++ b/model_adjust_vendor_balance_response.go @@ -0,0 +1,58 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the AdjustVendorBalanceResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AdjustVendorBalanceResponse{} + +// AdjustVendorBalanceResponse Adjust Vendor Balance Response +type AdjustVendorBalanceResponse struct { + SettlementId *float32 `json:"settlement_id,omitempty"` + TransferDetails *TransferDetails `json:"transfer_details,omitempty"` + Balances *BalanceDetails `json:"balances,omitempty"` + Charges *ChargesDetails `json:"charges,omitempty"` +} + + +func (o AdjustVendorBalanceResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AdjustVendorBalanceResponse) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.SettlementId) { + toSerialize["settlement_id"] = o.SettlementId + } + if !IsNil(o.TransferDetails) { + toSerialize["transfer_details"] = o.TransferDetails + } + if !IsNil(o.Balances) { + toSerialize["balances"] = o.Balances + } + if !IsNil(o.Charges) { + toSerialize["charges"] = o.Charges + } + return toSerialize, nil +} + + + diff --git a/model_balance_details.go b/model_balance_details.go new file mode 100644 index 0000000..760ea05 --- /dev/null +++ b/model_balance_details.go @@ -0,0 +1,58 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the BalanceDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BalanceDetails{} + +// BalanceDetails struct for BalanceDetails +type BalanceDetails struct { + MerchantId *float32 `json:"merchant_id,omitempty"` + VendorId *string `json:"vendor_id,omitempty"` + MerchantUnsettled *float32 `json:"merchant_unsettled,omitempty"` + VendorUnsettled *float32 `json:"vendor_unsettled,omitempty"` +} + + +func (o BalanceDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BalanceDetails) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.MerchantId) { + toSerialize["merchant_id"] = o.MerchantId + } + if !IsNil(o.VendorId) { + toSerialize["vendor_id"] = o.VendorId + } + if !IsNil(o.MerchantUnsettled) { + toSerialize["merchant_unsettled"] = o.MerchantUnsettled + } + if !IsNil(o.VendorUnsettled) { + toSerialize["vendor_unsettled"] = o.VendorUnsettled + } + return toSerialize, nil +} + + + diff --git a/model_bank_details.go b/model_bank_details.go new file mode 100644 index 0000000..1898719 --- /dev/null +++ b/model_bank_details.go @@ -0,0 +1,54 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the BankDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BankDetails{} + +// BankDetails struct for BankDetails +type BankDetails struct { + AccountNumber *string `json:"account_number,omitempty"` + AccountHolder *string `json:"account_holder,omitempty"` + Ifsc *string `json:"ifsc,omitempty"` +} + + +func (o BankDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BankDetails) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountNumber) { + toSerialize["account_number"] = o.AccountNumber + } + if !IsNil(o.AccountHolder) { + toSerialize["account_holder"] = o.AccountHolder + } + if !IsNil(o.Ifsc) { + toSerialize["ifsc"] = o.Ifsc + } + return toSerialize, nil +} + + + diff --git a/model_banktransfer.go b/model_banktransfer.go new file mode 100644 index 0000000..1272b56 --- /dev/null +++ b/model_banktransfer.go @@ -0,0 +1,47 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the Banktransfer type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Banktransfer{} + +// Banktransfer Banktransfer payment method +type Banktransfer struct { + // The channel for cardless EMI is always `link` + Channel *string `json:"channel,omitempty"` +} + + +func (o Banktransfer) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Banktransfer) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.Channel) { + toSerialize["channel"] = o.Channel + } + return toSerialize, nil +} + + + diff --git a/model_banktransfer_payment_method.go b/model_banktransfer_payment_method.go new file mode 100644 index 0000000..8e2f5ed --- /dev/null +++ b/model_banktransfer_payment_method.go @@ -0,0 +1,44 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the BanktransferPaymentMethod type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BanktransferPaymentMethod{} + +// BanktransferPaymentMethod banktransfer payment method +type BanktransferPaymentMethod struct { + Banktransfer Banktransfer `json:"banktransfer"` +} + + +func (o BanktransferPaymentMethod) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BanktransferPaymentMethod) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + toSerialize["banktransfer"] = o.Banktransfer + return toSerialize, nil +} + + + diff --git a/model_card.go b/model_card.go index 7be9db8..2205817 100644 --- a/model_card.go +++ b/model_card.go @@ -39,6 +39,8 @@ type Card struct { Cryptogram *string `json:"cryptogram,omitempty"` // TRID issued by card networks. Required only for tokenized card transactions. TokenRequestorId *string `json:"token_requestor_id,omitempty"` + // Token Reference Id provided by Diners for Guest Checkout Token. Required only for Diners cards. + TokenReferenceId *string `json:"token_reference_id,omitempty"` TokenType *string `json:"token_type,omitempty"` // last 4 digits of original card number. Required only for tokenized card transactions. CardDisplay *string `json:"card_display,omitempty"` @@ -87,6 +89,9 @@ func (o Card) ToMap() (map[string]interface{}, error) { if !IsNil(o.TokenRequestorId) { toSerialize["token_requestor_id"] = o.TokenRequestorId } + if !IsNil(o.TokenReferenceId) { + toSerialize["token_reference_id"] = o.TokenReferenceId + } if !IsNil(o.TokenType) { toSerialize["token_type"] = o.TokenType } diff --git a/model_charges_details.go b/model_charges_details.go new file mode 100644 index 0000000..3108080 --- /dev/null +++ b/model_charges_details.go @@ -0,0 +1,62 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the ChargesDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ChargesDetails{} + +// ChargesDetails struct for ChargesDetails +type ChargesDetails struct { + ServiceCharges *float32 `json:"service_charges,omitempty"` + ServiceTax *float32 `json:"service_tax,omitempty"` + Amount *float32 `json:"amount,omitempty"` + BilledTo *string `json:"billed_to,omitempty"` + IsPostpaid *bool `json:"is_postpaid,omitempty"` +} + + +func (o ChargesDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ChargesDetails) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.ServiceCharges) { + toSerialize["service_charges"] = o.ServiceCharges + } + if !IsNil(o.ServiceTax) { + toSerialize["service_tax"] = o.ServiceTax + } + if !IsNil(o.Amount) { + toSerialize["amount"] = o.Amount + } + if !IsNil(o.BilledTo) { + toSerialize["billed_to"] = o.BilledTo + } + if !IsNil(o.IsPostpaid) { + toSerialize["is_postpaid"] = o.IsPostpaid + } + return toSerialize, nil +} + + + diff --git a/model_create_vendor_request.go b/model_create_vendor_request.go new file mode 100644 index 0000000..9b06e26 --- /dev/null +++ b/model_create_vendor_request.go @@ -0,0 +1,85 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the CreateVendorRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateVendorRequest{} + +// CreateVendorRequest Create Vendor Request +type CreateVendorRequest struct { + // Specify the unique Vendor ID to identify the beneficiary. Alphanumeric and underscore (_) allowed. + VendorId string `json:"vendor_id"` + // Specify the status of vendor that should be updated. Possible values: ACTIVE,BLOCKED, DELETED + Status string `json:"status"` + // Specify the name of the vendor to be updated. Name should not have any special character except . / - & + Name string `json:"name"` + // Specify the vendor email ID that should be updated. String in email ID format (Ex:johndoe_1@cashfree.com) should contain @ and dot (.) + Email string `json:"email"` + // Specify the beneficiaries phone number to be updated. Phone number registered in India (only digits, 8 - 12 characters after excluding +91). + Phone string `json:"phone"` + // Specify if the vendor bank account details should be verified. Possible values: true or false + VerifyAccount *bool `json:"verify_account,omitempty"` + // Update if the vendor will have dashboard access or not. Possible values are: true or false + DashboardAccess *bool `json:"dashboard_access,omitempty"` + // Specify the settlement cycle to be updated. View the settlement cycle details from the \"Settlement Cycles Supported\" table. If no schedule option is configured, the settlement cycle ID \"1\" will be in effect. Select \"8\" or \"9\" if you want to schedule instant vendor settlements. + ScheduleOption *float32 `json:"schedule_option,omitempty"` + // Specify the vendor bank account details to be updated. + Bank []BankDetails `json:"bank,omitempty"` + // Updated beneficiary upi vpa. Alphanumeric, dot (.), hyphen (-), at sign (@), and underscore allowed (100 character limit). Note: underscore and dot (.) gets accepted before and after @, but hyphen (-) is only accepted before @ sign. + Upi []UpiDetails `json:"upi,omitempty"` + // Specify the kyc details that should be updated. + KycDetails []KycDetails `json:"kyc_details"` +} + + +func (o CreateVendorRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateVendorRequest) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + toSerialize["vendor_id"] = o.VendorId + toSerialize["status"] = o.Status + toSerialize["name"] = o.Name + toSerialize["email"] = o.Email + toSerialize["phone"] = o.Phone + if !IsNil(o.VerifyAccount) { + toSerialize["verify_account"] = o.VerifyAccount + } + if !IsNil(o.DashboardAccess) { + toSerialize["dashboard_access"] = o.DashboardAccess + } + if !IsNil(o.ScheduleOption) { + toSerialize["schedule_option"] = o.ScheduleOption + } + if !IsNil(o.Bank) { + toSerialize["bank"] = o.Bank + } + if !IsNil(o.Upi) { + toSerialize["upi"] = o.Upi + } + toSerialize["kyc_details"] = o.KycDetails + return toSerialize, nil +} + + + diff --git a/model_create_vendor_response.go b/model_create_vendor_response.go new file mode 100644 index 0000000..fb1b8d7 --- /dev/null +++ b/model_create_vendor_response.go @@ -0,0 +1,86 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the CreateVendorResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateVendorResponse{} + +// CreateVendorResponse Create Vendor Response +type CreateVendorResponse struct { + Email *string `json:"email,omitempty"` + Status *string `json:"status,omitempty"` + Bank []BankDetails `json:"bank,omitempty"` + Upi *string `json:"upi,omitempty"` + Phone *float32 `json:"phone,omitempty"` + Name *string `json:"name,omitempty"` + VendorId *string `json:"vendor_id,omitempty"` + ScheduleOption []ScheduleOption `json:"schedule_option,omitempty"` + KycDetails []KycDetails `json:"kyc_details,omitempty"` + DashboardAccess *bool `json:"dashboard_access,omitempty"` + BankDetails *string `json:"bank_details,omitempty"` +} + + +func (o CreateVendorResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateVendorResponse) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Bank) { + toSerialize["bank"] = o.Bank + } + if !IsNil(o.Upi) { + toSerialize["upi"] = o.Upi + } + if !IsNil(o.Phone) { + toSerialize["phone"] = o.Phone + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.VendorId) { + toSerialize["vendor_id"] = o.VendorId + } + if !IsNil(o.ScheduleOption) { + toSerialize["schedule_option"] = o.ScheduleOption + } + if !IsNil(o.KycDetails) { + toSerialize["kyc_details"] = o.KycDetails + } + if !IsNil(o.DashboardAccess) { + toSerialize["dashboard_access"] = o.DashboardAccess + } + if !IsNil(o.BankDetails) { + toSerialize["bank_details"] = o.BankDetails + } + return toSerialize, nil +} + + + diff --git a/model_es_order_recon_request.go b/model_es_order_recon_request.go new file mode 100644 index 0000000..61f06c7 --- /dev/null +++ b/model_es_order_recon_request.go @@ -0,0 +1,46 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the ESOrderReconRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ESOrderReconRequest{} + +// ESOrderReconRequest ES Order Recon Request +type ESOrderReconRequest struct { + Filters ESOrderReconRequestFilters `json:"filters"` + Pagination ESOrderReconRequestPagination `json:"pagination"` +} + + +func (o ESOrderReconRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ESOrderReconRequest) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + toSerialize["filters"] = o.Filters + toSerialize["pagination"] = o.Pagination + return toSerialize, nil +} + + + diff --git a/model_es_order_recon_request_filters.go b/model_es_order_recon_request_filters.go new file mode 100644 index 0000000..d9dc72c --- /dev/null +++ b/model_es_order_recon_request_filters.go @@ -0,0 +1,57 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the ESOrderReconRequestFilters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ESOrderReconRequestFilters{} + +// ESOrderReconRequestFilters Provide the filter object details. +type ESOrderReconRequestFilters struct { + // Specify the start data from which you want to get the recon data. + StartDate *string `json:"start_date,omitempty"` + // Specify the end data till which you want to get the recon data. + EndDate *string `json:"end_date,omitempty"` + // Please provide list of order ids for which you want to get the recon data. + OrderIds []string `json:"order_ids,omitempty"` +} + + +func (o ESOrderReconRequestFilters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ESOrderReconRequestFilters) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.StartDate) { + toSerialize["start_date"] = o.StartDate + } + if !IsNil(o.EndDate) { + toSerialize["end_date"] = o.EndDate + } + if !IsNil(o.OrderIds) { + toSerialize["order_ids"] = o.OrderIds + } + return toSerialize, nil +} + + + diff --git a/model_es_order_recon_request_pagination.go b/model_es_order_recon_request_pagination.go new file mode 100644 index 0000000..865e7e3 --- /dev/null +++ b/model_es_order_recon_request_pagination.go @@ -0,0 +1,51 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the ESOrderReconRequestPagination type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ESOrderReconRequestPagination{} + +// ESOrderReconRequestPagination Set limit based on your requirement. Pagination limit will fetch a set of orders, next set of orders can be generated using the cursor shared in previous response of the same API. +type ESOrderReconRequestPagination struct { + Cursor *string `json:"cursor,omitempty"` + // Set the minimum/maximum limit for number of filtered data. Min value - 10, Max value - 100. + Limit *int32 `json:"limit,omitempty"` +} + + +func (o ESOrderReconRequestPagination) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ESOrderReconRequestPagination) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.Cursor) { + toSerialize["cursor"] = o.Cursor + } + if !IsNil(o.Limit) { + toSerialize["limit"] = o.Limit + } + return toSerialize, nil +} + + + diff --git a/model_es_order_recon_response.go b/model_es_order_recon_response.go new file mode 100644 index 0000000..f735b75 --- /dev/null +++ b/model_es_order_recon_response.go @@ -0,0 +1,54 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the ESOrderReconResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ESOrderReconResponse{} + +// ESOrderReconResponse ES Order Recon Response +type ESOrderReconResponse struct { + Cursor *string `json:"cursor,omitempty"` + Data []ESOrderReconResponseDataInner `json:"data,omitempty"` + Limit *int32 `json:"limit,omitempty"` +} + + +func (o ESOrderReconResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ESOrderReconResponse) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.Cursor) { + toSerialize["cursor"] = o.Cursor + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Limit) { + toSerialize["limit"] = o.Limit + } + return toSerialize, nil +} + + + diff --git a/model_es_order_recon_response_data_inner.go b/model_es_order_recon_response_data_inner.go new file mode 100644 index 0000000..1257778 --- /dev/null +++ b/model_es_order_recon_response_data_inner.go @@ -0,0 +1,146 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the ESOrderReconResponseDataInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ESOrderReconResponseDataInner{} + +// ESOrderReconResponseDataInner struct for ESOrderReconResponseDataInner +type ESOrderReconResponseDataInner struct { + Amount *float32 `json:"amount,omitempty"` + SettlementEligibilityTime *string `json:"settlement_eligibility_time,omitempty"` + MerchantOrderId *string `json:"merchant_order_id,omitempty"` + TxTime *string `json:"tx_time,omitempty"` + Settled *string `json:"settled,omitempty"` + EntityId *string `json:"entity_id,omitempty"` + MerchantSettlementUtr *string `json:"merchant_settlement_utr,omitempty"` + Currency *string `json:"currency,omitempty"` + SaleType *string `json:"sale_type,omitempty"` + CustomerName *string `json:"customer_name,omitempty"` + CustomerEmail *string `json:"customer_email,omitempty"` + CustomerPhone *string `json:"customer_phone,omitempty"` + MerchantVendorCommission *string `json:"merchant_vendor_commission,omitempty"` + SplitServiceCharge *string `json:"split_service_charge,omitempty"` + SplitServiceTax *string `json:"split_service_tax,omitempty"` + PgServiceTax *string `json:"pg_service_tax,omitempty"` + PgServiceCharge *string `json:"pg_service_charge,omitempty"` + PgChargePostpaid *string `json:"pg_charge_postpaid,omitempty"` + MerchantSettlementId *string `json:"merchant_settlement_id,omitempty"` + AddedOn *string `json:"added_on,omitempty"` + Tags *string `json:"tags,omitempty"` + EntityType *string `json:"entity_type,omitempty"` + SettlementInitiatedOn *string `json:"settlement_initiated_on,omitempty"` + SettlementTime *string `json:"settlement_time,omitempty"` + OrderSplits []ESOrderReconResponseDataInnerOrderSplitsInner `json:"order_splits,omitempty"` + EligibleSplitBalance *string `json:"eligible_split_balance,omitempty"` +} + + +func (o ESOrderReconResponseDataInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ESOrderReconResponseDataInner) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.Amount) { + toSerialize["amount"] = o.Amount + } + if !IsNil(o.SettlementEligibilityTime) { + toSerialize["settlement_eligibility_time"] = o.SettlementEligibilityTime + } + if !IsNil(o.MerchantOrderId) { + toSerialize["merchant_order_id"] = o.MerchantOrderId + } + if !IsNil(o.TxTime) { + toSerialize["tx_time"] = o.TxTime + } + if !IsNil(o.Settled) { + toSerialize["settled"] = o.Settled + } + if !IsNil(o.EntityId) { + toSerialize["entity_id"] = o.EntityId + } + if !IsNil(o.MerchantSettlementUtr) { + toSerialize["merchant_settlement_utr"] = o.MerchantSettlementUtr + } + if !IsNil(o.Currency) { + toSerialize["currency"] = o.Currency + } + if !IsNil(o.SaleType) { + toSerialize["sale_type"] = o.SaleType + } + if !IsNil(o.CustomerName) { + toSerialize["customer_name"] = o.CustomerName + } + if !IsNil(o.CustomerEmail) { + toSerialize["customer_email"] = o.CustomerEmail + } + if !IsNil(o.CustomerPhone) { + toSerialize["customer_phone"] = o.CustomerPhone + } + if !IsNil(o.MerchantVendorCommission) { + toSerialize["merchant_vendor_commission"] = o.MerchantVendorCommission + } + if !IsNil(o.SplitServiceCharge) { + toSerialize["split_service_charge"] = o.SplitServiceCharge + } + if !IsNil(o.SplitServiceTax) { + toSerialize["split_service_tax"] = o.SplitServiceTax + } + if !IsNil(o.PgServiceTax) { + toSerialize["pg_service_tax"] = o.PgServiceTax + } + if !IsNil(o.PgServiceCharge) { + toSerialize["pg_service_charge"] = o.PgServiceCharge + } + if !IsNil(o.PgChargePostpaid) { + toSerialize["pg_charge_postpaid"] = o.PgChargePostpaid + } + if !IsNil(o.MerchantSettlementId) { + toSerialize["merchant_settlement_id"] = o.MerchantSettlementId + } + if !IsNil(o.AddedOn) { + toSerialize["added_on"] = o.AddedOn + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.EntityType) { + toSerialize["entity_type"] = o.EntityType + } + if !IsNil(o.SettlementInitiatedOn) { + toSerialize["settlement_initiated_on"] = o.SettlementInitiatedOn + } + if !IsNil(o.SettlementTime) { + toSerialize["settlement_time"] = o.SettlementTime + } + if !IsNil(o.OrderSplits) { + toSerialize["order_splits"] = o.OrderSplits + } + if !IsNil(o.EligibleSplitBalance) { + toSerialize["eligible_split_balance"] = o.EligibleSplitBalance + } + return toSerialize, nil +} + + + diff --git a/model_es_order_recon_response_data_inner_order_splits_inner.go b/model_es_order_recon_response_data_inner_order_splits_inner.go new file mode 100644 index 0000000..f464692 --- /dev/null +++ b/model_es_order_recon_response_data_inner_order_splits_inner.go @@ -0,0 +1,50 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the ESOrderReconResponseDataInnerOrderSplitsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ESOrderReconResponseDataInnerOrderSplitsInner{} + +// ESOrderReconResponseDataInnerOrderSplitsInner struct for ESOrderReconResponseDataInnerOrderSplitsInner +type ESOrderReconResponseDataInnerOrderSplitsInner struct { + Split []ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner `json:"split,omitempty"` + CreatedAt *string `json:"created_at,omitempty"` +} + + +func (o ESOrderReconResponseDataInnerOrderSplitsInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ESOrderReconResponseDataInnerOrderSplitsInner) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.Split) { + toSerialize["split"] = o.Split + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + return toSerialize, nil +} + + + diff --git a/model_es_order_recon_response_data_inner_order_splits_inner_split_inner.go b/model_es_order_recon_response_data_inner_order_splits_inner_split_inner.go new file mode 100644 index 0000000..38d720f --- /dev/null +++ b/model_es_order_recon_response_data_inner_order_splits_inner_split_inner.go @@ -0,0 +1,54 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner{} + +// ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner struct for ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner +type ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner struct { + MerchantVendorId *string `json:"merchant_vendor_id,omitempty"` + Percentage *float32 `json:"percentage,omitempty"` + Tags map[string]interface{} `json:"tags,omitempty"` +} + + +func (o ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ESOrderReconResponseDataInnerOrderSplitsInnerSplitInner) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.MerchantVendorId) { + toSerialize["merchant_vendor_id"] = o.MerchantVendorId + } + if !IsNil(o.Percentage) { + toSerialize["percentage"] = o.Percentage + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + return toSerialize, nil +} + + + diff --git a/model_kyc_details.go b/model_kyc_details.go new file mode 100644 index 0000000..34a071a --- /dev/null +++ b/model_kyc_details.go @@ -0,0 +1,78 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the KycDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &KycDetails{} + +// KycDetails struct for KycDetails +type KycDetails struct { + AccountType *string `json:"account_type,omitempty"` + BusinessType *string `json:"business_type,omitempty"` + Uidai *float32 `json:"uidai,omitempty"` + Gst *string `json:"gst,omitempty"` + Cin *string `json:"cin,omitempty"` + Pan *string `json:"pan,omitempty"` + PassportNumber *string `json:"passport_number,omitempty"` + DrivingLicense *string `json:"driving_license,omitempty"` + VoterId *string `json:"voter_id,omitempty"` +} + + +func (o KycDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o KycDetails) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountType) { + toSerialize["account_type"] = o.AccountType + } + if !IsNil(o.BusinessType) { + toSerialize["business_type"] = o.BusinessType + } + if !IsNil(o.Uidai) { + toSerialize["uidai"] = o.Uidai + } + if !IsNil(o.Gst) { + toSerialize["gst"] = o.Gst + } + if !IsNil(o.Cin) { + toSerialize["cin"] = o.Cin + } + if !IsNil(o.Pan) { + toSerialize["pan"] = o.Pan + } + if !IsNil(o.PassportNumber) { + toSerialize["passport_number"] = o.PassportNumber + } + if !IsNil(o.DrivingLicense) { + toSerialize["driving_license"] = o.DrivingLicense + } + if !IsNil(o.VoterId) { + toSerialize["voter_id"] = o.VoterId + } + return toSerialize, nil +} + + + diff --git a/model_link_entity.go b/model_link_entity.go index a55fd6d..ff672d8 100644 --- a/model_link_entity.go +++ b/model_link_entity.go @@ -39,6 +39,8 @@ type LinkEntity struct { LinkNotes *map[string]string `json:"link_notes,omitempty"` LinkAutoReminders *bool `json:"link_auto_reminders,omitempty"` LinkNotify *LinkNotifyEntity `json:"link_notify,omitempty"` + // Base64 encoded string for payment link. You can scan with camera to open a link in the browser to complete the payment. + LinkQrcode *string `json:"link_qrcode,omitempty"` } @@ -104,6 +106,9 @@ func (o LinkEntity) ToMap() (map[string]interface{}, error) { if !IsNil(o.LinkNotify) { toSerialize["link_notify"] = o.LinkNotify } + if !IsNil(o.LinkQrcode) { + toSerialize["link_qrcode"] = o.LinkQrcode + } return toSerialize, nil } diff --git a/model_offer_validations.go b/model_offer_validations.go index 4678bb9..d3f6d0b 100644 --- a/model_offer_validations.go +++ b/model_offer_validations.go @@ -23,6 +23,8 @@ var _ MappedNullable = &OfferValidations{} type OfferValidations struct { // Minimum Amount for Offer to be Applicable MinAmount *float32 `json:"min_amount,omitempty"` + // Maximum Amount for Offer to be Applicable + MaxAllowed float32 `json:"max_allowed"` PaymentMethod OfferValidationsPaymentMethod `json:"payment_method"` } @@ -41,6 +43,7 @@ func (o OfferValidations) ToMap() (map[string]interface{}, error) { if !IsNil(o.MinAmount) { toSerialize["min_amount"] = o.MinAmount } + toSerialize["max_allowed"] = o.MaxAllowed toSerialize["payment_method"] = o.PaymentMethod return toSerialize, nil } diff --git a/model_pay_order_request_payment_method.go b/model_pay_order_request_payment_method.go index 0d4d2b4..2dee4ba 100644 --- a/model_pay_order_request_payment_method.go +++ b/model_pay_order_request_payment_method.go @@ -20,6 +20,7 @@ import ( // PayOrderRequestPaymentMethod - struct for PayOrderRequestPaymentMethod type PayOrderRequestPaymentMethod struct { AppPaymentMethod *AppPaymentMethod + BanktransferPaymentMethod *BanktransferPaymentMethod CardEMIPaymentMethod *CardEMIPaymentMethod CardPaymentMethod *CardPaymentMethod CardlessEMIPaymentMethod *CardlessEMIPaymentMethod @@ -35,6 +36,13 @@ func AppPaymentMethodAsPayOrderRequestPaymentMethod(v *AppPaymentMethod) PayOrde } } +// BanktransferPaymentMethodAsPayOrderRequestPaymentMethod is a convenience function that returns BanktransferPaymentMethod wrapped in PayOrderRequestPaymentMethod +func BanktransferPaymentMethodAsPayOrderRequestPaymentMethod(v *BanktransferPaymentMethod) PayOrderRequestPaymentMethod { + return PayOrderRequestPaymentMethod{ + BanktransferPaymentMethod: v, + } +} + // CardEMIPaymentMethodAsPayOrderRequestPaymentMethod is a convenience function that returns CardEMIPaymentMethod wrapped in PayOrderRequestPaymentMethod func CardEMIPaymentMethodAsPayOrderRequestPaymentMethod(v *CardEMIPaymentMethod) PayOrderRequestPaymentMethod { return PayOrderRequestPaymentMethod{ @@ -114,6 +122,31 @@ func (dst *PayOrderRequestPaymentMethod) UnmarshalJSON(data []byte) error { } + // try to unmarshal data into BanktransferPaymentMethod + + err = json.Unmarshal(data, &dst.BanktransferPaymentMethod) + + if err == nil { + + jsonBanktransferPaymentMethod, _ := json.Marshal(dst.BanktransferPaymentMethod) + + if strings.Contains(string(jsonBanktransferPaymentMethod), "{}") || strings.Contains(string(jsonBanktransferPaymentMethod), "null") { // empty struct + + dst.BanktransferPaymentMethod = nil + + } else { + + match++ + + } + + } else { + + dst.BanktransferPaymentMethod = nil + + } + + // try to unmarshal data into CardEMIPaymentMethod err = json.Unmarshal(data, &dst.CardEMIPaymentMethod) @@ -272,6 +305,9 @@ func (dst *PayOrderRequestPaymentMethod) UnmarshalJSON(data []byte) error { dst.AppPaymentMethod = nil + dst.BanktransferPaymentMethod = nil + + dst.CardEMIPaymentMethod = nil @@ -312,6 +348,10 @@ func (src PayOrderRequestPaymentMethod) MarshalJSON() ([]byte, error) { return json.Marshal(&src.AppPaymentMethod) } + if src.BanktransferPaymentMethod != nil { + return json.Marshal(&src.BanktransferPaymentMethod) + } + if src.CardEMIPaymentMethod != nil { return json.Marshal(&src.CardEMIPaymentMethod) } @@ -348,6 +388,10 @@ func (obj *PayOrderRequestPaymentMethod) GetActualInstance() (interface{}) { return obj.AppPaymentMethod } + if obj.BanktransferPaymentMethod != nil { + return obj.BanktransferPaymentMethod + } + if obj.CardEMIPaymentMethod != nil { return obj.CardEMIPaymentMethod } diff --git a/model_payment_entity_payment_method.go b/model_payment_entity_payment_method.go index 93827db..c9ef02a 100644 --- a/model_payment_entity_payment_method.go +++ b/model_payment_entity_payment_method.go @@ -20,6 +20,7 @@ import ( // PaymentEntityPaymentMethod - struct for PaymentEntityPaymentMethod type PaymentEntityPaymentMethod struct { PaymentMethodAppInPaymentsEntity *PaymentMethodAppInPaymentsEntity + PaymentMethodBankTransferInPaymentsEntity *PaymentMethodBankTransferInPaymentsEntity PaymentMethodCardEMIInPaymentsEntity *PaymentMethodCardEMIInPaymentsEntity PaymentMethodCardInPaymentsEntity *PaymentMethodCardInPaymentsEntity PaymentMethodCardlessEMIInPaymentsEntity *PaymentMethodCardlessEMIInPaymentsEntity @@ -35,6 +36,13 @@ func PaymentMethodAppInPaymentsEntityAsPaymentEntityPaymentMethod(v *PaymentMeth } } +// PaymentMethodBankTransferInPaymentsEntityAsPaymentEntityPaymentMethod is a convenience function that returns PaymentMethodBankTransferInPaymentsEntity wrapped in PaymentEntityPaymentMethod +func PaymentMethodBankTransferInPaymentsEntityAsPaymentEntityPaymentMethod(v *PaymentMethodBankTransferInPaymentsEntity) PaymentEntityPaymentMethod { + return PaymentEntityPaymentMethod{ + PaymentMethodBankTransferInPaymentsEntity: v, + } +} + // PaymentMethodCardEMIInPaymentsEntityAsPaymentEntityPaymentMethod is a convenience function that returns PaymentMethodCardEMIInPaymentsEntity wrapped in PaymentEntityPaymentMethod func PaymentMethodCardEMIInPaymentsEntityAsPaymentEntityPaymentMethod(v *PaymentMethodCardEMIInPaymentsEntity) PaymentEntityPaymentMethod { return PaymentEntityPaymentMethod{ @@ -114,6 +122,31 @@ func (dst *PaymentEntityPaymentMethod) UnmarshalJSON(data []byte) error { } + // try to unmarshal data into PaymentMethodBankTransferInPaymentsEntity + + err = json.Unmarshal(data, &dst.PaymentMethodBankTransferInPaymentsEntity) + + if err == nil { + + jsonPaymentMethodBankTransferInPaymentsEntity, _ := json.Marshal(dst.PaymentMethodBankTransferInPaymentsEntity) + + if strings.Contains(string(jsonPaymentMethodBankTransferInPaymentsEntity), "{}") || strings.Contains(string(jsonPaymentMethodBankTransferInPaymentsEntity), "null") { // empty struct + + dst.PaymentMethodBankTransferInPaymentsEntity = nil + + } else { + + match++ + + } + + } else { + + dst.PaymentMethodBankTransferInPaymentsEntity = nil + + } + + // try to unmarshal data into PaymentMethodCardEMIInPaymentsEntity err = json.Unmarshal(data, &dst.PaymentMethodCardEMIInPaymentsEntity) @@ -272,6 +305,9 @@ func (dst *PaymentEntityPaymentMethod) UnmarshalJSON(data []byte) error { dst.PaymentMethodAppInPaymentsEntity = nil + dst.PaymentMethodBankTransferInPaymentsEntity = nil + + dst.PaymentMethodCardEMIInPaymentsEntity = nil @@ -312,6 +348,10 @@ func (src PaymentEntityPaymentMethod) MarshalJSON() ([]byte, error) { return json.Marshal(&src.PaymentMethodAppInPaymentsEntity) } + if src.PaymentMethodBankTransferInPaymentsEntity != nil { + return json.Marshal(&src.PaymentMethodBankTransferInPaymentsEntity) + } + if src.PaymentMethodCardEMIInPaymentsEntity != nil { return json.Marshal(&src.PaymentMethodCardEMIInPaymentsEntity) } @@ -348,6 +388,10 @@ func (obj *PaymentEntityPaymentMethod) GetActualInstance() (interface{}) { return obj.PaymentMethodAppInPaymentsEntity } + if obj.PaymentMethodBankTransferInPaymentsEntity != nil { + return obj.PaymentMethodBankTransferInPaymentsEntity + } + if obj.PaymentMethodCardEMIInPaymentsEntity != nil { return obj.PaymentMethodCardEMIInPaymentsEntity } diff --git a/model_payment_method_bank_transfer_in_payments_entity.go b/model_payment_method_bank_transfer_in_payments_entity.go new file mode 100644 index 0000000..9e00710 --- /dev/null +++ b/model_payment_method_bank_transfer_in_payments_entity.go @@ -0,0 +1,46 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the PaymentMethodBankTransferInPaymentsEntity type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaymentMethodBankTransferInPaymentsEntity{} + +// PaymentMethodBankTransferInPaymentsEntity payment method bank transfer object in payment entity +type PaymentMethodBankTransferInPaymentsEntity struct { + Banktransfer *PaymentMethodBankTransferInPaymentsEntityBanktransfer `json:"banktransfer,omitempty"` +} + + +func (o PaymentMethodBankTransferInPaymentsEntity) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaymentMethodBankTransferInPaymentsEntity) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.Banktransfer) { + toSerialize["banktransfer"] = o.Banktransfer + } + return toSerialize, nil +} + + + diff --git a/model_payment_method_bank_transfer_in_payments_entity_banktransfer.go b/model_payment_method_bank_transfer_in_payments_entity_banktransfer.go new file mode 100644 index 0000000..95b7213 --- /dev/null +++ b/model_payment_method_bank_transfer_in_payments_entity_banktransfer.go @@ -0,0 +1,58 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the PaymentMethodBankTransferInPaymentsEntityBanktransfer type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaymentMethodBankTransferInPaymentsEntityBanktransfer{} + +// PaymentMethodBankTransferInPaymentsEntityBanktransfer struct for PaymentMethodBankTransferInPaymentsEntityBanktransfer +type PaymentMethodBankTransferInPaymentsEntityBanktransfer struct { + Channel *string `json:"channel,omitempty"` + BanktransferBankName *string `json:"banktransfer_bank_name,omitempty"` + BanktransferIfsc *string `json:"banktransfer_ifsc,omitempty"` + BanktransferAccountNumber *string `json:"banktransfer_account_number,omitempty"` +} + + +func (o PaymentMethodBankTransferInPaymentsEntityBanktransfer) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaymentMethodBankTransferInPaymentsEntityBanktransfer) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.Channel) { + toSerialize["channel"] = o.Channel + } + if !IsNil(o.BanktransferBankName) { + toSerialize["banktransfer_bank_name"] = o.BanktransferBankName + } + if !IsNil(o.BanktransferIfsc) { + toSerialize["banktransfer_ifsc"] = o.BanktransferIfsc + } + if !IsNil(o.BanktransferAccountNumber) { + toSerialize["banktransfer_account_number"] = o.BanktransferAccountNumber + } + return toSerialize, nil +} + + + diff --git a/model_schedule_option.go b/model_schedule_option.go new file mode 100644 index 0000000..4901f14 --- /dev/null +++ b/model_schedule_option.go @@ -0,0 +1,54 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the ScheduleOption type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ScheduleOption{} + +// ScheduleOption struct for ScheduleOption +type ScheduleOption struct { + SettlementScheduleMessage *string `json:"settlement_schedule_message,omitempty"` + ScheduleId *float32 `json:"schedule_id,omitempty"` + MerchantDefault *bool `json:"merchant_default,omitempty"` +} + + +func (o ScheduleOption) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ScheduleOption) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.SettlementScheduleMessage) { + toSerialize["settlement_schedule_message"] = o.SettlementScheduleMessage + } + if !IsNil(o.ScheduleId) { + toSerialize["schedule_id"] = o.ScheduleId + } + if !IsNil(o.MerchantDefault) { + toSerialize["merchant_default"] = o.MerchantDefault + } + return toSerialize, nil +} + + + diff --git a/model_split_after_payment_request.go b/model_split_after_payment_request.go new file mode 100644 index 0000000..c2ba417 --- /dev/null +++ b/model_split_after_payment_request.go @@ -0,0 +1,50 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the SplitAfterPaymentRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SplitAfterPaymentRequest{} + +// SplitAfterPaymentRequest Split After Payment Request +type SplitAfterPaymentRequest struct { + // Specify the vendors order split details. + Split []SplitAfterPaymentRequestSplitInner `json:"split"` + // Specify if you want to end the split or continue creating further splits in future. + DisableSplit *bool `json:"disable_split,omitempty"` +} + + +func (o SplitAfterPaymentRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SplitAfterPaymentRequest) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + toSerialize["split"] = o.Split + if !IsNil(o.DisableSplit) { + toSerialize["disable_split"] = o.DisableSplit + } + return toSerialize, nil +} + + + diff --git a/model_split_after_payment_request_split_inner.go b/model_split_after_payment_request_split_inner.go new file mode 100644 index 0000000..7ac3770 --- /dev/null +++ b/model_split_after_payment_request_split_inner.go @@ -0,0 +1,62 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the SplitAfterPaymentRequestSplitInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SplitAfterPaymentRequestSplitInner{} + +// SplitAfterPaymentRequestSplitInner struct for SplitAfterPaymentRequestSplitInner +type SplitAfterPaymentRequestSplitInner struct { + // Specify the merchant vendor ID to split the payment. + VendorId *string `json:"vendor_id,omitempty"` + // Specify the amount to be split to the vendor. + Amount *float32 `json:"amount,omitempty"` + // Specify the percentage of amount to be split. + Percentage *float32 `json:"percentage,omitempty"` + // Provide additional data fields using tags. Sample data fields are mentioned below. + Tags []SplitAfterPaymentRequestSplitInnerTagsInner `json:"tags,omitempty"` +} + + +func (o SplitAfterPaymentRequestSplitInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SplitAfterPaymentRequestSplitInner) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.VendorId) { + toSerialize["vendor_id"] = o.VendorId + } + if !IsNil(o.Amount) { + toSerialize["amount"] = o.Amount + } + if !IsNil(o.Percentage) { + toSerialize["percentage"] = o.Percentage + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + return toSerialize, nil +} + + + diff --git a/model_split_after_payment_request_split_inner_tags_inner.go b/model_split_after_payment_request_split_inner_tags_inner.go new file mode 100644 index 0000000..e85c864 --- /dev/null +++ b/model_split_after_payment_request_split_inner_tags_inner.go @@ -0,0 +1,50 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the SplitAfterPaymentRequestSplitInnerTagsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SplitAfterPaymentRequestSplitInnerTagsInner{} + +// SplitAfterPaymentRequestSplitInnerTagsInner struct for SplitAfterPaymentRequestSplitInnerTagsInner +type SplitAfterPaymentRequestSplitInnerTagsInner struct { + KeyValue1 *string `json:"Key Value 1,omitempty"` + KeyValue2 *string `json:"Key Value 2,omitempty"` +} + + +func (o SplitAfterPaymentRequestSplitInnerTagsInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SplitAfterPaymentRequestSplitInnerTagsInner) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.KeyValue1) { + toSerialize["Key Value 1"] = o.KeyValue1 + } + if !IsNil(o.KeyValue2) { + toSerialize["Key Value 2"] = o.KeyValue2 + } + return toSerialize, nil +} + + + diff --git a/model_split_after_payment_response.go b/model_split_after_payment_response.go new file mode 100644 index 0000000..155277d --- /dev/null +++ b/model_split_after_payment_response.go @@ -0,0 +1,50 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the SplitAfterPaymentResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SplitAfterPaymentResponse{} + +// SplitAfterPaymentResponse Split After Payment Response +type SplitAfterPaymentResponse struct { + Status *string `json:"status,omitempty"` + Message *string `json:"message,omitempty"` +} + + +func (o SplitAfterPaymentResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SplitAfterPaymentResponse) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + return toSerialize, nil +} + + + diff --git a/model_static_split_request.go b/model_static_split_request.go new file mode 100644 index 0000000..9911811 --- /dev/null +++ b/model_static_split_request.go @@ -0,0 +1,61 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the StaticSplitRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StaticSplitRequest{} + +// StaticSplitRequest Static Split Request +type StaticSplitRequest struct { + // Specify if the split is to be active or not. Possible values: true/false + Active bool `json:"active"` + // For Subscription payments, the subscription reference ID is to be shared as the terminal ID. Incase for Payment Gateway terminal ID is non-mandatory. Mention as 0 if not applicable. + TerminalId *string `json:"terminal_id,omitempty"` + // You can share additional information using the reference ID. + TerminalReferenceId *float32 `json:"terminal_reference_id,omitempty"` + // Specify the product for which the split should be created. If you want split to be created for Payment Gateway pass value as \"PG\". If you want split to be created for Subscription, pass value as \"SBC\". Accepted values - \"STATIC_QR\", \"SBC\", \"PG\", \"EPOS\". + ProductType string `json:"product_type"` + // Provide the split scheme details. + Scheme []StaticSplitRequestSchemeInner `json:"scheme"` +} + + +func (o StaticSplitRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StaticSplitRequest) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + toSerialize["active"] = o.Active + if !IsNil(o.TerminalId) { + toSerialize["terminal_id"] = o.TerminalId + } + if !IsNil(o.TerminalReferenceId) { + toSerialize["terminal_reference_id"] = o.TerminalReferenceId + } + toSerialize["product_type"] = o.ProductType + toSerialize["scheme"] = o.Scheme + return toSerialize, nil +} + + + diff --git a/model_static_split_request_scheme_inner.go b/model_static_split_request_scheme_inner.go new file mode 100644 index 0000000..8be02f6 --- /dev/null +++ b/model_static_split_request_scheme_inner.go @@ -0,0 +1,52 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the StaticSplitRequestSchemeInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StaticSplitRequestSchemeInner{} + +// StaticSplitRequestSchemeInner struct for StaticSplitRequestSchemeInner +type StaticSplitRequestSchemeInner struct { + // Specify the merchant vendor ID to create the split scheme for the payment. + MerchantVendorId *string `json:"merchantVendorId,omitempty"` + // Specify the percentage of amount to be split. + Percentage *string `json:"percentage,omitempty"` +} + + +func (o StaticSplitRequestSchemeInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StaticSplitRequestSchemeInner) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.MerchantVendorId) { + toSerialize["merchantVendorId"] = o.MerchantVendorId + } + if !IsNil(o.Percentage) { + toSerialize["percentage"] = o.Percentage + } + return toSerialize, nil +} + + + diff --git a/model_static_split_response.go b/model_static_split_response.go new file mode 100644 index 0000000..ae9d0e9 --- /dev/null +++ b/model_static_split_response.go @@ -0,0 +1,66 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the StaticSplitResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StaticSplitResponse{} + +// StaticSplitResponse Static Split Response +type StaticSplitResponse struct { + Active *bool `json:"active,omitempty"` + TerminalId *string `json:"terminal_id,omitempty"` + TerminalReferenceId *float32 `json:"terminal_reference_id,omitempty"` + ProductType *string `json:"product_type,omitempty"` + Scheme []StaticSplitResponseSchemeInner `json:"scheme,omitempty"` + AddedOn *string `json:"added_on,omitempty"` +} + + +func (o StaticSplitResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StaticSplitResponse) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.Active) { + toSerialize["active"] = o.Active + } + if !IsNil(o.TerminalId) { + toSerialize["terminal_id"] = o.TerminalId + } + if !IsNil(o.TerminalReferenceId) { + toSerialize["terminal_reference_id"] = o.TerminalReferenceId + } + if !IsNil(o.ProductType) { + toSerialize["product_type"] = o.ProductType + } + if !IsNil(o.Scheme) { + toSerialize["scheme"] = o.Scheme + } + if !IsNil(o.AddedOn) { + toSerialize["added_on"] = o.AddedOn + } + return toSerialize, nil +} + + + diff --git a/model_static_split_response_scheme_inner.go b/model_static_split_response_scheme_inner.go new file mode 100644 index 0000000..dd2d04a --- /dev/null +++ b/model_static_split_response_scheme_inner.go @@ -0,0 +1,50 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the StaticSplitResponseSchemeInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StaticSplitResponseSchemeInner{} + +// StaticSplitResponseSchemeInner struct for StaticSplitResponseSchemeInner +type StaticSplitResponseSchemeInner struct { + MerchantVendorId *string `json:"merchantVendorId,omitempty"` + Percentage *string `json:"percentage,omitempty"` +} + + +func (o StaticSplitResponseSchemeInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StaticSplitResponseSchemeInner) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.MerchantVendorId) { + toSerialize["merchantVendorId"] = o.MerchantVendorId + } + if !IsNil(o.Percentage) { + toSerialize["percentage"] = o.Percentage + } + return toSerialize, nil +} + + + diff --git a/model_terminal_payment_entity.go b/model_terminal_payment_entity.go new file mode 100644 index 0000000..9fa3ae0 --- /dev/null +++ b/model_terminal_payment_entity.go @@ -0,0 +1,119 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the TerminalPaymentEntity type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TerminalPaymentEntity{} + +// TerminalPaymentEntity terminal payment entity full object +type TerminalPaymentEntity struct { + CfPaymentId *string `json:"cf_payment_id,omitempty"` + OrderId *string `json:"order_id,omitempty"` + Entity *string `json:"entity,omitempty"` + ErrorDetails *ErrorDetailsInPaymentsEntity `json:"error_details,omitempty"` + IsCaptured *bool `json:"is_captured,omitempty"` + // Order amount can be different from payment amount if you collect service fee from the customer + OrderAmount *float32 `json:"order_amount,omitempty"` + // Type of payment group. One of ['prepaid_card', 'upi_ppi_offline', 'cash', 'upi_credit_card', 'paypal', 'net_banking', 'cardless_emi', 'credit_card', 'bank_transfer', 'pay_later', 'debit_card_emi', 'debit_card', 'wallet', 'upi_ppi', 'upi', 'credit_card_emi'] + PaymentGroup *string `json:"payment_group,omitempty"` + PaymentCurrency *string `json:"payment_currency,omitempty"` + PaymentAmount *float32 `json:"payment_amount,omitempty"` + // This is the time when the payment was initiated + PaymentTime *string `json:"payment_time,omitempty"` + // This is the time when the payment reaches its terminal state + PaymentCompletionTime *string `json:"payment_completion_time,omitempty"` + // The transaction status can be one of [\"SUCCESS\", \"NOT_ATTEMPTED\", \"FAILED\", \"USER_DROPPED\", \"VOID\", \"CANCELLED\", \"PENDING\"] + PaymentStatus *string `json:"payment_status,omitempty"` + PaymentMessage *string `json:"payment_message,omitempty"` + BankReference *string `json:"bank_reference,omitempty"` + AuthId *string `json:"auth_id,omitempty"` + Authorization *AuthorizationInPaymentsEntity `json:"authorization,omitempty"` + CustomerDetails *CustomerDetails `json:"customer_details,omitempty"` + PaymentMethod *PaymentEntityPaymentMethod `json:"payment_method,omitempty"` +} + + +func (o TerminalPaymentEntity) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TerminalPaymentEntity) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.CfPaymentId) { + toSerialize["cf_payment_id"] = o.CfPaymentId + } + if !IsNil(o.OrderId) { + toSerialize["order_id"] = o.OrderId + } + if !IsNil(o.Entity) { + toSerialize["entity"] = o.Entity + } + if !IsNil(o.ErrorDetails) { + toSerialize["error_details"] = o.ErrorDetails + } + if !IsNil(o.IsCaptured) { + toSerialize["is_captured"] = o.IsCaptured + } + if !IsNil(o.OrderAmount) { + toSerialize["order_amount"] = o.OrderAmount + } + if !IsNil(o.PaymentGroup) { + toSerialize["payment_group"] = o.PaymentGroup + } + if !IsNil(o.PaymentCurrency) { + toSerialize["payment_currency"] = o.PaymentCurrency + } + if !IsNil(o.PaymentAmount) { + toSerialize["payment_amount"] = o.PaymentAmount + } + if !IsNil(o.PaymentTime) { + toSerialize["payment_time"] = o.PaymentTime + } + if !IsNil(o.PaymentCompletionTime) { + toSerialize["payment_completion_time"] = o.PaymentCompletionTime + } + if !IsNil(o.PaymentStatus) { + toSerialize["payment_status"] = o.PaymentStatus + } + if !IsNil(o.PaymentMessage) { + toSerialize["payment_message"] = o.PaymentMessage + } + if !IsNil(o.BankReference) { + toSerialize["bank_reference"] = o.BankReference + } + if !IsNil(o.AuthId) { + toSerialize["auth_id"] = o.AuthId + } + if !IsNil(o.Authorization) { + toSerialize["authorization"] = o.Authorization + } + if !IsNil(o.CustomerDetails) { + toSerialize["customer_details"] = o.CustomerDetails + } + if !IsNil(o.PaymentMethod) { + toSerialize["payment_method"] = o.PaymentMethod + } + return toSerialize, nil +} + + + diff --git a/model_transfer_details.go b/model_transfer_details.go new file mode 100644 index 0000000..3c1b068 --- /dev/null +++ b/model_transfer_details.go @@ -0,0 +1,66 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the TransferDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TransferDetails{} + +// TransferDetails struct for TransferDetails +type TransferDetails struct { + VendorId *string `json:"vendor_id,omitempty"` + TransferFrom *string `json:"transfer_from,omitempty"` + TransferType *string `json:"transfer_type,omitempty"` + TransferAmount *float32 `json:"transfer_amount,omitempty"` + Remark *string `json:"remark,omitempty"` + Tags []TransferDetailsTagsInner `json:"tags,omitempty"` +} + + +func (o TransferDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TransferDetails) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.VendorId) { + toSerialize["vendor_id"] = o.VendorId + } + if !IsNil(o.TransferFrom) { + toSerialize["transfer_from"] = o.TransferFrom + } + if !IsNil(o.TransferType) { + toSerialize["transfer_type"] = o.TransferType + } + if !IsNil(o.TransferAmount) { + toSerialize["transfer_amount"] = o.TransferAmount + } + if !IsNil(o.Remark) { + toSerialize["remark"] = o.Remark + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + return toSerialize, nil +} + + + diff --git a/model_transfer_details_tags_inner.go b/model_transfer_details_tags_inner.go new file mode 100644 index 0000000..d060e73 --- /dev/null +++ b/model_transfer_details_tags_inner.go @@ -0,0 +1,50 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the TransferDetailsTagsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TransferDetailsTagsInner{} + +// TransferDetailsTagsInner struct for TransferDetailsTagsInner +type TransferDetailsTagsInner struct { + Product *string `json:"product,omitempty"` + Size *float32 `json:"size,omitempty"` +} + + +func (o TransferDetailsTagsInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TransferDetailsTagsInner) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.Product) { + toSerialize["product"] = o.Product + } + if !IsNil(o.Size) { + toSerialize["size"] = o.Size + } + return toSerialize, nil +} + + + diff --git a/model_update_vendor_request.go b/model_update_vendor_request.go new file mode 100644 index 0000000..9cd49a8 --- /dev/null +++ b/model_update_vendor_request.go @@ -0,0 +1,80 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the UpdateVendorRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateVendorRequest{} + +// UpdateVendorRequest Update Vendor Request +type UpdateVendorRequest struct { + // Specify the status of vendor that should be updated. Possible values: ACTIVE,BLOCKED, DELETED + Status string `json:"status"` + // Specify the name of the vendor to be updated. Name should not have any special character except . / - & + Name string `json:"name"` + // Specify the vendor email ID that should be updated. String in email ID format (Ex:johndoe_1@cashfree.com) should contain @ and dot (.) + Email string `json:"email"` + // Specify the beneficiaries phone number to be updated. Phone number registered in India (only digits, 8 - 12 characters after excluding +91). + Phone string `json:"phone"` + // Specify if the vendor bank account details should be verified. Possible values: true or false + VerifyAccount *bool `json:"verify_account,omitempty"` + // Update if the vendor will have dashboard access or not. Possible values are: true or false + DashboardAccess *bool `json:"dashboard_access,omitempty"` + // Specify the settlement cycle to be updated. View the settlement cycle details from the \"Settlement Cycles Supported\" table. If no schedule option is configured, the settlement cycle ID \"1\" will be in effect. Select \"8\" or \"9\" if you want to schedule instant vendor settlements. + ScheduleOption float32 `json:"schedule_option"` + // Specify the vendor bank account details to be updated. + Bank []BankDetails `json:"bank,omitempty"` + // Updated beneficiary upi vpa. Alphanumeric, dot (.), hyphen (-), at sign (@), and underscore allowed (100 character limit). Note: underscore and dot (.) gets accepted before and after @, but hyphen (-) is only accepted before @ sign. + Upi []UpiDetails `json:"upi,omitempty"` + // Specify the kyc details that should be updated. + KycDetails []KycDetails `json:"kyc_details"` +} + + +func (o UpdateVendorRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateVendorRequest) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + toSerialize["name"] = o.Name + toSerialize["email"] = o.Email + toSerialize["phone"] = o.Phone + if !IsNil(o.VerifyAccount) { + toSerialize["verify_account"] = o.VerifyAccount + } + if !IsNil(o.DashboardAccess) { + toSerialize["dashboard_access"] = o.DashboardAccess + } + toSerialize["schedule_option"] = o.ScheduleOption + if !IsNil(o.Bank) { + toSerialize["bank"] = o.Bank + } + if !IsNil(o.Upi) { + toSerialize["upi"] = o.Upi + } + toSerialize["kyc_details"] = o.KycDetails + return toSerialize, nil +} + + + diff --git a/model_update_vendor_response.go b/model_update_vendor_response.go new file mode 100644 index 0000000..93ec970 --- /dev/null +++ b/model_update_vendor_response.go @@ -0,0 +1,110 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the UpdateVendorResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateVendorResponse{} + +// UpdateVendorResponse Update Vendor Response +type UpdateVendorResponse struct { + Email *string `json:"email,omitempty"` + Status *string `json:"status,omitempty"` + Bank []BankDetails `json:"bank,omitempty"` + Upi *string `json:"upi,omitempty"` + AddedOn *string `json:"added_on,omitempty"` + UpdatedOn *string `json:"updated_on,omitempty"` + VendorType *string `json:"vendor_type,omitempty"` + AccountType *string `json:"account_type,omitempty"` + BusinessType *string `json:"business_type,omitempty"` + Phone *float32 `json:"phone,omitempty"` + Name *string `json:"name,omitempty"` + VendorId *string `json:"vendor_id,omitempty"` + ScheduleOption []ScheduleOption `json:"schedule_option,omitempty"` + KycDetails []KycDetails `json:"kyc_details,omitempty"` + DashboardAccess *bool `json:"dashboard_access,omitempty"` + BankDetails *string `json:"bank_details,omitempty"` + RelatedDocs []VendorEntityRelatedDocsInner `json:"related_docs,omitempty"` +} + + +func (o UpdateVendorResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateVendorResponse) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Bank) { + toSerialize["bank"] = o.Bank + } + if !IsNil(o.Upi) { + toSerialize["upi"] = o.Upi + } + if !IsNil(o.AddedOn) { + toSerialize["added_on"] = o.AddedOn + } + if !IsNil(o.UpdatedOn) { + toSerialize["updated_on"] = o.UpdatedOn + } + if !IsNil(o.VendorType) { + toSerialize["vendor_type"] = o.VendorType + } + if !IsNil(o.AccountType) { + toSerialize["account_type"] = o.AccountType + } + if !IsNil(o.BusinessType) { + toSerialize["business_type"] = o.BusinessType + } + if !IsNil(o.Phone) { + toSerialize["phone"] = o.Phone + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.VendorId) { + toSerialize["vendor_id"] = o.VendorId + } + if !IsNil(o.ScheduleOption) { + toSerialize["schedule_option"] = o.ScheduleOption + } + if !IsNil(o.KycDetails) { + toSerialize["kyc_details"] = o.KycDetails + } + if !IsNil(o.DashboardAccess) { + toSerialize["dashboard_access"] = o.DashboardAccess + } + if !IsNil(o.BankDetails) { + toSerialize["bank_details"] = o.BankDetails + } + if !IsNil(o.RelatedDocs) { + toSerialize["related_docs"] = o.RelatedDocs + } + return toSerialize, nil +} + + + diff --git a/model_upi_details.go b/model_upi_details.go new file mode 100644 index 0000000..477f757 --- /dev/null +++ b/model_upi_details.go @@ -0,0 +1,50 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the UpiDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpiDetails{} + +// UpiDetails struct for UpiDetails +type UpiDetails struct { + Vpa *string `json:"vpa,omitempty"` + AccountHolder *string `json:"account_holder,omitempty"` +} + + +func (o UpiDetails) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpiDetails) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.Vpa) { + toSerialize["vpa"] = o.Vpa + } + if !IsNil(o.AccountHolder) { + toSerialize["account_holder"] = o.AccountHolder + } + return toSerialize, nil +} + + + diff --git a/model_upload_vendor_docs_request.go b/model_upload_vendor_docs_request.go new file mode 100644 index 0000000..9c83740 --- /dev/null +++ b/model_upload_vendor_docs_request.go @@ -0,0 +1,58 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" + "os" +) + +// checks if the UploadVendorDocsRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UploadVendorDocsRequest{} + +// UploadVendorDocsRequest Update Vendor Request +type UploadVendorDocsRequest struct { + // Mention the type of the document you are uploading. Possible values: UIDAI_FRONT, UIDAI_BACK, UIDAI_NUMBER, DL, DL_NUMBER, PASSPORT_FRONT, PASSPORT_BACK, PASSPORT_NUMBER, VOTER_ID, VOTER_ID_NUMBER, PAN, PAN_NUMBER, GST, GSTIN_NUMBER, CIN, CIN_NUMBER, NBFC_CERTIFICATE. If the doc type ends with a number you should add the doc value else upload the doc file. + DocType *string `json:"doc_type,omitempty"` + // Enter the display name of the uploaded file. + DocValue **os.File `json:"doc_value,omitempty"` + // Select the document that should be uploaded or provide the path of that file. You cannot upload a file that is more than 2MB in size. + File *string `json:"file,omitempty"` +} + + +func (o UploadVendorDocsRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UploadVendorDocsRequest) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.DocType) { + toSerialize["doc_type"] = o.DocType + } + if !IsNil(o.DocValue) { + toSerialize["doc_value"] = o.DocValue + } + if !IsNil(o.File) { + toSerialize["file"] = o.File + } + return toSerialize, nil +} + + + diff --git a/model_upload_vendor_documents_response.go b/model_upload_vendor_documents_response.go new file mode 100644 index 0000000..2d857db --- /dev/null +++ b/model_upload_vendor_documents_response.go @@ -0,0 +1,62 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the UploadVendorDocumentsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UploadVendorDocumentsResponse{} + +// UploadVendorDocumentsResponse Upload Vendor Document +type UploadVendorDocumentsResponse struct { + VendorId *string `json:"vendor_id,omitempty"` + DocType *string `json:"doc_type,omitempty"` + DocValue *string `json:"doc_value,omitempty"` + Status *string `json:"status,omitempty"` + Remarks *string `json:"remarks,omitempty"` +} + + +func (o UploadVendorDocumentsResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UploadVendorDocumentsResponse) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.VendorId) { + toSerialize["vendor_id"] = o.VendorId + } + if !IsNil(o.DocType) { + toSerialize["doc_type"] = o.DocType + } + if !IsNil(o.DocValue) { + toSerialize["doc_value"] = o.DocValue + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Remarks) { + toSerialize["remarks"] = o.Remarks + } + return toSerialize, nil +} + + + diff --git a/model_vendor_balance.go b/model_vendor_balance.go new file mode 100644 index 0000000..4289bd2 --- /dev/null +++ b/model_vendor_balance.go @@ -0,0 +1,58 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the VendorBalance type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VendorBalance{} + +// VendorBalance Vendor Balance entity object +type VendorBalance struct { + MerchantId *float32 `json:"merchant_id,omitempty"` + VendorId *string `json:"vendor_id,omitempty"` + MerchantUnsettled *float32 `json:"merchant_unsettled,omitempty"` + VendorUnsettled *float32 `json:"vendor_unsettled,omitempty"` +} + + +func (o VendorBalance) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VendorBalance) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.MerchantId) { + toSerialize["merchant_id"] = o.MerchantId + } + if !IsNil(o.VendorId) { + toSerialize["vendor_id"] = o.VendorId + } + if !IsNil(o.MerchantUnsettled) { + toSerialize["merchant_unsettled"] = o.MerchantUnsettled + } + if !IsNil(o.VendorUnsettled) { + toSerialize["vendor_unsettled"] = o.VendorUnsettled + } + return toSerialize, nil +} + + + diff --git a/model_vendor_balance_transfer_charges.go b/model_vendor_balance_transfer_charges.go new file mode 100644 index 0000000..00dff94 --- /dev/null +++ b/model_vendor_balance_transfer_charges.go @@ -0,0 +1,62 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the VendorBalanceTransferCharges type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VendorBalanceTransferCharges{} + +// VendorBalanceTransferCharges Vendor Balance Transfer Charges entity object +type VendorBalanceTransferCharges struct { + ServiceCharges *float32 `json:"service_charges,omitempty"` + ServiceTax *float32 `json:"service_tax,omitempty"` + Amount *float32 `json:"amount,omitempty"` + BilledTo *string `json:"billed_to,omitempty"` + IsPostpaid *bool `json:"is_postpaid,omitempty"` +} + + +func (o VendorBalanceTransferCharges) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VendorBalanceTransferCharges) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.ServiceCharges) { + toSerialize["service_charges"] = o.ServiceCharges + } + if !IsNil(o.ServiceTax) { + toSerialize["service_tax"] = o.ServiceTax + } + if !IsNil(o.Amount) { + toSerialize["amount"] = o.Amount + } + if !IsNil(o.BilledTo) { + toSerialize["billed_to"] = o.BilledTo + } + if !IsNil(o.IsPostpaid) { + toSerialize["is_postpaid"] = o.IsPostpaid + } + return toSerialize, nil +} + + + diff --git a/model_vendor_document_download_response.go b/model_vendor_document_download_response.go new file mode 100644 index 0000000..70ee0ba --- /dev/null +++ b/model_vendor_document_download_response.go @@ -0,0 +1,46 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the VendorDocumentDownloadResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VendorDocumentDownloadResponse{} + +// VendorDocumentDownloadResponse Download Vendor Document +type VendorDocumentDownloadResponse struct { + DownloadUrl *string `json:"download_url,omitempty"` +} + + +func (o VendorDocumentDownloadResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VendorDocumentDownloadResponse) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.DownloadUrl) { + toSerialize["download_url"] = o.DownloadUrl + } + return toSerialize, nil +} + + + diff --git a/model_vendor_documents_response.go b/model_vendor_documents_response.go new file mode 100644 index 0000000..d8da521 --- /dev/null +++ b/model_vendor_documents_response.go @@ -0,0 +1,46 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the VendorDocumentsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VendorDocumentsResponse{} + +// VendorDocumentsResponse Get Vendor Documents +type VendorDocumentsResponse struct { + Documents []VendorEntityRelatedDocsInner `json:"documents,omitempty"` +} + + +func (o VendorDocumentsResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VendorDocumentsResponse) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.Documents) { + toSerialize["documents"] = o.Documents + } + return toSerialize, nil +} + + + diff --git a/model_vendor_entity.go b/model_vendor_entity.go new file mode 100644 index 0000000..be5843b --- /dev/null +++ b/model_vendor_entity.go @@ -0,0 +1,98 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the VendorEntity type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VendorEntity{} + +// VendorEntity Vendor entity object +type VendorEntity struct { + Email *string `json:"email,omitempty"` + Status *string `json:"status,omitempty"` + Phone *string `json:"phone,omitempty"` + Name *string `json:"name,omitempty"` + VendorId *string `json:"vendor_id,omitempty"` + AddedOn *string `json:"added_on,omitempty"` + UpdatedOn *string `json:"updated_on,omitempty"` + Bank []BankDetails `json:"bank,omitempty"` + Upi *string `json:"upi,omitempty"` + ScheduleOption []ScheduleOption `json:"schedule_option,omitempty"` + VendorType *string `json:"vendor_type,omitempty"` + AccountType *string `json:"account_type,omitempty"` + BusinessType *string `json:"business_type,omitempty"` + RelatedDocs []VendorEntityRelatedDocsInner `json:"related_docs,omitempty"` +} + + +func (o VendorEntity) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VendorEntity) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Phone) { + toSerialize["phone"] = o.Phone + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.VendorId) { + toSerialize["vendor_id"] = o.VendorId + } + if !IsNil(o.AddedOn) { + toSerialize["added_on"] = o.AddedOn + } + if !IsNil(o.UpdatedOn) { + toSerialize["updated_on"] = o.UpdatedOn + } + if !IsNil(o.Bank) { + toSerialize["bank"] = o.Bank + } + if !IsNil(o.Upi) { + toSerialize["upi"] = o.Upi + } + if !IsNil(o.ScheduleOption) { + toSerialize["schedule_option"] = o.ScheduleOption + } + if !IsNil(o.VendorType) { + toSerialize["vendor_type"] = o.VendorType + } + if !IsNil(o.AccountType) { + toSerialize["account_type"] = o.AccountType + } + if !IsNil(o.BusinessType) { + toSerialize["business_type"] = o.BusinessType + } + if !IsNil(o.RelatedDocs) { + toSerialize["related_docs"] = o.RelatedDocs + } + return toSerialize, nil +} + + + diff --git a/model_vendor_entity_related_docs_inner.go b/model_vendor_entity_related_docs_inner.go new file mode 100644 index 0000000..637ddf6 --- /dev/null +++ b/model_vendor_entity_related_docs_inner.go @@ -0,0 +1,62 @@ +/* +Cashfree Payment Gateway APIs + +Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. + +API version: 2023-08-01 +Contact: developers@cashfree.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cashfree_pg + +import ( + "encoding/json" + "strings" +) + +// checks if the VendorEntityRelatedDocsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VendorEntityRelatedDocsInner{} + +// VendorEntityRelatedDocsInner struct for VendorEntityRelatedDocsInner +type VendorEntityRelatedDocsInner struct { + VendorId *string `json:"vendor_id,omitempty"` + DocType *string `json:"doc_type,omitempty"` + DocValue *string `json:"doc_value,omitempty"` + Status *string `json:"status,omitempty"` + Remarks *string `json:"remarks,omitempty"` +} + + +func (o VendorEntityRelatedDocsInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VendorEntityRelatedDocsInner) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.VendorId) { + toSerialize["vendor_id"] = o.VendorId + } + if !IsNil(o.DocType) { + toSerialize["doc_type"] = o.DocType + } + if !IsNil(o.DocValue) { + toSerialize["doc_value"] = o.DocValue + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Remarks) { + toSerialize["remarks"] = o.Remarks + } + return toSerialize, nil +} + + +