@compassdigital/sdk.typescript 3.76.0 → 3.77.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,8 +7,18 @@ export interface Transaction {
7
7
  success?: boolean;
8
8
  // the total amount available for refund on the transaction - the transaction remainder amount
9
9
  amount?: string;
10
+ requestDateTime?: string;
10
11
  // cdl encoded transaction id
11
12
  id?: string;
13
+ reasonCode?: number;
14
+ decision?: string;
15
+ status?: string;
16
+ creditCard?: {
17
+ cardType?: string;
18
+ last4?: string;
19
+ };
20
+ digital_wallet_pay?: DigitalWalletPay;
21
+ requestID?: string;
12
22
  [index: string]: any;
13
23
  }
14
24
 
@@ -130,6 +140,7 @@ export interface Options {
130
140
  payment_type?: string;
131
141
  // ID('payment', '<provider>', 'tender', <timestamp via Data.now()>
132
142
  tender?: string;
143
+ digital_wallet_pay?: DigitalWalletPay;
133
144
  }
134
145
 
135
146
  export interface Success {
@@ -154,6 +165,11 @@ export interface CashlessTender {
154
165
 
155
166
  export type BadgePayTender = CashlessTender;
156
167
 
168
+ export interface DigitalWalletPay {
169
+ wallet_type?: string;
170
+ total?: number;
171
+ }
172
+
157
173
  // POST /payment/{id}/transaction
158
174
 
159
175
  export interface PostPaymentTransactionPath {
@@ -169,6 +185,21 @@ export interface PostPaymentTransactionBody {
169
185
  options?: Options;
170
186
  // The braintree merchant account id to use
171
187
  merchant_account_id?: string;
188
+ digital_wallet_token?: string;
189
+ account_number?: string;
190
+ cv_number?: string;
191
+ expiration_month?: string;
192
+ expiration_year?: string;
193
+ cart_items?: {
194
+ id?: string;
195
+ label?: {
196
+ en?: string;
197
+ };
198
+ price?: {
199
+ amount?: number;
200
+ };
201
+ quantity?: number;
202
+ }[];
172
203
  }
173
204
 
174
205
  export type PostPaymentTransactionResponse = Transaction;