Skip to content

Commit

Permalink
Fixed typo in spellings of CANCELED (#209)
Browse files Browse the repository at this point in the history
* Fixed typo in spellings of CANCELED

* Updated type in PromotionTiersRedeemParams as well

* added changeset

* Update old-spiders-begin.md
  • Loading branch information
ateev committed May 10, 2023
1 parent 3f612bc commit dd1601d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
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

0 comments on commit dd1601d

Please sign in to comment.