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

Fixed typo in spellings of CANCELED #209

Merged
merged 4 commits into from
May 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions .changeset/old-spiders-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@voucherify/sdk': patch
---

Fixed minor typos in types for Order
4 changes: 2 additions & 2 deletions packages/sdk/src/types/Orders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface OrdersItem {

export interface OrdersCreate {
source_id?: string
status?: 'CREATED' | 'PAID' | 'CANCELLED' | 'FULFILLED'
status?: 'CREATED' | 'PAID' | 'CANCELED' | 'FULFILLED'
customer?: CustomerRequest
amount?: number
discount_amount?: number
Expand Down Expand Up @@ -69,7 +69,7 @@ export type OrdersGetResponse = OrdersCreateResponse
export interface OrdersUpdate {
id: string
source_id?: string
status?: 'CREATED' | 'PAID' | 'CANCELLED' | 'FULFILLED'
status?: 'CREATED' | 'PAID' | 'CANCELED' | 'FULFILLED'
items?: OrdersItem[]
amount?: number
discount_amount?: number
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/types/PromotionTiers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export interface PromotionTiersRedeemParams {
source_id?: string
amount?: number
items?: OrdersItem[]
status?: 'CREATED' | 'PAID' | 'CANCELLED' | 'FULFILLED'
status?: 'CREATED' | 'PAID' | 'CANCELED' | 'FULFILLED'
metadata?: Record<string, any>
}
metadata?: Record<string, any>
Expand Down