From be82b4ddb2709ebf4095654676f044cc5fcd730a Mon Sep 17 00:00:00 2001 From: Suhas Date: Fri, 23 Aug 2024 17:29:45 +0530 Subject: [PATCH] version 4.2.4 --- api_customers.go | 2 +- api_easy_split.go | 24 ++++++++++----------- 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 | 4 ++-- api_simulation.go | 4 ++-- api_soft_pos.go | 16 +++++++------- api_subscription.go | 26 +++++++++++------------ api_token_vault.go | 8 +++---- configuration.go | 4 ++-- model_offer_validations_payment_method.go | 10 +++++++++ offers_test.go | 2 +- 18 files changed, 79 insertions(+), 69 deletions(-) diff --git a/api_customers.go b/api_customers.go index 213db04..2000351 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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 c57edad..8faf3a9 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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 8e302c2..4cf78f8 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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 66318e7..8348f24 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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 5015fdf..d3f1c0e 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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 e3dbaa1..18288c4 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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 7dc38e3..bdd8b4c 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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 85d0917..b77b521 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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 b985daf..fab35e8 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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 db080ca..7716f78 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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 a2ce8fa..3bab7ad 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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 bc58444..a4f3198 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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 d6efa9e..5d007b0 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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 b130367..509833e 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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 2e62901..538aca8 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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.3" + localVarHeaderParams["x-sdk-platform"] = "gosdk-4.2.4" 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 211726f..a6a3217 100644 --- a/configuration.go +++ b/configuration.go @@ -92,7 +92,7 @@ func SetupSentry(environment CFEnvironment) { AttachStacktrace: true, EnableTracing: true, Environment: env, - Release: "4.2.3", + Release: "4.2.4", 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.3/go", + UserAgent: "OpenAPI-Generator/4.2.4/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/model_offer_validations_payment_method.go b/model_offer_validations_payment_method.go index 2fe1bc3..26b2133 100644 --- a/model_offer_validations_payment_method.go +++ b/model_offer_validations_payment_method.go @@ -107,6 +107,16 @@ func (dst *OfferValidationsPaymentMethod) UnmarshalJSON(data []byte) error { } + if match == 0 { + all := map[string]interface{}{} + if strings.Contains(string(jsonOfferAll), "all") { + match++ + dst.OfferAll = &OfferAll{ + All: all, + } + } + } + } else { dst.OfferAll = nil diff --git a/offers_test.go b/offers_test.go index 21b8385..dd1e0fd 100644 --- a/offers_test.go +++ b/offers_test.go @@ -1,4 +1,4 @@ -// package cashfree_pg_test +package cashfree_pg_test // import ( // "context"