Skip to content

Commit

Permalink
Pz/types 011 - Loyalties (includes changes from 010) (#488)
Browse files Browse the repository at this point in the history
* in progress

* Update OpenAPI.json

* Update Changelog.md

* fix

* Update .gitignore

* naming

* naming

* in progress

* Update OpenAPI.json

* Update OpenAPI.json

* Update OpenAPI.json

* Update OpenAPI.json

* Update OpenAPI.json

* Update OpenAPI.json

* Update OpenAPI.json

* Update OpenAPI.json

* Update OpenAPI.json

* Update OpenAPI.json

* Update OpenAPI.json

* changelog

* Update OpenAPI.json

* Update OpenAPI.json

* Update OpenAPI.json

* Update OpenAPI.json

* Update OpenAPI.json

* Update OpenAPI.json

* added new ednpoint

* descriptions

* Update OpenAPI.json

* change log

* Update Changelog.md

* Update Changelog.md

* remove duplicates

* Update EXPORTS-API-Export-Object.md

* Update update-md-tables-in-doc.ts

* LoyaltiesGetPointsExpirationResponseBody

* Update Changelog.md

* schemas

* new endpoint

* Update OpenAPI.json
  • Loading branch information
p-zielinski authored Oct 12, 2023
1 parent b5a4a17 commit edb1a1f
Show file tree
Hide file tree
Showing 5 changed files with 792 additions and 208 deletions.
40 changes: 38 additions & 2 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,43 @@
# Changelog

## 20231011

#### New schemas:
- LoyaltiesCreateTiersRequestBody
- LoyaltiesCreateTiersResponseBody
- LoyaltiesGetRewardAssignmentResponseBody
- LoyaltiesGetRewardDetailsResponseBody
- LoyaltiesListTiersRequestQuery
- LoyaltiesListLoyaltyTierEarningRulesRequestQuery
- LoyaltiesGetTierResponseBody
- LoyaltiesListTiersResponseBody
- LoyaltiesListMemberLoyaltyTiersResponseBody
- LoyaltiesListLoyaltyTierEarningRulesResponseBody
- CreateLoyaltyTier
- LoyaltyTier
- MappingMultiply
- MappingFixed
- EarningRule

#### Schemas changes
- GET /v1/loyalties/{campaignId}/tiers
- new response schema `LoyaltiesListTiersResponseBody` (old `8_res_list_loyalty_tiers`)
- GET /v1/loyalties/{campaignId}/reward-assignments/{assignmentId}
- new response schema `LoyaltiesGetRewardAssignmentResponseBody` (old `4_obj_reward_assignment_object`)
- GET /v1/loyalties/{campaignId}/reward-assignments/{assignmentId}/reward
- new response schema `LoyaltiesGetRewardDetailsResponseBody` (old `4_obj_reward_object`)
- GET /v1/loyalties/{campaignId}/tiers/{tierId}
- new response schema `LoyaltiesGetTierResponseBody` (old `8_obj_loyalty_tier_object`)
- GET /v1/loyalties/{campaignId}/tiers/{tierId}/earning-rules
- new response schema `LoyaltiesListLoyaltyTierEarningRulesResponseBody` (old `8_res_list_loyalty_tier_earning_rules`)
- GET /v1/loyalties/members/{memberId}/tiers
- new response schema `LoyaltiesListMemberLoyaltyTiersResponseBody` (old `8_res_get_member_loyalty_tier`)
- GET /v1/loyalties/{campaignId}/members/{memberId}/points-expiration
- New response schema: `LoyaltiesGetPointsExpirationResponseBody` (old one: `8_res_get_points_expiration`)

#### New endpoint
- POST /v1/loyalties/{campaignId}/tiers


## 20231009

Expand Down Expand Up @@ -52,8 +90,6 @@
- /v1/loyalties/{campaignId}/members/{memberId}/points-expiration
- new response schema `LoyaltiesGetPointsExpirationResponseBody` (old `8_res_get_points_expiration`)



## 20230831 - Exports API

**New models**
Expand Down
4 changes: 2 additions & 2 deletions docs/reference-docs/EXPORTS-API-Export-Object.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ order: 1
## Export
All of:

1. [ExportBase](#exportbase)
1. [Export Base](#export-base)
2. Any of: [Export Vouchers](#export-vouchers), [Export Redemptions](#export-redemptions), [Export Customers](#export-customers), [Export Publications](#export-publications), [Export Orders](#export-orders), [Export Points Expirations](#export-points-expirations), [Export Vouchers Transactions Expiration](#export-vouchers-transactions-expiration)

## ExportBase
## Export Base
| Attributes | Description |
|:-----|:--------|
| id</br>`string` | <p>Unique export ID.</p> |
Expand Down
14 changes: 14 additions & 0 deletions docs/reference-docs/LOYALTIES-API-Create-Loyalty-Tiers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: Create Loyalty Tiers
type: endpoint
categorySlug: voucherify-api
slug: create-loyalty-tiers
parentDocSlug: loyalties-api
hidden: false
order: 44
---
[block:html]
{
"html": "<style>\n[title=\"Toggle library\"] { \n display: none; }\n.LanguagePicker-divider { \n display: none; }\n.Playground-section3VTXuaYZivJK > .APISectionHeader3LN_-QIR0m7x {\n display: none; }\n.LanguagePicker-languages1qVVo_v6AlP9 {\n display: none; }\n</style>"
}
[/block]
Loading

0 comments on commit edb1a1f

Please sign in to comment.