diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 87cc32e..8dd329a 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -37,7 +37,6 @@ docs/BalanceDetails.md docs/BankDetails.md docs/Banktransfer.md docs/BanktransferPaymentMethod.md -docs/CARD.md docs/Card.md docs/CardEMI.md docs/CardEMIPaymentMethod.md @@ -57,13 +56,17 @@ docs/CreateOrderSettlementRequestBody.md docs/CreateOrderSettlementRequestBodyMetaData.md docs/CreatePlanRequest.md docs/CreateSubscriptionPaymentRequest.md +docs/CreateSubscriptionPaymentRequestCard.md +docs/CreateSubscriptionPaymentRequestEnack.md docs/CreateSubscriptionPaymentRequestPaymentMethod.md +docs/CreateSubscriptionPaymentRequestPnach.md docs/CreateSubscriptionPaymentResponse.md docs/CreateSubscriptionRefundRequest.md docs/CreateSubscriptionRequest.md docs/CreateSubscriptionRequestAuthorizationDetails.md docs/CreateSubscriptionRequestPlanDetails.md docs/CreateSubscriptionRequestSubscriptionMeta.md +docs/CreateSubscriptonPaymentRequestUpi.md docs/CreateTerminalRequest.md docs/CreateTerminalRequestTerminalMeta.md docs/CreateTerminalTransactionRequest.md @@ -78,7 +81,6 @@ docs/CustomersAPI.md docs/DiscountDetails.md docs/EMIOffer.md docs/EMIPlansArray.md -docs/ENACH.md docs/ESOrderReconRequest.md docs/ESOrderReconRequestFilters.md docs/ESOrderReconRequestPagination.md @@ -152,7 +154,6 @@ docs/OrderMeta.md docs/OrderPayData.md docs/OrdersAPI.md docs/PGReconciliationAPI.md -docs/PNACH.md docs/PayOrderEntity.md docs/PayOrderRequest.md docs/PayOrderRequestPaymentMethod.md @@ -241,7 +242,6 @@ docs/TerminateOrderRequest.md docs/TokenVaultAPI.md docs/TransferDetails.md docs/TransferDetailsTagsInner.md -docs/UPI.md docs/UPIAuthorizeDetails.md docs/UPIPaymentMethod.md docs/UpdateTerminalEntity.md @@ -285,7 +285,6 @@ model_bank_details.go model_banktransfer.go model_banktransfer_payment_method.go model_card.go -model_card.go model_card_emi.go model_card_emi_payment_method.go model_card_offer.go @@ -304,13 +303,17 @@ model_create_order_settlement_request_body.go model_create_order_settlement_request_body_meta_data.go model_create_plan_request.go model_create_subscription_payment_request.go +model_create_subscription_payment_request_card.go +model_create_subscription_payment_request_enack.go model_create_subscription_payment_request_payment_method.go +model_create_subscription_payment_request_pnach.go model_create_subscription_payment_response.go model_create_subscription_refund_request.go model_create_subscription_request.go model_create_subscription_request_authorization_details.go model_create_subscription_request_plan_details.go model_create_subscription_request_subscription_meta.go +model_create_subscripton_payment_request_upi.go model_create_terminal_request.go model_create_terminal_request_terminal_meta.go model_create_terminal_transaction_request.go @@ -336,7 +339,6 @@ model_eligibility_payment_methods_entity.go model_eligibility_payment_methods_entity_entity_details.go model_emi_offer.go model_emi_plans_array.go -model_enach.go model_entity_simulation_request.go model_entity_simulation_response.go model_error_details_in_payments_entity.go @@ -429,7 +431,6 @@ model_payment_webhook_error_entity.go model_payment_webhook_gateway_details_entity.go model_payment_webhook_order_entity.go model_plan_entity.go -model_pnach.go model_rate_limit_error.go model_recon_entity.go model_recon_entity_data_inner.go @@ -480,7 +481,6 @@ model_update_terminal_status_request.go model_update_vendor_request.go model_update_vendor_response.go model_upi.go -model_upi.go model_upi_authorize_details.go model_upi_details.go model_upi_payment_method.go diff --git a/api_customers.go b/api_customers.go index 47aa85b..213db04 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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 index cb96fd8..c57edad 100644 --- a/api_easy_split.go +++ b/api_easy_split.go @@ -232,7 +232,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -496,7 +496,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -746,7 +746,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -994,7 +994,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1256,7 +1256,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1526,7 +1526,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1788,7 +1788,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2082,7 +2082,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2378,7 +2378,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2686,7 +2686,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2982,7 +2982,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -3276,7 +3276,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_eligibility.go b/api_eligibility.go index b9d6980..8e302c2 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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 e2c302f..66318e7 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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 998e264..5015fdf 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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 215e344..e3dbaa1 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1687,7 +1687,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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 c8ff2e6..7dc38e3 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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 7faabe5..85d0917 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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 b629f53..b985daf 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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 152164f..db080ca 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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 1ee9984..a2ce8fa 100644 --- a/api_settlements.go +++ b/api_settlements.go @@ -274,7 +274,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -686,7 +686,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_simulation.go b/api_simulation.go index b84a062..bc58444 100644 --- a/api_simulation.go +++ b/api_simulation.go @@ -287,7 +287,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -677,7 +677,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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 3e431e6..d6efa9e 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1673,7 +1673,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2123,7 +2123,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2575,7 +2575,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -3027,7 +3027,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -3479,7 +3479,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err diff --git a/api_subscription.go b/api_subscription.go index dad2bad..b130367 100644 --- a/api_subscription.go +++ b/api_subscription.go @@ -311,7 +311,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -731,7 +731,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1153,7 +1153,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1573,7 +1573,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -1970,7 +1970,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2352,7 +2352,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2736,7 +2736,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -3133,7 +3133,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -3532,7 +3532,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -3939,7 +3939,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -4348,7 +4348,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -4801,7 +4801,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" req, err := client.prepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -5221,7 +5221,7 @@ if XPartnerApiKey != nil { localVarHeaderParams["x-partner-apikey"] = *XPartnerApiKey } - localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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 39a8cd3..2e62901 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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.2.2" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.3" 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 d7ef9c5..211726f 100644 --- a/configuration.go +++ b/configuration.go @@ -92,7 +92,7 @@ func SetupSentry(environment CFEnvironment) { AttachStacktrace: true, EnableTracing: true, Environment: env, - Release: "4.2.2", + Release: "4.2.3", 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.2.2/go", + UserAgent: "OpenAPI-Generator/4.2.3/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/docs/CreateSubscriptionPaymentRequestCard.md b/docs/CreateSubscriptionPaymentRequestCard.md index 8b13789..cd39801 100644 --- a/docs/CreateSubscriptionPaymentRequestCard.md +++ b/docs/CreateSubscriptionPaymentRequestCard.md @@ -1 +1,238 @@ +# CreateSubscriptionPaymentRequestCard + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Channel** | Pointer to **string** | Channel. can be link | [optional] +**CardNumber** | Pointer to **string** | Card number | [optional] +**CardHolderName** | Pointer to **string** | Card holder name | [optional] +**CardExpiryMm** | Pointer to **string** | Card expiry month | [optional] +**CardExpiryYy** | Pointer to **string** | Card expiry year | [optional] +**CardCvv** | Pointer to **string** | Card CVV | [optional] +**CardNetwork** | Pointer to **string** | Card network | [optional] +**CardType** | Pointer to **string** | Card type | [optional] + +## Methods + +### NewCreateSubscriptionPaymentRequestCard + +`func NewCreateSubscriptionPaymentRequestCard() *CreateSubscriptionPaymentRequestCard` + +NewCreateSubscriptionPaymentRequestCard instantiates a new CreateSubscriptionPaymentRequestCard 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 + +### NewCreateSubscriptionPaymentRequestCardWithDefaults + +`func NewCreateSubscriptionPaymentRequestCardWithDefaults() *CreateSubscriptionPaymentRequestCard` + +NewCreateSubscriptionPaymentRequestCardWithDefaults instantiates a new CreateSubscriptionPaymentRequestCard 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 *CreateSubscriptionPaymentRequestCard) GetChannel() string` + +GetChannel returns the Channel field if non-nil, zero value otherwise. + +### GetChannelOk + +`func (o *CreateSubscriptionPaymentRequestCard) 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 *CreateSubscriptionPaymentRequestCard) SetChannel(v string)` + +SetChannel sets Channel field to given value. + +### HasChannel + +`func (o *CreateSubscriptionPaymentRequestCard) HasChannel() bool` + +HasChannel returns a boolean if a field has been set. + +### GetCardNumber + +`func (o *CreateSubscriptionPaymentRequestCard) GetCardNumber() string` + +GetCardNumber returns the CardNumber field if non-nil, zero value otherwise. + +### GetCardNumberOk + +`func (o *CreateSubscriptionPaymentRequestCard) GetCardNumberOk() (*string, bool)` + +GetCardNumberOk returns a tuple with the CardNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCardNumber + +`func (o *CreateSubscriptionPaymentRequestCard) SetCardNumber(v string)` + +SetCardNumber sets CardNumber field to given value. + +### HasCardNumber + +`func (o *CreateSubscriptionPaymentRequestCard) HasCardNumber() bool` + +HasCardNumber returns a boolean if a field has been set. + +### GetCardHolderName + +`func (o *CreateSubscriptionPaymentRequestCard) GetCardHolderName() string` + +GetCardHolderName returns the CardHolderName field if non-nil, zero value otherwise. + +### GetCardHolderNameOk + +`func (o *CreateSubscriptionPaymentRequestCard) GetCardHolderNameOk() (*string, bool)` + +GetCardHolderNameOk returns a tuple with the CardHolderName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCardHolderName + +`func (o *CreateSubscriptionPaymentRequestCard) SetCardHolderName(v string)` + +SetCardHolderName sets CardHolderName field to given value. + +### HasCardHolderName + +`func (o *CreateSubscriptionPaymentRequestCard) HasCardHolderName() bool` + +HasCardHolderName returns a boolean if a field has been set. + +### GetCardExpiryMm + +`func (o *CreateSubscriptionPaymentRequestCard) GetCardExpiryMm() string` + +GetCardExpiryMm returns the CardExpiryMm field if non-nil, zero value otherwise. + +### GetCardExpiryMmOk + +`func (o *CreateSubscriptionPaymentRequestCard) GetCardExpiryMmOk() (*string, bool)` + +GetCardExpiryMmOk returns a tuple with the CardExpiryMm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCardExpiryMm + +`func (o *CreateSubscriptionPaymentRequestCard) SetCardExpiryMm(v string)` + +SetCardExpiryMm sets CardExpiryMm field to given value. + +### HasCardExpiryMm + +`func (o *CreateSubscriptionPaymentRequestCard) HasCardExpiryMm() bool` + +HasCardExpiryMm returns a boolean if a field has been set. + +### GetCardExpiryYy + +`func (o *CreateSubscriptionPaymentRequestCard) GetCardExpiryYy() string` + +GetCardExpiryYy returns the CardExpiryYy field if non-nil, zero value otherwise. + +### GetCardExpiryYyOk + +`func (o *CreateSubscriptionPaymentRequestCard) GetCardExpiryYyOk() (*string, bool)` + +GetCardExpiryYyOk returns a tuple with the CardExpiryYy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCardExpiryYy + +`func (o *CreateSubscriptionPaymentRequestCard) SetCardExpiryYy(v string)` + +SetCardExpiryYy sets CardExpiryYy field to given value. + +### HasCardExpiryYy + +`func (o *CreateSubscriptionPaymentRequestCard) HasCardExpiryYy() bool` + +HasCardExpiryYy returns a boolean if a field has been set. + +### GetCardCvv + +`func (o *CreateSubscriptionPaymentRequestCard) GetCardCvv() string` + +GetCardCvv returns the CardCvv field if non-nil, zero value otherwise. + +### GetCardCvvOk + +`func (o *CreateSubscriptionPaymentRequestCard) GetCardCvvOk() (*string, bool)` + +GetCardCvvOk returns a tuple with the CardCvv field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCardCvv + +`func (o *CreateSubscriptionPaymentRequestCard) SetCardCvv(v string)` + +SetCardCvv sets CardCvv field to given value. + +### HasCardCvv + +`func (o *CreateSubscriptionPaymentRequestCard) HasCardCvv() bool` + +HasCardCvv returns a boolean if a field has been set. + +### GetCardNetwork + +`func (o *CreateSubscriptionPaymentRequestCard) GetCardNetwork() string` + +GetCardNetwork returns the CardNetwork field if non-nil, zero value otherwise. + +### GetCardNetworkOk + +`func (o *CreateSubscriptionPaymentRequestCard) GetCardNetworkOk() (*string, bool)` + +GetCardNetworkOk returns a tuple with the CardNetwork field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCardNetwork + +`func (o *CreateSubscriptionPaymentRequestCard) SetCardNetwork(v string)` + +SetCardNetwork sets CardNetwork field to given value. + +### HasCardNetwork + +`func (o *CreateSubscriptionPaymentRequestCard) HasCardNetwork() bool` + +HasCardNetwork returns a boolean if a field has been set. + +### GetCardType + +`func (o *CreateSubscriptionPaymentRequestCard) GetCardType() string` + +GetCardType returns the CardType field if non-nil, zero value otherwise. + +### GetCardTypeOk + +`func (o *CreateSubscriptionPaymentRequestCard) GetCardTypeOk() (*string, bool)` + +GetCardTypeOk returns a tuple with the CardType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCardType + +`func (o *CreateSubscriptionPaymentRequestCard) SetCardType(v string)` + +SetCardType sets CardType field to given value. + +### HasCardType + +`func (o *CreateSubscriptionPaymentRequestCard) HasCardType() bool` + +HasCardType 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/CreateSubscriptionPaymentRequestEnack.md b/docs/CreateSubscriptionPaymentRequestEnack.md new file mode 100644 index 0000000..b861bee --- /dev/null +++ b/docs/CreateSubscriptionPaymentRequestEnack.md @@ -0,0 +1,212 @@ +# CreateSubscriptionPaymentRequestEnack + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Channel** | Pointer to **string** | Channel. can be link | [optional] +**AuthMode** | Pointer to **string** | Authentication mode. can be debit_card, aadhaar, or net_banking | [optional] +**AccountHolderName** | Pointer to **string** | Account holder name | [optional] +**AccountNumber** | Pointer to **string** | Account number | [optional] +**AccountBankCode** | Pointer to **string** | Account bank code (required without AccountIFSC) | [optional] +**AccountType** | Pointer to **string** | Account type | [optional] +**AccountIfsc** | Pointer to **string** | Account IFSC | [optional] + +## Methods + +### NewCreateSubscriptionPaymentRequestEnack + +`func NewCreateSubscriptionPaymentRequestEnack() *CreateSubscriptionPaymentRequestEnack` + +NewCreateSubscriptionPaymentRequestEnack instantiates a new CreateSubscriptionPaymentRequestEnack 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 + +### NewCreateSubscriptionPaymentRequestEnackWithDefaults + +`func NewCreateSubscriptionPaymentRequestEnackWithDefaults() *CreateSubscriptionPaymentRequestEnack` + +NewCreateSubscriptionPaymentRequestEnackWithDefaults instantiates a new CreateSubscriptionPaymentRequestEnack 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 *CreateSubscriptionPaymentRequestEnack) GetChannel() string` + +GetChannel returns the Channel field if non-nil, zero value otherwise. + +### GetChannelOk + +`func (o *CreateSubscriptionPaymentRequestEnack) 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 *CreateSubscriptionPaymentRequestEnack) SetChannel(v string)` + +SetChannel sets Channel field to given value. + +### HasChannel + +`func (o *CreateSubscriptionPaymentRequestEnack) HasChannel() bool` + +HasChannel returns a boolean if a field has been set. + +### GetAuthMode + +`func (o *CreateSubscriptionPaymentRequestEnack) GetAuthMode() string` + +GetAuthMode returns the AuthMode field if non-nil, zero value otherwise. + +### GetAuthModeOk + +`func (o *CreateSubscriptionPaymentRequestEnack) GetAuthModeOk() (*string, bool)` + +GetAuthModeOk returns a tuple with the AuthMode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthMode + +`func (o *CreateSubscriptionPaymentRequestEnack) SetAuthMode(v string)` + +SetAuthMode sets AuthMode field to given value. + +### HasAuthMode + +`func (o *CreateSubscriptionPaymentRequestEnack) HasAuthMode() bool` + +HasAuthMode returns a boolean if a field has been set. + +### GetAccountHolderName + +`func (o *CreateSubscriptionPaymentRequestEnack) GetAccountHolderName() string` + +GetAccountHolderName returns the AccountHolderName field if non-nil, zero value otherwise. + +### GetAccountHolderNameOk + +`func (o *CreateSubscriptionPaymentRequestEnack) GetAccountHolderNameOk() (*string, bool)` + +GetAccountHolderNameOk returns a tuple with the AccountHolderName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountHolderName + +`func (o *CreateSubscriptionPaymentRequestEnack) SetAccountHolderName(v string)` + +SetAccountHolderName sets AccountHolderName field to given value. + +### HasAccountHolderName + +`func (o *CreateSubscriptionPaymentRequestEnack) HasAccountHolderName() bool` + +HasAccountHolderName returns a boolean if a field has been set. + +### GetAccountNumber + +`func (o *CreateSubscriptionPaymentRequestEnack) GetAccountNumber() string` + +GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. + +### GetAccountNumberOk + +`func (o *CreateSubscriptionPaymentRequestEnack) 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 *CreateSubscriptionPaymentRequestEnack) SetAccountNumber(v string)` + +SetAccountNumber sets AccountNumber field to given value. + +### HasAccountNumber + +`func (o *CreateSubscriptionPaymentRequestEnack) HasAccountNumber() bool` + +HasAccountNumber returns a boolean if a field has been set. + +### GetAccountBankCode + +`func (o *CreateSubscriptionPaymentRequestEnack) GetAccountBankCode() string` + +GetAccountBankCode returns the AccountBankCode field if non-nil, zero value otherwise. + +### GetAccountBankCodeOk + +`func (o *CreateSubscriptionPaymentRequestEnack) GetAccountBankCodeOk() (*string, bool)` + +GetAccountBankCodeOk returns a tuple with the AccountBankCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountBankCode + +`func (o *CreateSubscriptionPaymentRequestEnack) SetAccountBankCode(v string)` + +SetAccountBankCode sets AccountBankCode field to given value. + +### HasAccountBankCode + +`func (o *CreateSubscriptionPaymentRequestEnack) HasAccountBankCode() bool` + +HasAccountBankCode returns a boolean if a field has been set. + +### GetAccountType + +`func (o *CreateSubscriptionPaymentRequestEnack) GetAccountType() string` + +GetAccountType returns the AccountType field if non-nil, zero value otherwise. + +### GetAccountTypeOk + +`func (o *CreateSubscriptionPaymentRequestEnack) 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 *CreateSubscriptionPaymentRequestEnack) SetAccountType(v string)` + +SetAccountType sets AccountType field to given value. + +### HasAccountType + +`func (o *CreateSubscriptionPaymentRequestEnack) HasAccountType() bool` + +HasAccountType returns a boolean if a field has been set. + +### GetAccountIfsc + +`func (o *CreateSubscriptionPaymentRequestEnack) GetAccountIfsc() string` + +GetAccountIfsc returns the AccountIfsc field if non-nil, zero value otherwise. + +### GetAccountIfscOk + +`func (o *CreateSubscriptionPaymentRequestEnack) GetAccountIfscOk() (*string, bool)` + +GetAccountIfscOk returns a tuple with the AccountIfsc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountIfsc + +`func (o *CreateSubscriptionPaymentRequestEnack) SetAccountIfsc(v string)` + +SetAccountIfsc sets AccountIfsc field to given value. + +### HasAccountIfsc + +`func (o *CreateSubscriptionPaymentRequestEnack) HasAccountIfsc() bool` + +HasAccountIfsc 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/CreateSubscriptionPaymentRequestPnach.md b/docs/CreateSubscriptionPaymentRequestPnach.md new file mode 100644 index 0000000..a561995 --- /dev/null +++ b/docs/CreateSubscriptionPaymentRequestPnach.md @@ -0,0 +1,238 @@ +# CreateSubscriptionPaymentRequestPnach + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Channel** | Pointer to **string** | Channel. can be post | [optional] +**AccountHolderName** | Pointer to **string** | Account holder name | [optional] +**AccountNumber** | Pointer to **string** | Account number | [optional] +**AccountBankCode** | Pointer to **string** | Account bank code | [optional] +**AccountType** | Pointer to **string** | Account type | [optional] +**AccountIfsc** | Pointer to **string** | Account IFSC | [optional] +**MandateCreationDate** | Pointer to **string** | Mandate creation date | [optional] +**MandateStartDate** | Pointer to **string** | Mandate start date | [optional] + +## Methods + +### NewCreateSubscriptionPaymentRequestPnach + +`func NewCreateSubscriptionPaymentRequestPnach() *CreateSubscriptionPaymentRequestPnach` + +NewCreateSubscriptionPaymentRequestPnach instantiates a new CreateSubscriptionPaymentRequestPnach 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 + +### NewCreateSubscriptionPaymentRequestPnachWithDefaults + +`func NewCreateSubscriptionPaymentRequestPnachWithDefaults() *CreateSubscriptionPaymentRequestPnach` + +NewCreateSubscriptionPaymentRequestPnachWithDefaults instantiates a new CreateSubscriptionPaymentRequestPnach 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 *CreateSubscriptionPaymentRequestPnach) GetChannel() string` + +GetChannel returns the Channel field if non-nil, zero value otherwise. + +### GetChannelOk + +`func (o *CreateSubscriptionPaymentRequestPnach) 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 *CreateSubscriptionPaymentRequestPnach) SetChannel(v string)` + +SetChannel sets Channel field to given value. + +### HasChannel + +`func (o *CreateSubscriptionPaymentRequestPnach) HasChannel() bool` + +HasChannel returns a boolean if a field has been set. + +### GetAccountHolderName + +`func (o *CreateSubscriptionPaymentRequestPnach) GetAccountHolderName() string` + +GetAccountHolderName returns the AccountHolderName field if non-nil, zero value otherwise. + +### GetAccountHolderNameOk + +`func (o *CreateSubscriptionPaymentRequestPnach) GetAccountHolderNameOk() (*string, bool)` + +GetAccountHolderNameOk returns a tuple with the AccountHolderName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountHolderName + +`func (o *CreateSubscriptionPaymentRequestPnach) SetAccountHolderName(v string)` + +SetAccountHolderName sets AccountHolderName field to given value. + +### HasAccountHolderName + +`func (o *CreateSubscriptionPaymentRequestPnach) HasAccountHolderName() bool` + +HasAccountHolderName returns a boolean if a field has been set. + +### GetAccountNumber + +`func (o *CreateSubscriptionPaymentRequestPnach) GetAccountNumber() string` + +GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. + +### GetAccountNumberOk + +`func (o *CreateSubscriptionPaymentRequestPnach) 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 *CreateSubscriptionPaymentRequestPnach) SetAccountNumber(v string)` + +SetAccountNumber sets AccountNumber field to given value. + +### HasAccountNumber + +`func (o *CreateSubscriptionPaymentRequestPnach) HasAccountNumber() bool` + +HasAccountNumber returns a boolean if a field has been set. + +### GetAccountBankCode + +`func (o *CreateSubscriptionPaymentRequestPnach) GetAccountBankCode() string` + +GetAccountBankCode returns the AccountBankCode field if non-nil, zero value otherwise. + +### GetAccountBankCodeOk + +`func (o *CreateSubscriptionPaymentRequestPnach) GetAccountBankCodeOk() (*string, bool)` + +GetAccountBankCodeOk returns a tuple with the AccountBankCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountBankCode + +`func (o *CreateSubscriptionPaymentRequestPnach) SetAccountBankCode(v string)` + +SetAccountBankCode sets AccountBankCode field to given value. + +### HasAccountBankCode + +`func (o *CreateSubscriptionPaymentRequestPnach) HasAccountBankCode() bool` + +HasAccountBankCode returns a boolean if a field has been set. + +### GetAccountType + +`func (o *CreateSubscriptionPaymentRequestPnach) GetAccountType() string` + +GetAccountType returns the AccountType field if non-nil, zero value otherwise. + +### GetAccountTypeOk + +`func (o *CreateSubscriptionPaymentRequestPnach) 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 *CreateSubscriptionPaymentRequestPnach) SetAccountType(v string)` + +SetAccountType sets AccountType field to given value. + +### HasAccountType + +`func (o *CreateSubscriptionPaymentRequestPnach) HasAccountType() bool` + +HasAccountType returns a boolean if a field has been set. + +### GetAccountIfsc + +`func (o *CreateSubscriptionPaymentRequestPnach) GetAccountIfsc() string` + +GetAccountIfsc returns the AccountIfsc field if non-nil, zero value otherwise. + +### GetAccountIfscOk + +`func (o *CreateSubscriptionPaymentRequestPnach) GetAccountIfscOk() (*string, bool)` + +GetAccountIfscOk returns a tuple with the AccountIfsc field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountIfsc + +`func (o *CreateSubscriptionPaymentRequestPnach) SetAccountIfsc(v string)` + +SetAccountIfsc sets AccountIfsc field to given value. + +### HasAccountIfsc + +`func (o *CreateSubscriptionPaymentRequestPnach) HasAccountIfsc() bool` + +HasAccountIfsc returns a boolean if a field has been set. + +### GetMandateCreationDate + +`func (o *CreateSubscriptionPaymentRequestPnach) GetMandateCreationDate() string` + +GetMandateCreationDate returns the MandateCreationDate field if non-nil, zero value otherwise. + +### GetMandateCreationDateOk + +`func (o *CreateSubscriptionPaymentRequestPnach) GetMandateCreationDateOk() (*string, bool)` + +GetMandateCreationDateOk returns a tuple with the MandateCreationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMandateCreationDate + +`func (o *CreateSubscriptionPaymentRequestPnach) SetMandateCreationDate(v string)` + +SetMandateCreationDate sets MandateCreationDate field to given value. + +### HasMandateCreationDate + +`func (o *CreateSubscriptionPaymentRequestPnach) HasMandateCreationDate() bool` + +HasMandateCreationDate returns a boolean if a field has been set. + +### GetMandateStartDate + +`func (o *CreateSubscriptionPaymentRequestPnach) GetMandateStartDate() string` + +GetMandateStartDate returns the MandateStartDate field if non-nil, zero value otherwise. + +### GetMandateStartDateOk + +`func (o *CreateSubscriptionPaymentRequestPnach) GetMandateStartDateOk() (*string, bool)` + +GetMandateStartDateOk returns a tuple with the MandateStartDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMandateStartDate + +`func (o *CreateSubscriptionPaymentRequestPnach) SetMandateStartDate(v string)` + +SetMandateStartDate sets MandateStartDate field to given value. + +### HasMandateStartDate + +`func (o *CreateSubscriptionPaymentRequestPnach) HasMandateStartDate() bool` + +HasMandateStartDate 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/CreateSubscriptonPaymentRequestUpi.md b/docs/CreateSubscriptonPaymentRequestUpi.md new file mode 100644 index 0000000..1b0ec79 --- /dev/null +++ b/docs/CreateSubscriptonPaymentRequestUpi.md @@ -0,0 +1,82 @@ +# CreateSubscriptonPaymentRequestUpi + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UpiId** | Pointer to **string** | | [optional] +**Channel** | Pointer to **string** | Channel. can be link, qrcode, or collect | [optional] + +## Methods + +### NewCreateSubscriptonPaymentRequestUpi + +`func NewCreateSubscriptonPaymentRequestUpi() *CreateSubscriptonPaymentRequestUpi` + +NewCreateSubscriptonPaymentRequestUpi instantiates a new CreateSubscriptonPaymentRequestUpi 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 + +### NewCreateSubscriptonPaymentRequestUpiWithDefaults + +`func NewCreateSubscriptonPaymentRequestUpiWithDefaults() *CreateSubscriptonPaymentRequestUpi` + +NewCreateSubscriptonPaymentRequestUpiWithDefaults instantiates a new CreateSubscriptonPaymentRequestUpi 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 + +### GetUpiId + +`func (o *CreateSubscriptonPaymentRequestUpi) GetUpiId() string` + +GetUpiId returns the UpiId field if non-nil, zero value otherwise. + +### GetUpiIdOk + +`func (o *CreateSubscriptonPaymentRequestUpi) GetUpiIdOk() (*string, bool)` + +GetUpiIdOk returns a tuple with the UpiId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpiId + +`func (o *CreateSubscriptonPaymentRequestUpi) SetUpiId(v string)` + +SetUpiId sets UpiId field to given value. + +### HasUpiId + +`func (o *CreateSubscriptonPaymentRequestUpi) HasUpiId() bool` + +HasUpiId returns a boolean if a field has been set. + +### GetChannel + +`func (o *CreateSubscriptonPaymentRequestUpi) GetChannel() string` + +GetChannel returns the Channel field if non-nil, zero value otherwise. + +### GetChannelOk + +`func (o *CreateSubscriptonPaymentRequestUpi) 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 *CreateSubscriptonPaymentRequestUpi) SetChannel(v string)` + +SetChannel sets Channel field to given value. + +### HasChannel + +`func (o *CreateSubscriptonPaymentRequestUpi) 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/model_create_subscription_payment_request_card.go b/model_create_subscription_payment_request_card.go new file mode 100644 index 0000000..27355a8 --- /dev/null +++ b/model_create_subscription_payment_request_card.go @@ -0,0 +1,82 @@ +/* +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 CreateSubscriptionPaymentRequestCard type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateSubscriptionPaymentRequestCard{} + +// CreateSubscriptionPaymentRequestCard payment method card. +type CreateSubscriptionPaymentRequestCard struct { + // Channel. can be link + Channel *string `json:"channel,omitempty"` + // Card number + CardNumber *string `json:"card_number,omitempty"` + // Card holder name + CardHolderName *string `json:"card_holder_name,omitempty"` + // Card expiry month + CardExpiryMm *string `json:"card_expiry_mm,omitempty"` + // Card expiry year + CardExpiryYy *string `json:"card_expiry_yy,omitempty"` + // Card CVV + CardCvv *string `json:"card_cvv,omitempty"` + // Card network + CardNetwork *string `json:"card_network,omitempty"` + // Card type + CardType *string `json:"card_type,omitempty"` +} + + +func (o CreateSubscriptionPaymentRequestCard) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateSubscriptionPaymentRequestCard) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.Channel) { + toSerialize["channel"] = o.Channel + } + if !IsNil(o.CardNumber) { + toSerialize["card_number"] = o.CardNumber + } + if !IsNil(o.CardHolderName) { + toSerialize["card_holder_name"] = o.CardHolderName + } + if !IsNil(o.CardExpiryMm) { + toSerialize["card_expiry_mm"] = o.CardExpiryMm + } + if !IsNil(o.CardExpiryYy) { + toSerialize["card_expiry_yy"] = o.CardExpiryYy + } + if !IsNil(o.CardCvv) { + toSerialize["card_cvv"] = o.CardCvv + } + if !IsNil(o.CardNetwork) { + toSerialize["card_network"] = o.CardNetwork + } + if !IsNil(o.CardType) { + toSerialize["card_type"] = o.CardType + } + return toSerialize, nil +} + + + diff --git a/model_create_subscription_payment_request_enack.go b/model_create_subscription_payment_request_enack.go new file mode 100644 index 0000000..a7470a6 --- /dev/null +++ b/model_create_subscription_payment_request_enack.go @@ -0,0 +1,77 @@ +/* +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 CreateSubscriptionPaymentRequestEnack type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateSubscriptionPaymentRequestEnack{} + +// CreateSubscriptionPaymentRequestEnack payment method enach. +type CreateSubscriptionPaymentRequestEnack struct { + // Channel. can be link + Channel *string `json:"channel,omitempty"` + // Authentication mode. can be debit_card, aadhaar, or net_banking + AuthMode *string `json:"auth_mode,omitempty"` + // Account holder name + AccountHolderName *string `json:"account_holder_name,omitempty"` + // Account number + AccountNumber *string `json:"account_number,omitempty"` + // Account bank code (required without AccountIFSC) + AccountBankCode *string `json:"account_bank_code,omitempty"` + // Account type + AccountType *string `json:"account_type,omitempty"` + // Account IFSC + AccountIfsc *string `json:"account_ifsc,omitempty"` +} + + +func (o CreateSubscriptionPaymentRequestEnack) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateSubscriptionPaymentRequestEnack) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.Channel) { + toSerialize["channel"] = o.Channel + } + if !IsNil(o.AuthMode) { + toSerialize["auth_mode"] = o.AuthMode + } + if !IsNil(o.AccountHolderName) { + toSerialize["account_holder_name"] = o.AccountHolderName + } + if !IsNil(o.AccountNumber) { + toSerialize["account_number"] = o.AccountNumber + } + if !IsNil(o.AccountBankCode) { + toSerialize["account_bank_code"] = o.AccountBankCode + } + if !IsNil(o.AccountType) { + toSerialize["account_type"] = o.AccountType + } + if !IsNil(o.AccountIfsc) { + toSerialize["account_ifsc"] = o.AccountIfsc + } + return toSerialize, nil +} + + + diff --git a/model_create_subscription_payment_request_payment_method.go b/model_create_subscription_payment_request_payment_method.go index 5f75059..2b536ea 100644 --- a/model_create_subscription_payment_request_payment_method.go +++ b/model_create_subscription_payment_request_payment_method.go @@ -19,37 +19,37 @@ import ( // CreateSubscriptionPaymentRequestPaymentMethod - Payment method. Can be one of [\"upi\", \"enach\", \"pnach\", \"card\"] type CreateSubscriptionPaymentRequestPaymentMethod struct { - CARD *CARD - ENACH *ENACH - PNACH *PNACH - UPI *UPI + CreateSubscriptionPaymentRequestCard *CreateSubscriptionPaymentRequestCard + CreateSubscriptionPaymentRequestEnack *CreateSubscriptionPaymentRequestEnack + CreateSubscriptionPaymentRequestPnach *CreateSubscriptionPaymentRequestPnach + CreateSubscriptonPaymentRequestUpi *CreateSubscriptonPaymentRequestUpi } -// CARDAsCreateSubscriptionPaymentRequestPaymentMethod is a convenience function that returns CARD wrapped in CreateSubscriptionPaymentRequestPaymentMethod -func CARDAsCreateSubscriptionPaymentRequestPaymentMethod(v *CARD) CreateSubscriptionPaymentRequestPaymentMethod { +// CreateSubscriptionPaymentRequestCardAsCreateSubscriptionPaymentRequestPaymentMethod is a convenience function that returns CreateSubscriptionPaymentRequestCard wrapped in CreateSubscriptionPaymentRequestPaymentMethod +func CreateSubscriptionPaymentRequestCardAsCreateSubscriptionPaymentRequestPaymentMethod(v *CreateSubscriptionPaymentRequestCard) CreateSubscriptionPaymentRequestPaymentMethod { return CreateSubscriptionPaymentRequestPaymentMethod{ - CARD: v, + CreateSubscriptionPaymentRequestCard: v, } } -// ENACHAsCreateSubscriptionPaymentRequestPaymentMethod is a convenience function that returns ENACH wrapped in CreateSubscriptionPaymentRequestPaymentMethod -func ENACHAsCreateSubscriptionPaymentRequestPaymentMethod(v *ENACH) CreateSubscriptionPaymentRequestPaymentMethod { +// CreateSubscriptionPaymentRequestEnackAsCreateSubscriptionPaymentRequestPaymentMethod is a convenience function that returns CreateSubscriptionPaymentRequestEnack wrapped in CreateSubscriptionPaymentRequestPaymentMethod +func CreateSubscriptionPaymentRequestEnackAsCreateSubscriptionPaymentRequestPaymentMethod(v *CreateSubscriptionPaymentRequestEnack) CreateSubscriptionPaymentRequestPaymentMethod { return CreateSubscriptionPaymentRequestPaymentMethod{ - ENACH: v, + CreateSubscriptionPaymentRequestEnack: v, } } -// PNACHAsCreateSubscriptionPaymentRequestPaymentMethod is a convenience function that returns PNACH wrapped in CreateSubscriptionPaymentRequestPaymentMethod -func PNACHAsCreateSubscriptionPaymentRequestPaymentMethod(v *PNACH) CreateSubscriptionPaymentRequestPaymentMethod { +// CreateSubscriptionPaymentRequestPnachAsCreateSubscriptionPaymentRequestPaymentMethod is a convenience function that returns CreateSubscriptionPaymentRequestPnach wrapped in CreateSubscriptionPaymentRequestPaymentMethod +func CreateSubscriptionPaymentRequestPnachAsCreateSubscriptionPaymentRequestPaymentMethod(v *CreateSubscriptionPaymentRequestPnach) CreateSubscriptionPaymentRequestPaymentMethod { return CreateSubscriptionPaymentRequestPaymentMethod{ - PNACH: v, + CreateSubscriptionPaymentRequestPnach: v, } } -// UPIAsCreateSubscriptionPaymentRequestPaymentMethod is a convenience function that returns UPI wrapped in CreateSubscriptionPaymentRequestPaymentMethod -func UPIAsCreateSubscriptionPaymentRequestPaymentMethod(v *UPI) CreateSubscriptionPaymentRequestPaymentMethod { +// CreateSubscriptonPaymentRequestUpiAsCreateSubscriptionPaymentRequestPaymentMethod is a convenience function that returns CreateSubscriptonPaymentRequestUpi wrapped in CreateSubscriptionPaymentRequestPaymentMethod +func CreateSubscriptonPaymentRequestUpiAsCreateSubscriptionPaymentRequestPaymentMethod(v *CreateSubscriptonPaymentRequestUpi) CreateSubscriptionPaymentRequestPaymentMethod { return CreateSubscriptionPaymentRequestPaymentMethod{ - UPI: v, + CreateSubscriptonPaymentRequestUpi: v, } } @@ -65,17 +65,17 @@ func (dst *CreateSubscriptionPaymentRequestPaymentMethod) UnmarshalJSON(data []b match := 0 - // try to unmarshal data into CARD + // try to unmarshal data into CreateSubscriptionPaymentRequestCard - err = json.Unmarshal(data, &dst.CARD) + err = json.Unmarshal(data, &dst.CreateSubscriptionPaymentRequestCard) if err == nil { - jsonCARD, _ := json.Marshal(dst.CARD) + jsonCreateSubscriptionPaymentRequestCard, _ := json.Marshal(dst.CreateSubscriptionPaymentRequestCard) - if strings.Contains(string(jsonCARD), "{}") || strings.Contains(string(jsonCARD), "null") { // empty struct + if strings.Contains(string(jsonCreateSubscriptionPaymentRequestCard), "{}") || strings.Contains(string(jsonCreateSubscriptionPaymentRequestCard), "null") { // empty struct - dst.CARD = nil + dst.CreateSubscriptionPaymentRequestCard = nil } else { @@ -85,22 +85,22 @@ func (dst *CreateSubscriptionPaymentRequestPaymentMethod) UnmarshalJSON(data []b } else { - dst.CARD = nil + dst.CreateSubscriptionPaymentRequestCard = nil } - // try to unmarshal data into ENACH + // try to unmarshal data into CreateSubscriptionPaymentRequestEnack - err = json.Unmarshal(data, &dst.ENACH) + err = json.Unmarshal(data, &dst.CreateSubscriptionPaymentRequestEnack) if err == nil { - jsonENACH, _ := json.Marshal(dst.ENACH) + jsonCreateSubscriptionPaymentRequestEnack, _ := json.Marshal(dst.CreateSubscriptionPaymentRequestEnack) - if strings.Contains(string(jsonENACH), "{}") || strings.Contains(string(jsonENACH), "null") { // empty struct + if strings.Contains(string(jsonCreateSubscriptionPaymentRequestEnack), "{}") || strings.Contains(string(jsonCreateSubscriptionPaymentRequestEnack), "null") { // empty struct - dst.ENACH = nil + dst.CreateSubscriptionPaymentRequestEnack = nil } else { @@ -110,22 +110,22 @@ func (dst *CreateSubscriptionPaymentRequestPaymentMethod) UnmarshalJSON(data []b } else { - dst.ENACH = nil + dst.CreateSubscriptionPaymentRequestEnack = nil } - // try to unmarshal data into PNACH + // try to unmarshal data into CreateSubscriptionPaymentRequestPnach - err = json.Unmarshal(data, &dst.PNACH) + err = json.Unmarshal(data, &dst.CreateSubscriptionPaymentRequestPnach) if err == nil { - jsonPNACH, _ := json.Marshal(dst.PNACH) + jsonCreateSubscriptionPaymentRequestPnach, _ := json.Marshal(dst.CreateSubscriptionPaymentRequestPnach) - if strings.Contains(string(jsonPNACH), "{}") || strings.Contains(string(jsonPNACH), "null") { // empty struct + if strings.Contains(string(jsonCreateSubscriptionPaymentRequestPnach), "{}") || strings.Contains(string(jsonCreateSubscriptionPaymentRequestPnach), "null") { // empty struct - dst.PNACH = nil + dst.CreateSubscriptionPaymentRequestPnach = nil } else { @@ -135,22 +135,22 @@ func (dst *CreateSubscriptionPaymentRequestPaymentMethod) UnmarshalJSON(data []b } else { - dst.PNACH = nil + dst.CreateSubscriptionPaymentRequestPnach = nil } - // try to unmarshal data into UPI + // try to unmarshal data into CreateSubscriptonPaymentRequestUpi - err = json.Unmarshal(data, &dst.UPI) + err = json.Unmarshal(data, &dst.CreateSubscriptonPaymentRequestUpi) if err == nil { - jsonUPI, _ := json.Marshal(dst.UPI) + jsonCreateSubscriptonPaymentRequestUpi, _ := json.Marshal(dst.CreateSubscriptonPaymentRequestUpi) - if strings.Contains(string(jsonUPI), "{}") || strings.Contains(string(jsonUPI), "null") { // empty struct + if strings.Contains(string(jsonCreateSubscriptonPaymentRequestUpi), "{}") || strings.Contains(string(jsonCreateSubscriptonPaymentRequestUpi), "null") { // empty struct - dst.UPI = nil + dst.CreateSubscriptonPaymentRequestUpi = nil } else { @@ -160,7 +160,7 @@ func (dst *CreateSubscriptionPaymentRequestPaymentMethod) UnmarshalJSON(data []b } else { - dst.UPI = nil + dst.CreateSubscriptonPaymentRequestUpi = nil } @@ -170,16 +170,16 @@ func (dst *CreateSubscriptionPaymentRequestPaymentMethod) UnmarshalJSON(data []b // reset to nil - dst.CARD = nil + dst.CreateSubscriptionPaymentRequestCard = nil - dst.ENACH = nil + dst.CreateSubscriptionPaymentRequestEnack = nil - dst.PNACH = nil + dst.CreateSubscriptionPaymentRequestPnach = nil - dst.UPI = nil + dst.CreateSubscriptonPaymentRequestUpi = nil return fmt.Errorf("data matches more than one schema in oneOf(CreateSubscriptionPaymentRequestPaymentMethod)") @@ -200,20 +200,20 @@ func (dst *CreateSubscriptionPaymentRequestPaymentMethod) UnmarshalJSON(data []b // Marshal data from the first non-nil pointers in the struct to JSON func (src CreateSubscriptionPaymentRequestPaymentMethod) MarshalJSON() ([]byte, error) { - if src.CARD != nil { - return json.Marshal(&src.CARD) + if src.CreateSubscriptionPaymentRequestCard != nil { + return json.Marshal(&src.CreateSubscriptionPaymentRequestCard) } - if src.ENACH != nil { - return json.Marshal(&src.ENACH) + if src.CreateSubscriptionPaymentRequestEnack != nil { + return json.Marshal(&src.CreateSubscriptionPaymentRequestEnack) } - if src.PNACH != nil { - return json.Marshal(&src.PNACH) + if src.CreateSubscriptionPaymentRequestPnach != nil { + return json.Marshal(&src.CreateSubscriptionPaymentRequestPnach) } - if src.UPI != nil { - return json.Marshal(&src.UPI) + if src.CreateSubscriptonPaymentRequestUpi != nil { + return json.Marshal(&src.CreateSubscriptonPaymentRequestUpi) } return nil, nil // no data in oneOf schemas @@ -224,20 +224,20 @@ func (obj *CreateSubscriptionPaymentRequestPaymentMethod) GetActualInstance() (i if obj == nil { return nil } - if obj.CARD != nil { - return obj.CARD + if obj.CreateSubscriptionPaymentRequestCard != nil { + return obj.CreateSubscriptionPaymentRequestCard } - if obj.ENACH != nil { - return obj.ENACH + if obj.CreateSubscriptionPaymentRequestEnack != nil { + return obj.CreateSubscriptionPaymentRequestEnack } - if obj.PNACH != nil { - return obj.PNACH + if obj.CreateSubscriptionPaymentRequestPnach != nil { + return obj.CreateSubscriptionPaymentRequestPnach } - if obj.UPI != nil { - return obj.UPI + if obj.CreateSubscriptonPaymentRequestUpi != nil { + return obj.CreateSubscriptonPaymentRequestUpi } // all schemas are nil diff --git a/model_create_subscription_payment_request_pnach.go b/model_create_subscription_payment_request_pnach.go new file mode 100644 index 0000000..09c88ca --- /dev/null +++ b/model_create_subscription_payment_request_pnach.go @@ -0,0 +1,82 @@ +/* +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 CreateSubscriptionPaymentRequestPnach type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateSubscriptionPaymentRequestPnach{} + +// CreateSubscriptionPaymentRequestPnach payment method pnach. +type CreateSubscriptionPaymentRequestPnach struct { + // Channel. can be post + Channel *string `json:"channel,omitempty"` + // Account holder name + AccountHolderName *string `json:"account_holder_name,omitempty"` + // Account number + AccountNumber *string `json:"account_number,omitempty"` + // Account bank code + AccountBankCode *string `json:"account_bank_code,omitempty"` + // Account type + AccountType *string `json:"account_type,omitempty"` + // Account IFSC + AccountIfsc *string `json:"account_ifsc,omitempty"` + // Mandate creation date + MandateCreationDate *string `json:"mandate_creation_date,omitempty"` + // Mandate start date + MandateStartDate *string `json:"mandate_start_date,omitempty"` +} + + +func (o CreateSubscriptionPaymentRequestPnach) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateSubscriptionPaymentRequestPnach) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.Channel) { + toSerialize["channel"] = o.Channel + } + if !IsNil(o.AccountHolderName) { + toSerialize["account_holder_name"] = o.AccountHolderName + } + if !IsNil(o.AccountNumber) { + toSerialize["account_number"] = o.AccountNumber + } + if !IsNil(o.AccountBankCode) { + toSerialize["account_bank_code"] = o.AccountBankCode + } + if !IsNil(o.AccountType) { + toSerialize["account_type"] = o.AccountType + } + if !IsNil(o.AccountIfsc) { + toSerialize["account_ifsc"] = o.AccountIfsc + } + if !IsNil(o.MandateCreationDate) { + toSerialize["mandate_creation_date"] = o.MandateCreationDate + } + if !IsNil(o.MandateStartDate) { + toSerialize["mandate_start_date"] = o.MandateStartDate + } + return toSerialize, nil +} + + + diff --git a/model_create_subscripton_payment_request_upi.go b/model_create_subscripton_payment_request_upi.go new file mode 100644 index 0000000..27e200f --- /dev/null +++ b/model_create_subscripton_payment_request_upi.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 CreateSubscriptonPaymentRequestUpi type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateSubscriptonPaymentRequestUpi{} + +// CreateSubscriptonPaymentRequestUpi payment method upi. +type CreateSubscriptonPaymentRequestUpi struct { + UpiId *string `json:"upi_id,omitempty"` + // Channel. can be link, qrcode, or collect + Channel *string `json:"channel,omitempty"` +} + + +func (o CreateSubscriptonPaymentRequestUpi) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateSubscriptonPaymentRequestUpi) ToMap() (map[string]interface{}, error) { + strings.HasPrefix("cf", "cf") + toSerialize := map[string]interface{}{} + if !IsNil(o.UpiId) { + toSerialize["upi_id"] = o.UpiId + } + if !IsNil(o.Channel) { + toSerialize["channel"] = o.Channel + } + return toSerialize, nil +} + + +