Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release candidate - changes from 001, 003, 006, 012 #498

Merged
merged 137 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
1f831e1
done
p-zielinski Sep 14, 2023
1c28dc8
Update Changelog.md
p-zielinski Sep 14, 2023
cc42e87
Promotion Tier -> Rollback Promotion Tier (unification)
Sep 15, 2023
f34bf54
Added SimpleCustomerResponse object and add it to track custom event …
Sep 18, 2023
7cc7b04
Merge branch 'master' into pz/types-003
p-zielinski Sep 18, 2023
1ef2181
20230918 Changelog.md
Sep 18, 2023
4aaf7b5
Update OpenAPI.json
p-zielinski Sep 18, 2023
c1587ea
Update OpenAPI.json
p-zielinski Sep 18, 2023
cd9ea9e
Update OpenAPI.json
p-zielinski Sep 18, 2023
4ce93b4
Revert "Update OpenAPI.json"
p-zielinski Sep 18, 2023
ee9cdd0
Merge branch 'master' into pz/types-003
p-zielinski Sep 18, 2023
e63ed85
Update OpenAPI.json
p-zielinski Sep 18, 2023
4557bfc
Merge branch 'tests-interface' into pz/types-003
p-zielinski Sep 22, 2023
5d7bf2b
Update OpenAPI.json
p-zielinski Sep 22, 2023
3b45d0b
Update OpenAPI.json
p-zielinski Sep 22, 2023
f1ebbbd
Update OpenAPI.json
p-zielinski Sep 22, 2023
7e21eed
Update OpenAPI.json
p-zielinski Sep 22, 2023
bf7d524
Update OpenAPI.json
p-zielinski Sep 25, 2023
999ff7f
Update OpenAPI.json
p-zielinski Sep 25, 2023
b7d7f2c
Update Changelog.md
p-zielinski Sep 25, 2023
83e5cb6
order
p-zielinski Sep 25, 2023
23ec06f
Merge branch 'tests-interface' into pz/types-003
p-zielinski Sep 25, 2023
da02da3
Merge branch 'tests-interface' into pz/types-003
p-zielinski Sep 25, 2023
45f4661
Merge branch 'master' into pz/types-003
p-zielinski Sep 25, 2023
3142385
Update OpenAPI.json
weronika-kurczyna Oct 12, 2023
5b1f45e
Add files via upload
MaciekVoucherify Oct 12, 2023
d11d6d3
Add files via upload
MaciekVoucherify Oct 12, 2023
da27b1f
Update Quickstart.md
MaciekVoucherify Oct 12, 2023
c21dde0
done
p-zielinski Oct 12, 2023
c4f9852
Merge branch 'master' into pz/types-012
p-zielinski Oct 12, 2023
6b6e60a
Update Changelog.md
p-zielinski Oct 12, 2023
86c2247
duplicated reward objects
weronika-kurczyna Oct 13, 2023
a19d77c
Update OpenAPI.json
weronika-kurczyna Oct 13, 2023
1817839
add reward and reward_assignment with required fields
weronika-kurczyna Oct 13, 2023
0a7de7d
update all reward assignment methods
weronika-kurczyna Oct 13, 2023
afbbbf4
Merge branch 'wk/types-006' of https://github.com/weronika-kurczyna/v…
weronika-kurczyna Oct 13, 2023
b5abd9e
Update OpenAPI.json
weronika-kurczyna Oct 13, 2023
48c2635
Update OpenAPI.json
weronika-kurczyna Oct 16, 2023
9e8b762
Update OpenAPI.json
weronika-kurczyna Oct 16, 2023
32921ad
update changelog
weronika-kurczyna Oct 16, 2023
78fa8f8
change order of components
weronika-kurczyna Oct 16, 2023
6bff49d
Update Quickstart.md
MaciekVoucherify Oct 16, 2023
33d6ec8
Update Quickstart.md
MaciekVoucherify Oct 16, 2023
729e903
Update Quickstart.md
MaciekVoucherify Oct 16, 2023
3f1944e
Update Quickstart.md
MaciekVoucherify Oct 16, 2023
f531805
Update Quickstart.md
MaciekVoucherify Oct 16, 2023
3877222
in progress
p-zielinski Oct 16, 2023
22d6fb1
Update index.ts
p-zielinski Oct 16, 2023
8960194
update list gift card transactions
weronika-kurczyna Oct 17, 2023
a769187
done?
p-zielinski Oct 17, 2023
2168021
Update CONTRIBUTING.md
p-zielinski Oct 17, 2023
8b5b2e2
in progress
p-zielinski Oct 17, 2023
e7fdec9
Revert "update list gift card transactions"
weronika-kurczyna Oct 17, 2023
1b14214
list voucher transactions
weronika-kurczyna Oct 17, 2023
41e78a5
done
p-zielinski Oct 17, 2023
17d8443
list gift card transactions
weronika-kurczyna Oct 17, 2023
76bdbcd
Update manage-project.ts
p-zielinski Oct 17, 2023
3aaa83e
update gift card
weronika-kurczyna Oct 17, 2023
a4f0718
Update manage-project.ts
p-zielinski Oct 17, 2023
af514be
Update manage-project.ts
p-zielinski Oct 17, 2023
b6f118e
Update manage-project.ts
p-zielinski Oct 17, 2023
286ffd4
Update manage-project.ts
p-zielinski Oct 17, 2023
f7c00d0
Update CONTRIBUTING.md
p-zielinski Oct 17, 2023
e997b2f
Update CONTRIBUTING.md
p-zielinski Oct 17, 2023
9248d4c
minor changes
p-zielinski Oct 17, 2023
74af909
Update CONTRIBUTING.md
p-zielinski Oct 17, 2023
b671815
Update manage-project.ts
p-zielinski Oct 17, 2023
df3c7fd
export voucher transactions
weronika-kurczyna Oct 18, 2023
cbea76c
Update OpenAPI.json
weronika-kurczyna Oct 18, 2023
1103096
validation rules assignments
weronika-kurczyna Oct 18, 2023
c18db11
update md-tables
weronika-kurczyna Oct 18, 2023
37ebcdb
separate the coin reward assignment and campaign/material reward assi…
weronika-kurczyna Oct 18, 2023
6076878
replace "Reward" wih "reward"
weronika-kurczyna Oct 18, 2023
0558762
replace RewardAssignemnt with reward_assignment
weronika-kurczyna Oct 18, 2023
6112ac1
removing unused schemas
p-zielinski Oct 18, 2023
dfc2e13
fix path for vouchers
p-zielinski Oct 18, 2023
b70a2a6
Update OpenAPI.json
weronika-kurczyna Oct 18, 2023
b961dec
Update OpenAPI.json
p-zielinski Oct 18, 2023
1fe2cb7
Update OpenAPI.json
p-zielinski Oct 18, 2023
0e79034
removing unused schemas
p-zielinski Oct 18, 2023
fd3e368
Merge branch 'quicker-readme.io-updates' into fixing-all-minor-errors…
p-zielinski Oct 18, 2023
b302c9c
fix
p-zielinski Oct 18, 2023
6e3a7d7
Update .gitignore
p-zielinski Oct 18, 2023
cbf9600
Update manage-project.ts
p-zielinski Oct 19, 2023
78ab36c
Merge branch 'quicker-readme.io-updates' into fixing-all-minor-errors…
p-zielinski Oct 19, 2023
b4d2b55
Update manage-project.ts
p-zielinski Oct 19, 2023
890150d
Merge branch 'quicker-readme.io-updates' into fixing-all-minor-errors…
p-zielinski Oct 19, 2023
75e16eb
Update OpenAPI.json
weronika-kurczyna Oct 19, 2023
1758675
reward_response_data -> reward_created
weronika-kurczyna Oct 19, 2023
41cadc6
Merge branch 'master' into mk/updating-quickstart-article
Oct 19, 2023
9b85e68
update changelog
weronika-kurczyna Oct 19, 2023
f5e0445
Update Changelog.md
weronika-kurczyna Oct 19, 2023
244734d
Merge branch 'voucherifyio:master' into wk/types-001
weronika-kurczyna Oct 19, 2023
db582a7
Merge branch 'voucherifyio:master' into wk/types-006
weronika-kurczyna Oct 19, 2023
ad6f4cf
fix typo
weronika-kurczyna Oct 19, 2023
7f3112c
update scripts
weronika-kurczyna Oct 19, 2023
97c6ce8
fix operationId
weronika-kurczyna Oct 19, 2023
0441108
changes in script
weronika-kurczyna Oct 19, 2023
2082d56
ok version
weronika-kurczyna Oct 19, 2023
1fcf4df
Update OpenAPI.json
weronika-kurczyna Oct 19, 2023
dc3f210
update descriptions
weronika-kurczyna Oct 19, 2023
c916ae2
fix wrong request body for export
weronika-kurczyna Oct 20, 2023
c9334d6
fix typos
weronika-kurczyna Oct 20, 2023
996f9b6
add type array to data
weronika-kurczyna Oct 20, 2023
97239f8
update desc in create reward assignemnt
weronika-kurczyna Oct 20, 2023
4c6a443
update gift card transactions
weronika-kurczyna Oct 20, 2023
f040a39
Merge pull request #491 from weronika-kurczyna/wk/types-006
p-zielinski Oct 20, 2023
7b47b57
Merge branch 'release-candidate' into wk/types-001
weronika-kurczyna Oct 20, 2023
c9e95c5
update type of object
weronika-kurczyna Oct 20, 2023
683f3f1
object: type - string update reference-docs
weronika-kurczyna Oct 20, 2023
27cbaca
Merge pull request #493 from weronika-kurczyna/wk/types-001
p-zielinski Oct 20, 2023
31ada9e
Merge remote-tracking branch 'upstream/release-candidate' into pz/typ…
p-zielinski Oct 20, 2023
4ab2433
Merge pull request #490 from p-zielinski/pz/types-012
p-zielinski Oct 20, 2023
7500c78
Merge remote-tracking branch 'upstream/release-candidate' into fixing…
p-zielinski Oct 20, 2023
8725751
Merge pull request #499 from p-zielinski/fixing-all-minor-errors-in-o…
p-zielinski Oct 20, 2023
ddfc34e
Update OpenAPI.json
p-zielinski Oct 20, 2023
19e0738
Merge pull request #500 from p-zielinski/fixing-all-minor-errors-in-o…
p-zielinski Oct 20, 2023
b734fec
Merge remote-tracking branch 'upstream/release-candidate' into pz/typ…
p-zielinski Oct 20, 2023
ad05191
Merge pull request #473 from p-zielinski/pz/types-003
p-zielinski Oct 20, 2023
625530b
tsconfig
p-zielinski Oct 20, 2023
06cb535
script fixed?
p-zielinski Oct 20, 2023
4706f30
Update readme-upload-missing-images.ts
p-zielinski Oct 20, 2023
447d9f3
fixing and refactoring script
p-zielinski Oct 20, 2023
94eed63
Update manage-project.ts
p-zielinski Oct 20, 2023
c7d32bc
Update manage-project.ts
p-zielinski Oct 20, 2023
cf8fc6e
Update CONTRIBUTING.md
p-zielinski Oct 20, 2023
6dd3881
Update readme-upload-missing-images.ts
p-zielinski Oct 23, 2023
317ddad
refactoring
p-zielinski Oct 23, 2023
98a2f74
Merge pull request #501 from voucherifyio/pz/upload-images
p-zielinski Oct 23, 2023
22bb397
Merge branch 'release-candidate' into pr/468
p-zielinski Oct 23, 2023
08f4bda
Update OpenAPI.json
p-zielinski Oct 23, 2023
b596a00
Merge pull request #503 from voucherifyio/jk/openapi-improvements
p-zielinski Oct 23, 2023
6d779e0
Merge branch 'release-candidate' into mk/updating-quickstart-article
p-zielinski Oct 24, 2023
9813aec
Update Quickstart.md
p-zielinski Oct 24, 2023
bca0550
script fix and links
p-zielinski Oct 24, 2023
e7d1c30
Update Changelog.md
p-zielinski Oct 24, 2023
735a121
Merge pull request #495 from voucherifyio/mk/updating-quickstart-article
p-zielinski Oct 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ scripts/output/*.md
.env
.DS_Store
.idea/*
/reference/.stoplight/
8 changes: 8 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,14 @@ Good practices:
- Authenticate `rdme` tool by running: `rdme login` command; you can check if it works using the command `rdme whoami`; what should result: `You are currently logged in as [email protected] to the voucherify project.`
- Copy `.env.example` to `.env` and add to this file your personal API Key created in readme.io: `dashboard` > `configuration` > `API Keys`

### Images in .md files

- There are 2 ways to add images to .md files:
- with `[block:image]` component, [see example in Quickstart.md](docs/guides/getting_started/Quickstart.md)
- with link declaration, for example `![Welcome Diagram](https://files.readme.io/6070078-welcome-diagram.png "Welcome Diagram")`
- At first always point to assets img folder, for example: `![Recent Changes](../../assets/img/guides_getting_started_quickstart_recent_changes_4.png "Recent Changes")`
- This path declaration will be automatically updated to url link while during `npm run manage-project` command.

### Development process
- For each change / pull request, create your copy of the current documentation, where you will test changes.
- Create your own branch from `master`,
Expand Down
173 changes: 170 additions & 3 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,175 @@
# Changelog

## 20230924

- Updated `docs/guides/getting_started/Quickstart.md`


## 20230923 - Endpoint bugfixes and improvements

- Described customer object in Track custom event endpoint
- Fixed qualifications filters (missing and wrong properties)
- Fixed wrong name of rollback object in Rollback Stackable Redemptions response

| **API** | **Endpoint** | **Slug** |
|---|---------------------------------|----------------------|
| **Events** | Track Custom Event | track-custom-event | true |
| **Qualifications** | Examine Qualification | examine-qualification | true |
| **Stackable Discounts** | Rollback Stackable Redemptions | rollback-stackable-redemptions | rollback-stacked-redemptions | true |

## 20231020

**Added schemas**
- Category
- CategoriesListResponseBody
- CategoriesCreateRequestBody
- CategoriesCreateResponseBody
- CategoriesGetResponseBody
- CategoriesUpdateRequestBody
- CategoriesUpdateResponseBody

**Endpoints changes**
- `/v1/categories`
- GET
- Response schema was replaced with `CategoriesListResponseBody` (old 20_res_list_categories)
- POST
- Request parameters schema was replaced with `CategoriesCreateRequestBody` (old 20_req_create_category)
- Response schema was replaced with `CategoriesCreateResponseBody` (old 20_res_create_category)
- `/v1/categories/{categoryId}`
- GET
- Response schema was replaced with `CategoriesGetResponseBody` (old 20_obj_category_object)
- PUT
- Request parameters schema was replaced with `CategoriesUpdateRequestBody` (old 20_req_update_categories_categoryId)
- Response schema was replaced with `CategoriesUpdateResponseBody` (old 20_obj_category_object)

## 20231019 - Promotions Stacks

#### New schemas
- PromotionsStacksListInCampaignResponseBody
- PromotionsStacksListResponseBody
- PromotionsStacksListRequestQuery
- PromotionsStacksGetResponseBody
- PromotionsStacksUpdateRequestBody
- PromotionsStacksUpdateResponseBody
- PromotionsStacksCreateInCampaignRequestBody
- PromotionsStacksCreateInCampaignResponseBody
- PromotionStackBase
- PromotionStack

- GET /v1/promotions/{campaignId}/stacks
- new response schema `PromotionsStacksListInCampaignResponseBody` (old `3_res_list_promotion_stacks`)
- POST /v1/promotions/{campaignId}/stacks
- new request schema `PromotionsStacksCreateInCampaignRequestBody` (old `3_req_create_promotion_stack`)
- new response schema `PromotionsStacksCreateInCampaignResponseBody` (old `3_obj_promotion_stack_object`)
- GET /v1/promotions/{campaignId}/stacks/{stackId}
- new response schema `PromotionsStacksGetResponseBody` (old `3_obj_promotion_stack_object`)
- PUT /v1/promotions/{campaignId}/stacks/{stackId}
- new request schema `PromotionsStacksUpdateRequestBody` (old `3_req_create_promotion_stack`)
- new response schema `PromotionsStacksUpdateResponseBody` (old `3_obj_promotion_stack_object`)
- GET /v1/promotions/stacks
- new response schema `PromotionsStacksListResponseBody` (old `3_res_list_promotion_stacks`)

# 20231019 - Vouchers

- Vouchers - List Gift Card Transactions (**GET** `/vouchers/{code}/transactions`) renamed to List Voucher Transactions
- Vouchers - Export Gift Card Transactions (**GET** `/vouchers/{code}/transactions/export`) renamed to Export Voucher Transactions

**New models**
- vouchers_list_vouchers_transactions_response_body (old `1_res_vouchers_code_transactions`)
- voucher_transaction (old `1_obj_gift_card_transaction_object`)
- gift_card_transaction
- gift_card_transaction_identity
- gift_card_transaction_base
- gift_card_transaction_created
- gift_card_transaction_details
- gift_card_transaction_redemption_details (old `1_obj_gift_card_transaction_object_redemption`)
- gift_card_transaction_refund_details (old `1_obj_gift_card_transaction_object_refund`)
- gift_card_transaction_addition_details (old `1_obj_gift_card_transaction_object_addition`)
- gift_card_transaction_removal_details (old `1_obj_gift_card_transaction_object_removal`)

- vouchers_export_transactions_request_body (old `1_req_create_gift_card_transactions_export`
- voucher_transactions_export (old `1_obj_export_transactions_object`)
- voucher_transactions_export_parameters (old `1_obj_export_gift_card_transactions`)
- voucher_transactions_filters (old `16_obj_export_gift_card_transactions`)
- voucher_transactions_export_filter_conditions (old `16_obj_filter_gift_card_transactions_voucher_id`)

- validation_rules_list_rules_assignments_response_body (old `13_res_validation-rules_validationRuleId_assignments`)
- validation_rule_assignment (old `13_obj_validation_rule_assignment_object`)

**Removed models**
- `8_obj_export_loyalty_card_transactions` - used only in one place, replaced with: `voucher_transactions_export_parameters` in `8_req_create_loyalty_card_transactions_export` schema

**Endpoint changes**

- Added missing method for endpoint: GET `/vouchers/{code}/transactions (client.vouchers.listTransactions(code, query))`
- Response body schema: `vouchers_list_vouchers_transactions_response_body`

- Added missing method for endpoint: POST `/vouchers/{code}/transactions/export (client.vouchers.exportTransactions(code, body))`
- Request body schema: `vouchers_export_transactions_request_body`

- Added missing method for endpoint: GET `/validation-rules-assignments (client.client.validationRules.listRulesAssignments(validationRuleId))`
- Request body schema: `validation_rules_list_rules_assignments_response_body`


## 20231016 - Rewards

**New models**
- reward
- reward_base
- reward_identity
- reward_response_data
- reward_parameters

- reward_parameters_CAMPAIGN
- reward_parameters_COIN
- reward_parameters_MATERIAL
- reward_assignment
- reward_assignment_base
- reward_assignment_identity
- reward_assignment_response_data
- rewards_list_assignments_response_body
- rewards_create_assignment_request_body
- rewards_create_assignment_coin_reward_request_body
- rewards_create_assignment_main_reward_request_body
- rewards_update_assignment_request_body

**Endpoint changes**
- Added missing method for endpoint: GET `/v1/rewards/{rewardId)}/assignments/{assignmentId}`
- Response body schema: `reward_assignment`
- GET `/v1/rewards/{rewardId}/assignments` (listAssignments)
- New response schema: `rewards_list_assignments_response_body` (old one: `4_res_list_reward_assignments`)
- POST `/v1/rewards/{rewardId}/assignments` (createAssignment)
- New request schema: `rewards_create_assignment_request_body` (old one: `4_req_create_reward_assignment`)
- New response schema: `reward_assignment` (old one: `4_obj_reward_assignment_object`)
- PUT `/v1/rewards/{rewardId}/assignments/{assignmentId}` (updateAssignment)
- New request schema: `rewards_update_assignment_request_body` (old one: `4_req_update_reward_assignment`)
- New response schema: `reward_assignment` (old one: `4_obj_reward_assignment_object`)

## 20231016 - Loyalties

**New models**
- reward
- reward_base
- reward_identity
- reward_response_data
- reward_parameters

- reward_parameters_CAMPAIGN
- reward_parameters_COIN
- reward_parameters_MATERIAL
- reward_assignment
- reward_assignment_base
- reward_assignment_identity
- reward_assignment_response_data
- loyalties_list_loyalty_tier_rewards_response_body
- loyalties_loyalty_tier_reward (old one: `8_obj_loyalty_tier_reward_object`)
-

**Endpoint changes**
- Added missing method for endpoint: GET `/v1/loyalties/{campaignId)}/rewards/{assignmentId}`
- Response body schema: `reward_assignment`
- Added missing method for endpoint: GET `/v1/loyalties/{campaignId)}/tiers/{tierId}/rewards`
- Response body schema: `loyalties_list_loyalty_tier_rewards_response_body`

## 20231012 - Product Collections

Expand Down Expand Up @@ -445,9 +615,6 @@ Added script, located in `docs/script/` directory to quickly update order of ref
/docs/orders-1 -> /docs/orders
/docs/vouchers-1 -> /docs/vouchers
/docs/campaigns-1 -> /docs/campaigns
/docs/checking-eligibility-for-coupons -> /docs/checking-eligibility
/reference/examine-qualification -> /reference/check-eligibility
/reference/examine-qualification-client-side -> /reference/check-eligibility-client-side
/reference/vouchers-get -> /reference/get-voucher
/reference/add-gift-voucher-balance -> /reference/add-remove-gift-voucher-balance
/reference/import-vouchers-1 -> /reference/import-vouchers
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions docs/guides/building_blocks/Products.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ Voucherify allows for launching product-specific promotions. For example, you ca
Voucherify supports product → variants relationship by default. This means you can create a parent object (`product`) and attach several variants (`SKUs`). In the [product](ref:get-product) object, you can define `attributes` to distinguish several [SKUs](ref:get-sku). For example:

```json Products
{
[
{
"id": "prod_yKHc4SyG1agSww",
"source_id": "internal_erp_id_1477390384",
"object": "product",
Expand All @@ -39,8 +40,7 @@ Voucherify supports product → variants relationship by default. This means you
"total": 0,
"data": []
}
}

},
{
"id":"sku_0KtP4rvwEECQ2U",
"source_id":"internal_erp_sku_id_1477475922",
Expand All @@ -55,6 +55,7 @@ Voucherify supports product → variants relationship by default. This means you
"country": "us"
}
}
]
```

> 👍 Source_id
Expand Down
Loading