Skip to content

Commit

Permalink
feat: Update billingInfo types (#563)
Browse files Browse the repository at this point in the history
* Add `type` and `vatNumber` to billingInfo types

* Make `paymentMethod` optional
  • Loading branch information
lounjukk authored Dec 13, 2024
1 parent bacc2b7 commit 0b2d270
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions integration-test/UserService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ describe("UserService", () => {
lastName: "sdfsdf",
firstName: "sdfsdf",
company: null,
type: "credit_card",
vatNumber: null,
address: {
street1: "dfgdfgdfg",
street2: "8",
Expand Down
4 changes: 3 additions & 1 deletion src/UserService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ export type BillingInfo = {
firstName: string | null;
company: string | null;
address: Address | null;
paymentMethod: {
type: string | null;
vatNumber: string | null;
paymentMethod?: {
cardType: string | null;
firstSix: string | null;
lastTwo: string | null;
Expand Down

0 comments on commit 0b2d270

Please sign in to comment.