Skip to content

Commit

Permalink
Merge pull request #23 from talon-one/sc-29606-update-go-sdk
Browse files Browse the repository at this point in the history
v4.0.0
  • Loading branch information
kkupreeva committed Oct 17, 2023
2 parents a326f69 + 0450ea8 commit 2888ce8
Show file tree
Hide file tree
Showing 321 changed files with 31,565 additions and 4,852 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ _testmain.go
*.exe
*.test
*.prof

.idea/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
update-pkg-cache:
GOPROXY=https://proxy.golang.org GO111MODULE=on \
go get github.com/talon-one/talon_go/v3
go get github.com/talon-one/talon_go/v4
76 changes: 57 additions & 19 deletions README.md

Large diffs are not rendered by default.

7,751 changes: 5,836 additions & 1,915 deletions api/openapi.yaml

Large diffs are not rendered by default.

826 changes: 546 additions & 280 deletions api_integration.go

Large diffs are not rendered by default.

2,124 changes: 1,627 additions & 497 deletions api_management.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ type Configuration struct {
func NewConfiguration() *Configuration {
cfg := &Configuration{
DefaultHeader: make(map[string]string),
UserAgent: "OpenAPI-Generator/3.0.0/go",
UserAgent: "OpenAPI-Generator/4.0.0/go",
Debug: false,
Servers: ServerConfigurations{
{
Expand Down
26 changes: 26 additions & 0 deletions docs/AccountAnalytics.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Name | Type | Description | Notes
**Webhooks** | Pointer to **int32** | Total number of webhooks in the account. |
**LoyaltyPrograms** | Pointer to **int32** | Total number of all loyalty programs in the account. |
**LiveLoyaltyPrograms** | Pointer to **int32** | Total number of live loyalty programs in the account. |
**LastUpdatedAt** | Pointer to [**time.Time**](time.Time.md) | The point in time when the analytics numbers were updated last. |

## Methods

Expand Down Expand Up @@ -501,6 +502,31 @@ HasLiveLoyaltyPrograms returns a boolean if a field has been set.

SetLiveLoyaltyPrograms gets a reference to the given int32 and assigns it to the LiveLoyaltyPrograms field.

### GetLastUpdatedAt

`func (o *AccountAnalytics) GetLastUpdatedAt() time.Time`

GetLastUpdatedAt returns the LastUpdatedAt field if non-nil, zero value otherwise.

### GetLastUpdatedAtOk

`func (o *AccountAnalytics) GetLastUpdatedAtOk() (time.Time, bool)`

GetLastUpdatedAtOk returns a tuple with the LastUpdatedAt field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### HasLastUpdatedAt

`func (o *AccountAnalytics) HasLastUpdatedAt() bool`

HasLastUpdatedAt returns a boolean if a field has been set.

### SetLastUpdatedAt

`func (o *AccountAnalytics) SetLastUpdatedAt(v time.Time)`

SetLastUpdatedAt gets a reference to the given time.Time and assigns it to the LastUpdatedAt field.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
28 changes: 27 additions & 1 deletion docs/AccountDashboardStatisticCampaigns.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Live** | Pointer to **int32** | Number of campaigns that are active and live (across all Applications). |
**EndingSoon** | Pointer to **int32** | Campaigns with a schedule ending in 7 days or with only 10% of budget left. |
**EndingSoon** | Pointer to **int32** | Campaigns scheduled to expire sometime in the next 7 days. |
**LowOnBudget** | Pointer to **int32** | Campaigns with less than 10% of budget left. |

## Methods

Expand Down Expand Up @@ -59,6 +60,31 @@ HasEndingSoon returns a boolean if a field has been set.

SetEndingSoon gets a reference to the given int32 and assigns it to the EndingSoon field.

### GetLowOnBudget

`func (o *AccountDashboardStatisticCampaigns) GetLowOnBudget() int32`

GetLowOnBudget returns the LowOnBudget field if non-nil, zero value otherwise.

### GetLowOnBudgetOk

`func (o *AccountDashboardStatisticCampaigns) GetLowOnBudgetOk() (int32, bool)`

GetLowOnBudgetOk returns a tuple with the LowOnBudget field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### HasLowOnBudget

`func (o *AccountDashboardStatisticCampaigns) HasLowOnBudget() bool`

HasLowOnBudget returns a boolean if a field has been set.

### SetLowOnBudget

`func (o *AccountDashboardStatisticCampaigns) SetLowOnBudget(v int32)`

SetLowOnBudget gets a reference to the given int32 and assigns it to the LowOnBudget field.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
4 changes: 2 additions & 2 deletions docs/AddLoyaltyPoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Points** | Pointer to **float32** | Amount of loyalty points. |
**Name** | Pointer to **string** | Name / reason for the point addition. | [optional]
**ValidityDuration** | Pointer to **string** | The time format is either: - `immediate` or, - an **integer** followed by one letter indicating the time unit. Examples: `immediate`, `30s`, `40m`, `1h`, `5D`, `7W`, `10M`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks and months. Signifies the end of the day, week, or month. If passed, `validUntil` should be omitted. | [optional]
**ValidityDuration** | Pointer to **string** | The time format is either: - `immediate` or, - an **integer** followed by one letter indicating the time unit. Examples: `immediate`, `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. If passed, `validUntil` should be omitted. | [optional]
**ValidUntil** | Pointer to [**time.Time**](time.Time.md) | Date and time when points should expire. The value should be provided in RFC 3339 format. If passed, `validityDuration` should be omitted. | [optional]
**PendingDuration** | Pointer to **string** | The amount of time before the points are considered valid. The time format is either: - `immediate` or, - an **integer** followed by one letter indicating the time unit. Examples: `immediate`, `30s`, `40m`, `1h`, `5D`, `7W`, `10M`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks and months. Signifies the end of the day, week, or month. | [optional]
**PendingDuration** | Pointer to **string** | The amount of time before the points are considered valid. The time format is either: - `immediate` or, - an **integer** followed by one letter indicating the time unit. Examples: `immediate`, `30s`, `40m`, `1h`, `5D`, `7W`, `10M`, `15Y`. Available units: - `s`: seconds - `m`: minutes - `h`: hours - `D`: days - `W`: weeks - `M`: months - `Y`: years You can round certain units up or down: - `_D` for rounding down days only. Signifies the start of the day. - `_U` for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. | [optional]
**PendingUntil** | Pointer to [**time.Time**](time.Time.md) | Date and time after the points are considered valid. The value should be provided in RFC 3339 format. If passed, `pendingDuration` should be omitted. | [optional]
**SubledgerId** | Pointer to **string** | ID of the subledger the points are added to. If there is no existing subledger with this ID, the subledger is created automatically. | [optional]
**ApplicationId** | Pointer to **int32** | ID of the Application that is connected to the loyalty program. It is displayed in your Talon.One deployment URL. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/AddLoyaltyPointsEffectProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Name | Type | Description | Notes
**ExpiryDate** | Pointer to [**time.Time**](time.Time.md) | Date after which points will expire. | [optional]
**TransactionUUID** | Pointer to **string** | The identifier of this addition in the loyalty ledger. |
**CartItemPosition** | Pointer to **float32** | The index of the item in the cart items list on which the loyal points addition should be applied. | [optional]
**CartItemSubPosition** | Pointer to **float32** | The sub position is triggered when application flattening is enabled. It indicates to which item the loyalty points addition applies, for cart items with `quantity` > 1. | [optional]
**CartItemSubPosition** | Pointer to **float32** | For cart items with `quantity` > 1, the sub position indicates to which item the loyalty points addition is applied. | [optional]
**CardIdentifier** | Pointer to **string** | The alphanumeric identifier of the loyalty card. | [optional]
**BundleIndex** | Pointer to **int32** | The position of the bundle in a list of item bundles created from the same bundle definition. | [optional]
**BundleName** | Pointer to **string** | The name of the bundle definition. | [optional]
Expand Down
117 changes: 117 additions & 0 deletions docs/AddToAudienceEffectProps.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
# AddToAudienceEffectProps

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AudienceId** | Pointer to **int32** | The internal ID of the audience. | [optional]
**AudienceName** | Pointer to **string** | The name of the audience. | [optional]
**ProfileIntegrationId** | Pointer to **string** | The ID of the customer profile in the third-party integration platform. | [optional]
**ProfileId** | Pointer to **int32** | The internal ID of the customer profile. | [optional]

## Methods

### GetAudienceId

`func (o *AddToAudienceEffectProps) GetAudienceId() int32`

GetAudienceId returns the AudienceId field if non-nil, zero value otherwise.

### GetAudienceIdOk

`func (o *AddToAudienceEffectProps) GetAudienceIdOk() (int32, bool)`

GetAudienceIdOk returns a tuple with the AudienceId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### HasAudienceId

`func (o *AddToAudienceEffectProps) HasAudienceId() bool`

HasAudienceId returns a boolean if a field has been set.

### SetAudienceId

`func (o *AddToAudienceEffectProps) SetAudienceId(v int32)`

SetAudienceId gets a reference to the given int32 and assigns it to the AudienceId field.

### GetAudienceName

`func (o *AddToAudienceEffectProps) GetAudienceName() string`

GetAudienceName returns the AudienceName field if non-nil, zero value otherwise.

### GetAudienceNameOk

`func (o *AddToAudienceEffectProps) GetAudienceNameOk() (string, bool)`

GetAudienceNameOk returns a tuple with the AudienceName field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### HasAudienceName

`func (o *AddToAudienceEffectProps) HasAudienceName() bool`

HasAudienceName returns a boolean if a field has been set.

### SetAudienceName

`func (o *AddToAudienceEffectProps) SetAudienceName(v string)`

SetAudienceName gets a reference to the given string and assigns it to the AudienceName field.

### GetProfileIntegrationId

`func (o *AddToAudienceEffectProps) GetProfileIntegrationId() string`

GetProfileIntegrationId returns the ProfileIntegrationId field if non-nil, zero value otherwise.

### GetProfileIntegrationIdOk

`func (o *AddToAudienceEffectProps) GetProfileIntegrationIdOk() (string, bool)`

GetProfileIntegrationIdOk returns a tuple with the ProfileIntegrationId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### HasProfileIntegrationId

`func (o *AddToAudienceEffectProps) HasProfileIntegrationId() bool`

HasProfileIntegrationId returns a boolean if a field has been set.

### SetProfileIntegrationId

`func (o *AddToAudienceEffectProps) SetProfileIntegrationId(v string)`

SetProfileIntegrationId gets a reference to the given string and assigns it to the ProfileIntegrationId field.

### GetProfileId

`func (o *AddToAudienceEffectProps) GetProfileId() int32`

GetProfileId returns the ProfileId field if non-nil, zero value otherwise.

### GetProfileIdOk

`func (o *AddToAudienceEffectProps) GetProfileIdOk() (int32, bool)`

GetProfileIdOk returns a tuple with the ProfileId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### HasProfileId

`func (o *AddToAudienceEffectProps) HasProfileId() bool`

HasProfileId returns a boolean if a field has been set.

### SetProfileId

`func (o *AddToAudienceEffectProps) SetProfileId(v int32)`

SetProfileId gets a reference to the given int32 and assigns it to the ProfileId field.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Loading

0 comments on commit 2888ce8

Please sign in to comment.