@flowio/api-types 0.0.229 → 0.0.232

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.
@@ -2,10 +2,10 @@ declare namespace io.flow.adyen.v0.enums {
2
2
  type Channel = 'web';
3
3
  type Contract = 'RECURRING';
4
4
  type DeviceChannel = 'app' | 'browser';
5
- type EventCode = 'AUTHORISATION' | 'CANCELLATION' | 'REFUND' | 'CANCEL_OR_REFUND' | 'CAPTURE' | 'CAPTURE_FAILED' | 'REFUND_FAILED' | 'REFUNDED_REVERSED' | 'PAIDOUT_REVERSED' | 'REQUEST_FOR_INFORMATION' | 'CHARGEBACK' | 'CHARGEBACK_REVERSED' | 'NOTIFICATION_OF_CHARGEBACK' | 'NOTIFICATION_OF_FRAUD' | 'MANUAL_REVIEW_ACCEPT' | 'MANUAL_REVIEW_REJECT' | 'RECURRING_CONTRACT' | 'PAYOUT_EXPIRE' | 'PAYOUT_DECLINE' | 'PAYOUT_THIRDPARTY' | 'REFUND_WITH_DATA' | 'AUTHORISE_REFERRAL' | 'EXPIRE' | 'FRAUD_ONLY' | 'FUND_TRANSFER' | 'HANDLED_EXTERNALLY' | 'OFFER_CLOSED' | 'ORDER_OPENED' | 'ORDER_CLOSED' | 'PENDING' | 'PROCESS_RETRY' | 'REPORT_AVAILABLE' | 'SECOND_CHARGEBACK' | 'PREARBITRATION_WON' | 'PREARBITRATION_LOST';
5
+ type EventCode = 'AUTHORISATION' | 'CANCELLATION' | 'REFUND' | 'CANCEL_OR_REFUND' | 'CAPTURE' | 'CAPTURE_FAILED' | 'REFUND_FAILED' | 'REFUNDED_REVERSED' | 'PAIDOUT_REVERSED' | 'REQUEST_FOR_INFORMATION' | 'CHARGEBACK' | 'CHARGEBACK_REVERSED' | 'NOTIFICATION_OF_CHARGEBACK' | 'NOTIFICATION_OF_FRAUD' | 'MANUAL_REVIEW_ACCEPT' | 'MANUAL_REVIEW_REJECT' | 'RECURRING_CONTRACT' | 'PAYOUT_EXPIRE' | 'PAYOUT_DECLINE' | 'PAYOUT_THIRDPARTY' | 'REFUND_WITH_DATA' | 'AUTHORISE_REFERRAL' | 'EXPIRE' | 'FRAUD_ONLY' | 'FUND_TRANSFER' | 'HANDLED_EXTERNALLY' | 'OFFER_CLOSED' | 'ORDER_OPENED' | 'ORDER_CLOSED' | 'PENDING' | 'PROCESS_RETRY' | 'REPORT_AVAILABLE' | 'SECOND_CHARGEBACK' | 'PREARBITRATION_WON' | 'PREARBITRATION_LOST' | 'INFORMATION_SUPPLIED' | 'DISPUTE_DEFENSE_PERIOD_ENDED' | 'ISSUER_RESPONSE_TIMEFRAME_EXPIRED';
6
6
  type HttpRedirectMethod = 'GET' | 'POST';
7
7
  type Operation = 'cancel' | 'capture' | 'refund';
8
- type PaymentMethod = 'ach' | 'alipay' | 'alipay_hk' | 'alipay_wap' | 'amex' | 'bankTransfer_IBAN' | 'bcmc' | 'bcmc_mobile' | 'blik' | 'cartebancaire' | 'cup' | 'diners' | 'directEbanking' | 'discover' | 'dotpay' | 'dragonpay_ebanking' | 'dragonpay_gcash' | 'dragonpay_otc_banking' | 'ebanking_FI' | 'gcash' | 'giropay' | 'ideal' | 'interac' | 'jcb' | 'kakaopay' | 'kcp_banktransfer' | 'kcp_creditcard' | 'kcp_payco' | 'maestro' | 'mbway' | 'mc' | 'mobilepay' | 'molpay_points' | 'multibanco' | 'onlineBanking_PL' | 'qiwiwallet' | 'sepadirectdebit' | 'trustly' | 'trustpay' | 'twint' | 'unionpay' | 'visa' | 'wechatpay' | 'unknowncard';
8
+ type PaymentMethod = 'ach' | 'alipay' | 'alipay_hk' | 'alipay_wap' | 'amex' | 'bankTransfer_IBAN' | 'bcmc' | 'bcmc_mobile' | 'blik' | 'cartebancaire' | 'cup' | 'diners' | 'directEbanking' | 'discover' | 'dotpay' | 'dragonpay_ebanking' | 'dragonpay_gcash' | 'dragonpay_otc_banking' | 'ebanking_FI' | 'gcash' | 'giropay' | 'grabpay_MY' | 'grabpay_PH' | 'grabpay_SG' | 'ideal' | 'interac' | 'jcb' | 'kakaopay' | 'kcp_banktransfer' | 'kcp_creditcard' | 'kcp_payco' | 'maestro' | 'mbway' | 'mc' | 'mobilepay' | 'molpay_points' | 'multibanco' | 'onlineBanking_PL' | 'paywithgoogle' | 'qiwiwallet' | 'sepadirectdebit' | 'trustly' | 'trustpay' | 'twint' | 'unionpay' | 'vipps' | 'visa' | 'wechatpay' | 'unknowncard';
9
9
  type RecurringProcessingModel = 'Subscription' | 'CardOnFile' | 'UnscheduledCardOnFile';
10
10
  type ResultCode = 'Authorised' | 'Cancelled' | 'Error' | 'Refused' | 'Received' | 'RedirectShopper' | 'Pending' | 'ChallengeShopper' | 'IdentifyShopper';
11
11
  type ShopperInteraction = 'Ecommerce' | 'ContAuth' | 'POS' | 'Moto';
@@ -22,6 +22,11 @@ declare namespace io.flow.adyen.v0.models {
22
22
  readonly 'country'?: string;
23
23
  }
24
24
 
25
+ interface AdyenDisputeEvent {
26
+ readonly 'live': string;
27
+ readonly 'notificationItems': io.flow.adyen.v0.models.OuterNotificationRequestItem[];
28
+ }
29
+
25
30
  interface Amount {
26
31
  readonly 'value': number;
27
32
  readonly 'currency': string;
@@ -154,6 +159,7 @@ declare namespace io.flow.adyen.v0.models {
154
159
  readonly 'chargebackReasonCode': string;
155
160
  readonly 'modificationMerchantReferences': string;
156
161
  readonly 'chargebackSchemeCode': string;
162
+ readonly 'defensePeriodEndsAt'?: string;
157
163
  }
158
164
 
159
165
  interface Error {
@@ -4,7 +4,7 @@ declare namespace io.flow.billing.v0.enums {
4
4
  type PayoutStatusFailureCode = 'invalid_account_number' | 'account_closed' | 'could_not_process';
5
5
  type PendingPayoutTransactionReasonCode = 'waiting_for_full_refund' | 'waiting_for_fulfillment' | 'waiting_for_in_transit' | 'waiting_for_next_payout_date' | 'waiting_for_tracking_info' | 'waiting_for_positive_account_balance';
6
6
  type StatementAttachmentType = 'csv';
7
- type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'reversal' | 'shipping_label' | 'shipping_label_service' | 'shipping_label_revenue_share' | 'trueup' | 'trueup_base' | 'trueup_surcharge' | 'carrier_charge' | 'carrier_charge_revenue_share' | 'platform_fee' | 'tax' | 'duty' | 'withholding' | 'other_adjustment' | 'tax_adjustment' | 'channel' | 'channel_billed' | 'order_service' | 'virtual_card_capture' | 'virtual_card_refund' | 'failed_payout';
7
+ type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'reversal' | 'shipping_label' | 'shipping_label_service' | 'shipping_label_revenue_share' | 'trueup' | 'trueup_base' | 'trueup_surcharge' | 'carrier_charge' | 'carrier_charge_revenue_share' | 'platform_fee' | 'tax' | 'duty' | 'withholding' | 'other_adjustment' | 'tax_adjustment' | 'channel' | 'channel_billed' | 'order_service' | 'virtual_card_capture' | 'virtual_card_refund' | 'failed_payout' | 'tax_refund';
8
8
  type TrueupSource = 'flow' | 'channel' | 'dhl-parcel' | 'dhl' | 'ups';
9
9
  type WithholdingDeductionType = 'tax' | 'duty' | 'freight' | 'insurance';
10
10
  }
@@ -108,7 +108,7 @@ declare namespace io.flow.external.paypal.v1.models {
108
108
  }
109
109
 
110
110
  interface CanceledRecurringBilling {
111
- readonly 'expected_refund'?: io.flow.external.paypal.v1.models.Money;
111
+ readonly 'expected_refund'?: io.flow.external.paypal.v1.models.DisputeMoney;
112
112
  readonly 'cancellation_details'?: io.flow.external.paypal.v1.models.CancellationDetails;
113
113
  }
114
114
 
@@ -127,7 +127,7 @@ declare namespace io.flow.external.paypal.v1.models {
127
127
 
128
128
  interface CreditNotProcessed {
129
129
  readonly 'issue_type'?: io.flow.external.paypal.v1.enums.IssueType;
130
- readonly 'expected_refund'?: io.flow.external.paypal.v1.models.Money;
130
+ readonly 'expected_refund'?: io.flow.external.paypal.v1.models.DisputeMoney;
131
131
  readonly 'cancellation_details'?: io.flow.external.paypal.v1.models.CancellationDetails;
132
132
  readonly 'product_details'?: io.flow.external.paypal.v1.models.ProductDetails;
133
133
  readonly 'service_details'?: io.flow.external.paypal.v1.models.ServiceDetails;
@@ -141,7 +141,7 @@ declare namespace io.flow.external.paypal.v1.models {
141
141
  readonly 'disputed_transactions': io.flow.external.paypal.v1.models.TransactionInfo[];
142
142
  readonly 'reason': io.flow.external.paypal.v1.enums.DisputeReason;
143
143
  readonly 'status': io.flow.external.paypal.v1.enums.DisputeStatus;
144
- readonly 'dispute_amount': io.flow.external.paypal.v1.models.Money;
144
+ readonly 'dispute_amount': io.flow.external.paypal.v1.models.DisputeMoney;
145
145
  readonly 'fee_policy'?: any/*object*/;
146
146
  readonly 'external_reason_code'?: string;
147
147
  readonly 'dispute_outcome'?: io.flow.external.paypal.v1.models.DisputeOutcome;
@@ -178,9 +178,14 @@ declare namespace io.flow.external.paypal.v1.models {
178
178
  readonly 'links': io.flow.external.paypal.v1.models.Link[];
179
179
  }
180
180
 
181
+ interface DisputeMoney {
182
+ readonly 'currency_code': string;
183
+ readonly 'value': string;
184
+ }
185
+
181
186
  interface DisputeOutcome {
182
187
  readonly 'outcome_code'?: io.flow.external.paypal.v1.enums.DisputeOutcomeCode;
183
- readonly 'amount_refunded'?: io.flow.external.paypal.v1.models.Money;
188
+ readonly 'amount_refunded'?: io.flow.external.paypal.v1.models.DisputeMoney;
184
189
  }
185
190
 
186
191
  interface DisputeSummary {
@@ -189,7 +194,7 @@ declare namespace io.flow.external.paypal.v1.models {
189
194
  readonly 'update_time': string;
190
195
  readonly 'reason': io.flow.external.paypal.v1.enums.DisputeReason;
191
196
  readonly 'status': io.flow.external.paypal.v1.enums.DisputeStatus;
192
- readonly 'dispute_amount': io.flow.external.paypal.v1.models.Money;
197
+ readonly 'dispute_amount': io.flow.external.paypal.v1.models.DisputeMoney;
193
198
  readonly 'dispute_life_cycle_stage': io.flow.external.paypal.v1.enums.DisputeLifeCycleStage;
194
199
  readonly 'links': io.flow.external.paypal.v1.models.Link[];
195
200
  }
@@ -235,7 +240,7 @@ declare namespace io.flow.external.paypal.v1.models {
235
240
  }
236
241
 
237
242
  interface IncorrectTransactionAmount {
238
- readonly 'correct_transaction_amount'?: io.flow.external.paypal.v1.models.Money;
243
+ readonly 'correct_transaction_amount'?: io.flow.external.paypal.v1.models.DisputeMoney;
239
244
  readonly 'correct_transaction_time'?: string;
240
245
  }
241
246
 
@@ -255,7 +260,7 @@ declare namespace io.flow.external.paypal.v1.models {
255
260
  readonly 'item_quantity'?: string;
256
261
  readonly 'partner_transaction_id'?: string;
257
262
  readonly 'reason'?: io.flow.external.paypal.v1.enums.DisputeReason;
258
- readonly 'dispute_amount'?: io.flow.external.paypal.v1.models.Money;
263
+ readonly 'dispute_amount'?: io.flow.external.paypal.v1.models.DisputeMoney;
259
264
  readonly 'notes'?: string;
260
265
  }
261
266
 
@@ -288,21 +293,21 @@ declare namespace io.flow.external.paypal.v1.models {
288
293
  }
289
294
 
290
295
  interface Money {
291
- readonly 'currency_code': string;
292
- readonly 'value': string;
296
+ readonly 'currency_code'?: string;
297
+ readonly 'value'?: string;
293
298
  }
294
299
 
295
300
  interface MoneyMovement {
296
301
  readonly 'affected_party'?: io.flow.external.paypal.v1.enums.AffectedParty;
297
- readonly 'amount'?: io.flow.external.paypal.v1.models.Money;
302
+ readonly 'amount'?: io.flow.external.paypal.v1.models.DisputeMoney;
298
303
  readonly 'initiated_time'?: string;
299
304
  readonly 'type'?: io.flow.external.paypal.v1.enums.MoneyMovementType;
300
305
  readonly 'reason'?: io.flow.external.paypal.v1.enums.MoneyMovementReason;
301
306
  }
302
307
 
303
308
  interface Offer {
304
- readonly 'buyer_requested_amount'?: io.flow.external.paypal.v1.models.Money;
305
- readonly 'seller_offered_amount'?: io.flow.external.paypal.v1.models.Money;
309
+ readonly 'buyer_requested_amount'?: io.flow.external.paypal.v1.models.DisputeMoney;
310
+ readonly 'seller_offered_amount'?: io.flow.external.paypal.v1.models.DisputeMoney;
306
311
  readonly 'offer_type'?: io.flow.external.paypal.v1.enums.OfferType;
307
312
  }
308
313
 
@@ -406,7 +411,7 @@ declare namespace io.flow.external.paypal.v1.models {
406
411
  }
407
412
 
408
413
  interface RefundDetails {
409
- readonly 'allowed_refund_amount'?: io.flow.external.paypal.v1.models.Money;
414
+ readonly 'allowed_refund_amount'?: io.flow.external.paypal.v1.models.DisputeMoney;
410
415
  }
411
416
 
412
417
  interface RefundId {
@@ -541,7 +546,7 @@ declare namespace io.flow.external.paypal.v1.models {
541
546
  readonly 'reference_id'?: string;
542
547
  readonly 'create_time'?: string;
543
548
  readonly 'transaction_status'?: io.flow.external.paypal.v1.enums.TransactionStatus;
544
- readonly 'gross_amount'?: io.flow.external.paypal.v1.models.Money;
549
+ readonly 'gross_amount'?: io.flow.external.paypal.v1.models.DisputeMoney;
545
550
  readonly 'invoice_number': string;
546
551
  readonly 'custom'?: string;
547
552
  readonly 'buyer'?: io.flow.external.paypal.v1.models.Buyer;