-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f572d91
commit 6fc9ec0
Showing
15 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface SwishPayment extends Identifiable, PaymentInstrument { | ||
sales: SwishSaleListResponse; | ||
} |
8 changes: 8 additions & 0 deletions
8
src/models/paymentInstruments/swish/swishPaymentOperations.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export interface SwishPaymentOperations extends Dictionary<LinkRelation, HttpOperation> { | ||
abort: Func<PaymentAbortRequest, Task<SwishPaymentResponse>>; | ||
paidPayment: HttpOperation; | ||
redirectSale: HttpOperation; | ||
reverse: Func<SwishPaymentReversalRequest, Task<ReversalResponse>>; | ||
sale: Func<SwishPaymentSaleRequest, Task<SwishPaymentSaleResponse>>; | ||
viewSales: HttpOperation; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface SwishPaymentRequest { | ||
payment: SwishPaymentRequestDetails; | ||
} |
15 changes: 15 additions & 0 deletions
15
src/models/paymentInstruments/swish/swishPaymentRequestDetails.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface SwishPaymentResponse { | ||
payment: SwishPayment; | ||
operations: SwishPaymentOperations; | ||
} |
3 changes: 3 additions & 0 deletions
3
src/models/paymentInstruments/swish/swishPaymentReversalRequest.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface SwishPaymentReversalRequest { | ||
transaction: SwishPaymentReversalTransaction; | ||
} |
6 changes: 6 additions & 0 deletions
6
src/models/paymentInstruments/swish/swishPaymentReversalTransaction.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export interface SwishPaymentReversalTransaction { | ||
amount: Amount; | ||
description: string; | ||
payeeReference: string; | ||
vatAmount: Amount; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export interface SwishPaymentSale extends Identifiable { | ||
created: string; | ||
updated: string; | ||
paymentRequestToken: string; | ||
transaction: Transaction; | ||
} |
3 changes: 3 additions & 0 deletions
3
src/models/paymentInstruments/swish/swishPaymentSaleRequest.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface SwishPaymentSaleRequest { | ||
transaction: SwishPaymentSaleTransaction; | ||
} |
4 changes: 4 additions & 0 deletions
4
src/models/paymentInstruments/swish/swishPaymentSaleResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface SwishPaymentSaleResponse { | ||
payment: Uri; | ||
sale: SwishPaymentSale; | ||
} |
3 changes: 3 additions & 0 deletions
3
src/models/paymentInstruments/swish/swishPaymentSaleTransaction.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface SwishPaymentSaleTransaction { | ||
msisdn: Msisdn; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface SwishResource { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface SwishRequestData { | ||
enableEcomOnly: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export interface SwishSaleListItem extends Identifiable { | ||
date: string; | ||
payerAlias: string; | ||
paymentRequestToken: string; | ||
swishPaymentReference: string; | ||
swishStatus: string; | ||
transaction: Transaction; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface SwishSaleListResponse extends Identifiable { | ||
saleList: SwishSaleListItem[]; | ||
} |