|
1 | | -import { Merchant, Relationship, UnimplementedRelationships } from "./common" |
| 1 | +import { CardNetwork, Merchant, Relationship, Tags, UnimplementedRelationships } from "./common" |
2 | 2 |
|
3 | 3 | export type AuthorizationStatus = "Authorized" | "Completed" | "Canceled" | "Declined" |
4 | 4 |
|
@@ -38,16 +38,54 @@ export interface Authorization { |
38 | 38 | status: AuthorizationStatus |
39 | 39 |
|
40 | 40 | /** |
41 | | - * Optional. The reason the authorization was declined. Available only when status is Declined |
| 41 | + * Optional. The reason the authorization was declined. Available only when status is Declined. |
42 | 42 | */ |
43 | 43 | declineReason?: string |
44 | 44 |
|
45 | 45 | merchant: Merchant |
46 | 46 |
|
47 | 47 | /** |
48 | | - * Indicates whether the authorization is recurring |
| 48 | + * Indicates whether the authorization is recurring. |
49 | 49 | */ |
50 | 50 | recurring: boolean |
| 51 | + |
| 52 | + /** |
| 53 | + * Optional. The payment method used, one of: Manual, Swipe, Contactless, ChipAndPin, Stored, Other. |
| 54 | + */ |
| 55 | + paymentMethod?: string |
| 56 | + |
| 57 | + /** |
| 58 | + * Optional. The type of digital wallet used, one of: Google, Apple, Other. |
| 59 | + */ |
| 60 | + digitalWallet?: string |
| 61 | + |
| 62 | + /** |
| 63 | + * Optional. The verification method used, one of: Address, CVV2, AddressAndCVV2. |
| 64 | + */ |
| 65 | + cardVerificationData?: { |
| 66 | + verificationMethod?: string |
| 67 | + } |
| 68 | + |
| 69 | + /** |
| 70 | + * Optional. The card network used, one of: Visa, Interlink, Accel, Allpoint, Other. |
| 71 | + */ |
| 72 | + cardNetwork?: CardNetwork |
| 73 | + |
| 74 | + /** |
| 75 | + * See [Tags](https://developers.unit.co/#tags). |
| 76 | + * Inherited from the payment tags (see [Tag Inheritance](https://developers.unit.co/#tag-inheritance)). |
| 77 | + */ |
| 78 | + tags?: Tags |
| 79 | + |
| 80 | + /** |
| 81 | + * Optional. Cash withdrawal amount. |
| 82 | + */ |
| 83 | + cashWithdrawalAmount?: number |
| 84 | + |
| 85 | + /** |
| 86 | + * Optional. Summary of the authorization. |
| 87 | + */ |
| 88 | + summary?: string |
51 | 89 | } |
52 | 90 |
|
53 | 91 | /** |
|
0 commit comments