From 01fd7050818c1ff9b48790c251fd9d91fcb605e1 Mon Sep 17 00:00:00 2001 From: Chad Scharf <3904944+cscharf@users.noreply.github.com> Date: Wed, 17 Jun 2020 19:46:28 -0400 Subject: [PATCH 1/3] extend payment request to collect tax info --- src/models/request/paymentRequest.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/models/request/paymentRequest.ts b/src/models/request/paymentRequest.ts index 7ace99cd3a..e3d420eafb 100644 --- a/src/models/request/paymentRequest.ts +++ b/src/models/request/paymentRequest.ts @@ -1,6 +1,7 @@ import { PaymentMethodType } from '../../enums/paymentMethodType'; +import { OrganizationTaxInfoUpdateRequest } from '../request/organizationTaxInfoUpdateRequest'; -export class PaymentRequest { +export class PaymentRequest extends OrganizationTaxInfoUpdateRequest { paymentMethodType: PaymentMethodType; paymentToken: string; } From fb70ca8fe91dd3ad29d398e61c0863d61995b1fb Mon Sep 17 00:00:00 2001 From: Chad Scharf <3904944+cscharf@users.noreply.github.com> Date: Wed, 17 Jun 2020 20:07:59 -0400 Subject: [PATCH 2/3] tax info extends payment request --- src/models/request/paymentRequest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/request/paymentRequest.ts b/src/models/request/paymentRequest.ts index e3d420eafb..0fe9c872ea 100644 --- a/src/models/request/paymentRequest.ts +++ b/src/models/request/paymentRequest.ts @@ -1,5 +1,5 @@ -import { PaymentMethodType } from '../../enums/paymentMethodType'; import { OrganizationTaxInfoUpdateRequest } from '../request/organizationTaxInfoUpdateRequest'; +import { PaymentMethodType } from '../../enums/paymentMethodType'; export class PaymentRequest extends OrganizationTaxInfoUpdateRequest { paymentMethodType: PaymentMethodType; From 983f0cbfa7665265f6d449c9ced131b9e3426c6c Mon Sep 17 00:00:00 2001 From: Chad Scharf <3904944+cscharf@users.noreply.github.com> Date: Wed, 17 Jun 2020 20:09:47 -0400 Subject: [PATCH 3/3] re-order import --- src/models/request/paymentRequest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/request/paymentRequest.ts b/src/models/request/paymentRequest.ts index 0fe9c872ea..e3d420eafb 100644 --- a/src/models/request/paymentRequest.ts +++ b/src/models/request/paymentRequest.ts @@ -1,5 +1,5 @@ -import { OrganizationTaxInfoUpdateRequest } from '../request/organizationTaxInfoUpdateRequest'; import { PaymentMethodType } from '../../enums/paymentMethodType'; +import { OrganizationTaxInfoUpdateRequest } from '../request/organizationTaxInfoUpdateRequest'; export class PaymentRequest extends OrganizationTaxInfoUpdateRequest { paymentMethodType: PaymentMethodType;