Skip to content

Commit

Permalink
v2.1.1: Fix LoyaltyLedgerEntry parsing from API (#9)
Browse files Browse the repository at this point in the history
 - Fix `LoyaltyLedgerEntry`'s `type` property values, failing to parse when retrieving values from the API
 - Flag API operations that return _total count_ in their name for better visibility
  • Loading branch information
altJake committed Jun 5, 2020
1 parent 88a3587 commit 40bb9ac
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 71 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The API is available at the same hostname as these docs. For example, if you are
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 1.0.0
- Package version: 2.1.0
- Package version: 2.1.1
- Build package: org.openapitools.codegen.languages.GoClientExperimentalCodegen

## Installation
Expand Down Expand Up @@ -361,7 +361,7 @@ Class | Method | HTTP request | Description
*ManagementApi* | [**DeleteCoupons**](docs/ManagementApi.md#deletecoupons) | **Delete** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons | Delete Coupons
*ManagementApi* | [**DeleteReferral**](docs/ManagementApi.md#deletereferral) | **Delete** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals/{referralId} | Delete one Referral
*ManagementApi* | [**DeleteRuleset**](docs/ManagementApi.md#deleteruleset) | **Delete** /v1/applications/{applicationId}/campaigns/{campaignId}/rulesets/{rulesetId} | Delete a Ruleset
*ManagementApi* | [**GetAccessLogs**](docs/ManagementApi.md#getaccesslogs) | **Get** /v1/applications/{applicationId}/access_logs | Get access logs for application
*ManagementApi* | [**GetAccessLogs**](docs/ManagementApi.md#getaccesslogs) | **Get** /v1/applications/{applicationId}/access_logs | Get access logs for application (with total count)
*ManagementApi* | [**GetAccessLogsWithoutTotalCount**](docs/ManagementApi.md#getaccesslogswithouttotalcount) | **Get** /v1/applications/{applicationId}/access_logs/no_total | Get access logs for application
*ManagementApi* | [**GetAccount**](docs/ManagementApi.md#getaccount) | **Get** /v1/accounts/{accountId} | Get Account Details
*ManagementApi* | [**GetAccountAnalytics**](docs/ManagementApi.md#getaccountanalytics) | **Get** /v1/accounts/{accountId}/analytics | Get Account Analytics
Expand All @@ -373,9 +373,9 @@ Class | Method | HTTP request | Description
*ManagementApi* | [**GetApplicationApiHealth**](docs/ManagementApi.md#getapplicationapihealth) | **Get** /v1/applications/{applicationId}/health_report | Get report of health of application API
*ManagementApi* | [**GetApplicationCustomer**](docs/ManagementApi.md#getapplicationcustomer) | **Get** /v1/applications/{applicationId}/customers/{customerId} | Get Application Customer
*ManagementApi* | [**GetApplicationCustomers**](docs/ManagementApi.md#getapplicationcustomers) | **Get** /v1/applications/{applicationId}/customers | List Application Customers
*ManagementApi* | [**GetApplicationCustomersByAttributes**](docs/ManagementApi.md#getapplicationcustomersbyattributes) | **Post** /v1/application_customer_search | Get a list of the customer profiles that match the given attributes
*ManagementApi* | [**GetApplicationCustomersByAttributes**](docs/ManagementApi.md#getapplicationcustomersbyattributes) | **Post** /v1/application_customer_search | Get a list of the customer profiles that match the given attributes (with total count)
*ManagementApi* | [**GetApplicationEventTypes**](docs/ManagementApi.md#getapplicationeventtypes) | **Get** /v1/applications/{applicationId}/event_types | List Applications Event Types
*ManagementApi* | [**GetApplicationEvents**](docs/ManagementApi.md#getapplicationevents) | **Get** /v1/applications/{applicationId}/events | List Applications Events
*ManagementApi* | [**GetApplicationEvents**](docs/ManagementApi.md#getapplicationevents) | **Get** /v1/applications/{applicationId}/events | List Applications Events (with total count)
*ManagementApi* | [**GetApplicationEventsWithoutTotalCount**](docs/ManagementApi.md#getapplicationeventswithouttotalcount) | **Get** /v1/applications/{applicationId}/events/no_total | List Applications Events
*ManagementApi* | [**GetApplicationSession**](docs/ManagementApi.md#getapplicationsession) | **Get** /v1/applications/{applicationId}/sessions/{sessionId} | Get Application Session
*ManagementApi* | [**GetApplicationSessions**](docs/ManagementApi.md#getapplicationsessions) | **Get** /v1/applications/{applicationId}/sessions | List Application Sessions
Expand All @@ -387,12 +387,12 @@ Class | Method | HTTP request | Description
*ManagementApi* | [**GetCampaignByAttributes**](docs/ManagementApi.md#getcampaignbyattributes) | **Post** /v1/applications/{applicationId}/campaigns_search | Get a list of all campaigns that match the given attributes
*ManagementApi* | [**GetCampaigns**](docs/ManagementApi.md#getcampaigns) | **Get** /v1/applications/{applicationId}/campaigns | List your Campaigns
*ManagementApi* | [**GetChanges**](docs/ManagementApi.md#getchanges) | **Get** /v1/changes | Get audit log for an account
*ManagementApi* | [**GetCoupons**](docs/ManagementApi.md#getcoupons) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons | List Coupons
*ManagementApi* | [**GetCoupons**](docs/ManagementApi.md#getcoupons) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons | List Coupons (with total count)
*ManagementApi* | [**GetCouponsByAttributes**](docs/ManagementApi.md#getcouponsbyattributes) | **Post** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons_search | Get a list of the coupons that match the given attributes
*ManagementApi* | [**GetCouponsByAttributesApplicationWide**](docs/ManagementApi.md#getcouponsbyattributesapplicationwide) | **Post** /v1/applications/{applicationId}/coupons_search | Get a list of the coupons that match the given attributes in all active campaigns of an application
*ManagementApi* | [**GetCouponsByAttributesApplicationWide**](docs/ManagementApi.md#getcouponsbyattributesapplicationwide) | **Post** /v1/applications/{applicationId}/coupons_search | Get a list of the coupons that match the given attributes in all active campaigns of an application (with total count)
*ManagementApi* | [**GetCouponsWithoutTotalCount**](docs/ManagementApi.md#getcouponswithouttotalcount) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons/no_total | List Coupons
*ManagementApi* | [**GetCustomerActivityReport**](docs/ManagementApi.md#getcustomeractivityreport) | **Get** /v1/applications/{applicationId}/customer_activity_reports/{customerId} | Get Activity Report for Single Customer
*ManagementApi* | [**GetCustomerActivityReports**](docs/ManagementApi.md#getcustomeractivityreports) | **Get** /v1/applications/{applicationId}/customer_activity_reports | Get Activity Reports for Application Customers
*ManagementApi* | [**GetCustomerActivityReports**](docs/ManagementApi.md#getcustomeractivityreports) | **Get** /v1/applications/{applicationId}/customer_activity_reports | Get Activity Reports for Application Customers (with total count)
*ManagementApi* | [**GetCustomerActivityReportsWithoutTotalCount**](docs/ManagementApi.md#getcustomeractivityreportswithouttotalcount) | **Get** /v1/applications/{applicationId}/customer_activity_reports/no_total | Get Activity Reports for Application Customers
*ManagementApi* | [**GetCustomerAnalytics**](docs/ManagementApi.md#getcustomeranalytics) | **Get** /v1/applications/{applicationId}/customers/{customerId}/analytics | Get Analytics Report for a Customer
*ManagementApi* | [**GetCustomerProfile**](docs/ManagementApi.md#getcustomerprofile) | **Get** /v1/customers/{customerId} | Get Customer Profile
Expand All @@ -404,7 +404,7 @@ Class | Method | HTTP request | Description
*ManagementApi* | [**GetLoyaltyPoints**](docs/ManagementApi.md#getloyaltypoints) | **Get** /v1/loyalty_programs/{programID}/profile/{integrationID} | get the Loyalty Ledger for this integrationID
*ManagementApi* | [**GetLoyaltyProgram**](docs/ManagementApi.md#getloyaltyprogram) | **Get** /v1/loyalty_programs/{programID} | Get a loyalty program
*ManagementApi* | [**GetLoyaltyPrograms**](docs/ManagementApi.md#getloyaltyprograms) | **Get** /v1/loyalty_programs | List all loyalty Programs
*ManagementApi* | [**GetReferrals**](docs/ManagementApi.md#getreferrals) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals | List Referrals
*ManagementApi* | [**GetReferrals**](docs/ManagementApi.md#getreferrals) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals | List Referrals (with total count)
*ManagementApi* | [**GetReferralsWithoutTotalCount**](docs/ManagementApi.md#getreferralswithouttotalcount) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/referrals/no_total | List Referrals
*ManagementApi* | [**GetRole**](docs/ManagementApi.md#getrole) | **Get** /v1/roles/{roleId} | Get information for the specified role.
*ManagementApi* | [**GetRuleset**](docs/ManagementApi.md#getruleset) | **Get** /v1/applications/{applicationId}/campaigns/{campaignId}/rulesets/{rulesetId} | Get a Ruleset
Expand All @@ -417,8 +417,8 @@ Class | Method | HTTP request | Description
*ManagementApi* | [**GetWebhooks**](docs/ManagementApi.md#getwebhooks) | **Get** /v1/webhooks | List Webhooks
*ManagementApi* | [**RemoveLoyaltyPoints**](docs/ManagementApi.md#removeloyaltypoints) | **Put** /v1/loyalty_programs/{programID}/profile/{integrationID}/deduct_points | Deduct points in a certain loyalty program for the specified customer
*ManagementApi* | [**ResetPassword**](docs/ManagementApi.md#resetpassword) | **Post** /v1/reset_password | Reset password
*ManagementApi* | [**SearchCouponsAdvanced**](docs/ManagementApi.md#searchcouponsadvanced) | **Post** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons_search_advanced | Get a list of the coupons that match the given attributes
*ManagementApi* | [**SearchCouponsAdvancedApplicationWide**](docs/ManagementApi.md#searchcouponsadvancedapplicationwide) | **Post** /v1/applications/{applicationId}/coupons_search_advanced | Get a list of the coupons that match the given attributes in all active campaigns of an application
*ManagementApi* | [**SearchCouponsAdvanced**](docs/ManagementApi.md#searchcouponsadvanced) | **Post** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons_search_advanced | Get a list of the coupons that match the given attributes (with total count)
*ManagementApi* | [**SearchCouponsAdvancedApplicationWide**](docs/ManagementApi.md#searchcouponsadvancedapplicationwide) | **Post** /v1/applications/{applicationId}/coupons_search_advanced | Get a list of the coupons that match the given attributes in all active campaigns of an application (with total count)
*ManagementApi* | [**SearchCouponsAdvancedApplicationWideWithoutTotalCount**](docs/ManagementApi.md#searchcouponsadvancedapplicationwidewithouttotalcount) | **Post** /v1/applications/{applicationId}/coupons_search_advanced/no_total | Get a list of the coupons that match the given attributes in all active campaigns of an application
*ManagementApi* | [**SearchCouponsAdvancedWithoutTotalCount**](docs/ManagementApi.md#searchcouponsadvancedwithouttotalcount) | **Post** /v1/applications/{applicationId}/campaigns/{campaignId}/coupons_search_advanced/no_total | Get a list of the coupons that match the given attributes
*ManagementApi* | [**UpdateAdditionalCost**](docs/ManagementApi.md#updateadditionalcost) | **Put** /v1/additional_costs/{additionalCostId} | Update an additional cost
Expand Down
49 changes: 25 additions & 24 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ paths:
schema:
$ref: '#/components/schemas/inline_response_200_4'
description: OK
summary: List Coupons
summary: List Coupons (with total count)
tags:
- management
post:
Expand Down Expand Up @@ -1664,7 +1664,7 @@ paths:
$ref: '#/components/schemas/inline_response_200_4'
description: OK
summary: Get a list of the coupons that match the given attributes in all active
campaigns of an application
campaigns of an application (with total count)
tags:
- management
x-codegen-request-body-name: body
Expand Down Expand Up @@ -1781,7 +1781,8 @@ paths:
schema:
$ref: '#/components/schemas/inline_response_200_4'
description: OK
summary: Get a list of the coupons that match the given attributes
summary: Get a list of the coupons that match the given attributes (with total
count)
tags:
- management
x-codegen-request-body-name: body
Expand Down Expand Up @@ -2024,7 +2025,7 @@ paths:
$ref: '#/components/schemas/inline_response_200_4'
description: OK
summary: Get a list of the coupons that match the given attributes in all active
campaigns of an application
campaigns of an application (with total count)
tags:
- management
x-codegen-request-body-name: body
Expand Down Expand Up @@ -2240,7 +2241,7 @@ paths:
schema:
$ref: '#/components/schemas/inline_response_200_6'
description: OK
summary: List Referrals
summary: List Referrals (with total count)
tags:
- management
/v1/applications/{applicationId}/campaigns/{campaignId}/referrals/{referralId}:
Expand Down Expand Up @@ -2572,7 +2573,7 @@ paths:
schema:
$ref: '#/components/schemas/inline_response_200_9'
description: OK
summary: Get access logs for application
summary: Get access logs for application (with total count)
tags:
- management
/v1/applications/{applicationId}/access_logs/no_total:
Expand Down Expand Up @@ -2917,6 +2918,7 @@ paths:
security:
- integration_auth: []
summary: Get a list of the customer profiles that match the given attributes
(with total count)
tags:
- management
x-codegen-request-body-name: body
Expand Down Expand Up @@ -3017,7 +3019,7 @@ paths:
schema:
$ref: '#/components/schemas/inline_response_200_14'
description: OK
summary: Get Activity Reports for Application Customers
summary: Get Activity Reports for Application Customers (with total count)
tags:
- management
/v1/applications/{applicationId}/customer_activity_reports/no_total:
Expand Down Expand Up @@ -3389,7 +3391,7 @@ paths:
schema:
$ref: '#/components/schemas/inline_response_200_17'
description: OK
summary: List Applications Events
summary: List Applications Events (with total count)
tags:
- management
/v1/applications/{applicationId}/events/no_total:
Expand Down Expand Up @@ -6681,7 +6683,7 @@ components:
name: name
subLedgerID: subLedgerID
customerSessionID: customerSessionID
type: addition
type: type
userID: 5
programID: 6
properties:
Expand All @@ -6697,9 +6699,8 @@ components:
eventID:
type: integer
type:
enum:
- addition
- subtraction
description: |
The type of the ledger transaction. Possible values are addition, subtraction, expire or expiring (for expiring points ledgers)
type: string
amount:
type: number
Expand Down Expand Up @@ -6741,7 +6742,7 @@ components:
name: name
subLedgerID: subLedgerID
customerSessionID: customerSessionID
type: addition
type: type
userID: 5
programID: 6
- expiryDate: 2000-01-23T04:56:07.000+00:00
Expand All @@ -6752,7 +6753,7 @@ components:
name: name
subLedgerID: subLedgerID
customerSessionID: customerSessionID
type: addition
type: type
userID: 5
programID: 6
transactions:
Expand All @@ -6764,7 +6765,7 @@ components:
name: name
subLedgerID: subLedgerID
customerSessionID: customerSessionID
type: addition
type: type
userID: 5
programID: 6
- expiryDate: 2000-01-23T04:56:07.000+00:00
Expand All @@ -6775,7 +6776,7 @@ components:
name: name
subLedgerID: subLedgerID
customerSessionID: customerSessionID
type: addition
type: type
userID: 5
programID: 6
subLedgers:
Expand All @@ -6790,7 +6791,7 @@ components:
name: name
subLedgerID: subLedgerID
customerSessionID: customerSessionID
type: addition
type: type
userID: 5
programID: 6
- expiryDate: 2000-01-23T04:56:07.000+00:00
Expand All @@ -6801,7 +6802,7 @@ components:
name: name
subLedgerID: subLedgerID
customerSessionID: customerSessionID
type: addition
type: type
userID: 5
programID: 6
transactions:
Expand All @@ -6813,7 +6814,7 @@ components:
name: name
subLedgerID: subLedgerID
customerSessionID: customerSessionID
type: addition
type: type
userID: 5
programID: 6
- expiryDate: 2000-01-23T04:56:07.000+00:00
Expand All @@ -6824,7 +6825,7 @@ components:
name: name
subLedgerID: subLedgerID
customerSessionID: customerSessionID
type: addition
type: type
userID: 5
programID: 6
properties:
Expand All @@ -6851,7 +6852,7 @@ components:
name: name
subLedgerID: subLedgerID
customerSessionID: customerSessionID
type: addition
type: type
userID: 5
programID: 6
- expiryDate: 2000-01-23T04:56:07.000+00:00
Expand All @@ -6862,7 +6863,7 @@ components:
name: name
subLedgerID: subLedgerID
customerSessionID: customerSessionID
type: addition
type: type
userID: 5
programID: 6
transactions:
Expand All @@ -6874,7 +6875,7 @@ components:
name: name
subLedgerID: subLedgerID
customerSessionID: customerSessionID
type: addition
type: type
userID: 5
programID: 6
- expiryDate: 2000-01-23T04:56:07.000+00:00
Expand All @@ -6885,7 +6886,7 @@ components:
name: name
subLedgerID: subLedgerID
customerSessionID: customerSessionID
type: addition
type: type
userID: 5
programID: 6
properties:
Expand Down
Loading

0 comments on commit 40bb9ac

Please sign in to comment.