diff --git a/src/models/paymentInstruments/swish/swishPayment.ts b/src/models/paymentInstruments/swish/swishPayment.ts new file mode 100644 index 00000000..a0a933b7 --- /dev/null +++ b/src/models/paymentInstruments/swish/swishPayment.ts @@ -0,0 +1,3 @@ +export interface SwishPayment extends Identifiable, PaymentInstrument { + sales: SwishSaleListResponse; +} \ No newline at end of file diff --git a/src/models/paymentInstruments/swish/swishPaymentOperations.ts b/src/models/paymentInstruments/swish/swishPaymentOperations.ts new file mode 100644 index 00000000..6f48bb68 --- /dev/null +++ b/src/models/paymentInstruments/swish/swishPaymentOperations.ts @@ -0,0 +1,8 @@ +export interface SwishPaymentOperations extends Dictionary { + abort: Func>; + paidPayment: HttpOperation; + redirectSale: HttpOperation; + reverse: Func>; + sale: Func>; + viewSales: HttpOperation; +} \ No newline at end of file diff --git a/src/models/paymentInstruments/swish/swishPaymentRequest.ts b/src/models/paymentInstruments/swish/swishPaymentRequest.ts new file mode 100644 index 00000000..2b53c71e --- /dev/null +++ b/src/models/paymentInstruments/swish/swishPaymentRequest.ts @@ -0,0 +1,3 @@ +export interface SwishPaymentRequest { + payment: SwishPaymentRequestDetails; +} \ No newline at end of file diff --git a/src/models/paymentInstruments/swish/swishPaymentRequestDetails.ts b/src/models/paymentInstruments/swish/swishPaymentRequestDetails.ts new file mode 100644 index 00000000..be2f67bb --- /dev/null +++ b/src/models/paymentInstruments/swish/swishPaymentRequestDetails.ts @@ -0,0 +1,15 @@ +export interface SwishPaymentRequestDetails { + currency: Currency; + description: string; + intent: PaymentIntent; + language: Language; + operation: Operation; + payeeInfo: PayeeInfo; + payerReference: string; + prefillInfo: PrefillInfo; + prices: Price[]; + swish: SwishRequestData; + urls: Urls; + userAgent: string; + metadata: Metadata; +} \ No newline at end of file diff --git a/src/models/paymentInstruments/swish/swishPaymentResponse.ts b/src/models/paymentInstruments/swish/swishPaymentResponse.ts new file mode 100644 index 00000000..f0fa9ae4 --- /dev/null +++ b/src/models/paymentInstruments/swish/swishPaymentResponse.ts @@ -0,0 +1,4 @@ +export interface SwishPaymentResponse { + payment: SwishPayment; + operations: SwishPaymentOperations; +} \ No newline at end of file diff --git a/src/models/paymentInstruments/swish/swishPaymentReversalRequest.ts b/src/models/paymentInstruments/swish/swishPaymentReversalRequest.ts new file mode 100644 index 00000000..e87dd191 --- /dev/null +++ b/src/models/paymentInstruments/swish/swishPaymentReversalRequest.ts @@ -0,0 +1,3 @@ +export interface SwishPaymentReversalRequest { + transaction: SwishPaymentReversalTransaction; +} \ No newline at end of file diff --git a/src/models/paymentInstruments/swish/swishPaymentReversalTransaction.ts b/src/models/paymentInstruments/swish/swishPaymentReversalTransaction.ts new file mode 100644 index 00000000..63c8255c --- /dev/null +++ b/src/models/paymentInstruments/swish/swishPaymentReversalTransaction.ts @@ -0,0 +1,6 @@ +export interface SwishPaymentReversalTransaction { + amount: Amount; + description: string; + payeeReference: string; + vatAmount: Amount; +} \ No newline at end of file diff --git a/src/models/paymentInstruments/swish/swishPaymentSale.ts b/src/models/paymentInstruments/swish/swishPaymentSale.ts new file mode 100644 index 00000000..c31fdb0a --- /dev/null +++ b/src/models/paymentInstruments/swish/swishPaymentSale.ts @@ -0,0 +1,6 @@ +export interface SwishPaymentSale extends Identifiable { + created: string; + updated: string; + paymentRequestToken: string; + transaction: Transaction; +} \ No newline at end of file diff --git a/src/models/paymentInstruments/swish/swishPaymentSaleRequest.ts b/src/models/paymentInstruments/swish/swishPaymentSaleRequest.ts new file mode 100644 index 00000000..7f7bca2a --- /dev/null +++ b/src/models/paymentInstruments/swish/swishPaymentSaleRequest.ts @@ -0,0 +1,3 @@ +export interface SwishPaymentSaleRequest { + transaction: SwishPaymentSaleTransaction; +} \ No newline at end of file diff --git a/src/models/paymentInstruments/swish/swishPaymentSaleResponse.ts b/src/models/paymentInstruments/swish/swishPaymentSaleResponse.ts new file mode 100644 index 00000000..cfb71a17 --- /dev/null +++ b/src/models/paymentInstruments/swish/swishPaymentSaleResponse.ts @@ -0,0 +1,4 @@ +export interface SwishPaymentSaleResponse { + payment: Uri; + sale: SwishPaymentSale; +} \ No newline at end of file diff --git a/src/models/paymentInstruments/swish/swishPaymentSaleTransaction.ts b/src/models/paymentInstruments/swish/swishPaymentSaleTransaction.ts new file mode 100644 index 00000000..af481cae --- /dev/null +++ b/src/models/paymentInstruments/swish/swishPaymentSaleTransaction.ts @@ -0,0 +1,3 @@ +export interface SwishPaymentSaleTransaction { + msisdn: Msisdn; +} \ No newline at end of file diff --git a/src/models/paymentInstruments/swish/swishPaymentsResource.ts b/src/models/paymentInstruments/swish/swishPaymentsResource.ts new file mode 100644 index 00000000..3ad2e4a1 --- /dev/null +++ b/src/models/paymentInstruments/swish/swishPaymentsResource.ts @@ -0,0 +1,3 @@ +export interface SwishResource { + +} \ No newline at end of file diff --git a/src/models/paymentInstruments/swish/swishRequestData.ts b/src/models/paymentInstruments/swish/swishRequestData.ts new file mode 100644 index 00000000..db2c0f1e --- /dev/null +++ b/src/models/paymentInstruments/swish/swishRequestData.ts @@ -0,0 +1,3 @@ +export interface SwishRequestData { + enableEcomOnly: boolean; +} \ No newline at end of file diff --git a/src/models/paymentInstruments/swish/swishSaleListItem.ts b/src/models/paymentInstruments/swish/swishSaleListItem.ts new file mode 100644 index 00000000..5c526cfb --- /dev/null +++ b/src/models/paymentInstruments/swish/swishSaleListItem.ts @@ -0,0 +1,8 @@ +export interface SwishSaleListItem extends Identifiable { + date: string; + payerAlias: string; + paymentRequestToken: string; + swishPaymentReference: string; + swishStatus: string; + transaction: Transaction; +} \ No newline at end of file diff --git a/src/models/paymentInstruments/swish/swishSaleListResponse.ts b/src/models/paymentInstruments/swish/swishSaleListResponse.ts new file mode 100644 index 00000000..1fc16f06 --- /dev/null +++ b/src/models/paymentInstruments/swish/swishSaleListResponse.ts @@ -0,0 +1,3 @@ +export interface SwishSaleListResponse extends Identifiable { + saleList: SwishSaleListItem[]; +} \ No newline at end of file