@flowio/api-types 0.0.203 → 0.0.205
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.
- package/generated/io.flow.apple.pay.v0.apple-pay.d.ts +4 -4
- package/generated/io.flow.billing.csv.v0.billing-csv.d.ts +418 -0
- package/generated/io.flow.billing.internal.v0.billing-internal.d.ts +1037 -0
- package/generated/io.flow.billing.reporting.csv.v0.billing-reporting-csv.d.ts +294 -0
- package/generated/io.flow.billing.v0.billing.d.ts +44 -18
- package/generated/io.flow.consumer.invoice.v0.consumer-invoice.d.ts +204 -0
- package/generated/io.flow.external.paypal.v1.paypal.d.ts +38 -9
- package/generated/io.flow.internal.v0.api-internal.d.ts +298 -140
- package/generated/io.flow.invoice.v0.invoice.d.ts +21 -0
- package/generated/io.flow.label.v0.label.d.ts +4 -3
- package/generated/io.flow.payment.v0.payment.d.ts +13 -0
- package/generated/io.flow.ratecard.v0.ratecard.d.ts +14 -0
- package/generated/io.flow.shopify.markets.v0.shopify-markets.d.ts +1 -1
- package/generated/io.flow.stripe.v0.stripe.d.ts +1 -0
- package/generated/io.flow.trueup.v0.trueup.d.ts +52 -0
- package/generated/io.flow.v0.api.d.ts +166 -23
- package/index.d.ts +6 -1
- package/package.json +2 -2
- package/generated/io.flow.billing.true.up.v0.billing-true-up.d.ts +0 -148
|
@@ -11,6 +11,7 @@ declare namespace io.flow.external.paypal.v1.enums {
|
|
|
11
11
|
type DisputeOutcomeCode = 'RESOLVED_BUYER_FAVOUR' | 'RESOLVED_SELLER_FAVOUR' | 'RESOLVED_WITH_PAYOUT' | 'CANCELED_BY_BUYER' | 'ACCEPTED' | 'DENIED' | 'NONE';
|
|
12
12
|
type DisputeReason = 'MERCHANDISE_OR_SERVICE_NOT_RECEIVED' | 'MERCHANDISE_OR_SERVICE_NOT_AS_DESCRIBED' | 'UNAUTHORISED' | 'CREDIT_NOT_PROCESSED' | 'DUPLICATE_TRANSACTION' | 'INCORRECT_AMOUNT' | 'PAYMENT_BY_OTHER_MEANS' | 'CANCELED_RECURRING_BILLING' | 'PROBLEM_WITH_REMITTANCE' | 'OTHER';
|
|
13
13
|
type DisputeStatus = 'OPEN' | 'WAITING_FOR_BUYER_RESPONSE' | 'WAITING_FOR_SELLER_RESPONSE' | 'UNDER_REVIEW' | 'RESOLVED' | 'OTHER';
|
|
14
|
+
type EventType = 'PAYMENT.AUTHORIZATION.CREATED' | 'PAYMENT.AUTHORIZATION.VOIDED' | 'PAYMENT.CAPTURE.DECLINED' | 'PAYMENT.CAPTURE.COMPLETED' | 'PAYMENT.CAPTURE.PENDING' | 'PAYMENT.CAPTURE.REVERSED' | 'PAYMENT.CAPTURE.DENIED' | 'PAYMENT.ORDER.CANCELLED' | 'PAYMENT.ORDER.CREATED' | 'PAYMENT.SALE.COMPLETED' | 'PAYMENT.SALE.DENIED' | 'PAYMENT.SALE.PENDING' | 'PAYMENT.SALE.REFUNDED' | 'PAYMENT.SALE.REVERSED' | 'PAYMENTS.PAYMENT.CREATED' | 'CHECKOUT.ORDER.APPROVED' | 'CHECKOUT.CHECKOUT.BUYER-APPROVED' | 'CHECKOUT.ORDER.COMPLETED' | 'CUSTOMER.DISPUTE.CREATED' | 'CUSTOMER.DISPUTE.RESOLVED' | 'CUSTOMER.DISPUTE.UPDATED' | 'CHECKOUT.PAYMENT-APPROVAL.REVERSED';
|
|
14
15
|
type EvidenceType = 'PROOF_OF_FULFILLMENT' | 'PROOF_OF_REFUND' | 'PROOF_OF_DELIVERY_SIGNATURE' | 'PROOF_OF_RECEIPT_COPY' | 'RETURN_POLICY' | 'BILLING_AGREEMENT' | 'PROOF_OF_RESHIPMENT' | 'ITEM_DESCRIPTION' | 'POLICE_REPORT' | 'AFFIDAVIT' | 'PAID_WITH_OTHER_METHOD' | 'COPY_OF_CONTRACT' | 'TERMINAL_ATM_RECEIPT' | 'PRICE_DIFFERENCE_REASON' | 'SOURCE_CONVERSION_RATE' | 'BANK_STATEMENT' | 'CREDIT_DUE_REASON' | 'REQUEST_CREDIT_RECEIPT' | 'PROOF_OF_RETURN' | 'CREATE' | 'CHANGE_REASON' | 'PROOF_OF_REFUND_OUTSIDE_PAYPAL' | 'RECEIPT_OF_MERCHANDISE' | 'CUSTOMS_DOCUMENT' | 'CUSTOMS_FEE_RECEIPT' | 'INFORMATION_ON_RESOLUTION' | 'ADDITIONAL_INFORMATION_OF_ITEM' | 'DETAILS_OF_PURCHASE' | 'PROOF_OF_SIGNIFICANT_DIFFERENCE' | 'PROOF_OF_SOFTWARE_OR_SERVICE_NOT_AS_DESCRIBED' | 'PROOF_OF_CONFISCATION' | 'PROOF_OF_DAMAGE' | 'COPY_OF_LAW_ENFORCEMENT_AGENCY_REPORT' | 'ADDITIONAL_PROOF_OF_SHIPMENT' | 'PROOF_OF_DENIAL_BY_CARRIER' | 'THIRDPARTY_PROOF_FOR_DAMAGE_OR_SIGNIFICANT_DIFFERENCE' | 'VALID_SUPPORTING_DOCUMENT' | 'LEGIBLE_SUPPORTING_DOCUMENT' | 'RETURN_TRACKING_INFORMATION' | 'DELIVERY_RECEIPT' | 'PROOF_OF_INSTORE_RECEIPT' | 'ADDITIONAL_TRACKING_INFORMATION' | 'PROOF_OF_SHIPMENT_POSTAGE' | 'ONLINE_TRACKING_INFORMATION' | 'PROOF_OF_INSTORE_REFUND' | 'PROOF_FOR_SOFTWARE_OR_SERVICE_DELIVERED' | 'RETURN_ADDRESS_FOR_SHIPPING' | 'COPY_OF_THE_EPARCEL_MANIFEST' | 'COPY_OF_SHIPPING_MANIFEST' | 'APPEAL_AFFIDAVIT' | 'RECEIPT_OF_REPLACEMENT' | 'COPY_OF_DRIVERS_LICENSE' | 'ACCOUNT_CHANGE_INFORMATION' | 'DELIVERY_ADDRESS' | 'CONFIRMATION_OF_RESOLUTION' | 'MERCHANT_RESPONSE' | 'PERMISSION_DESCRIPTION' | 'STATUS_OF_MERCHANDISE' | 'LOST_CARD_DETAILS' | 'LAST_VALID_TRANSACTION_DETAILS' | 'ADDITIONAL_PROOF_OF_RETURN' | 'OTHER';
|
|
15
16
|
type FailureReason = 'UNABLE_TO_COMPLETE_TRANSACTION' | 'INVALID_PAYMENT_METHOD' | 'PAYER_CANNOT_PAY' | 'CANNOT_PAY_THIS_PAYEE' | 'REDIRECT_REQUIRED' | 'PAYEE_FILTER_RESTRICTIONS';
|
|
16
17
|
type GrantType = 'client_credentials';
|
|
@@ -29,6 +30,7 @@ declare namespace io.flow.external.paypal.v1.enums {
|
|
|
29
30
|
type RefundState = 'pending' | 'completed' | 'cancelled' | 'failed';
|
|
30
31
|
type ReturnAcknowledgementType = 'ITEM_RECEIVED' | 'ITEM_NOT_RECEIVED' | 'DAMAGED' | 'EMPTY_PACKAGE_OR_DIFFERENT' | 'MISSING_ITEMS';
|
|
31
32
|
type ReturnMode = 'SHIPPED' | 'IN_PERSON';
|
|
33
|
+
type SaleState = 'pending' | 'completed' | 'denied' | 'partially_refunded' | 'refunded';
|
|
32
34
|
type ServiceStarted = 'YES' | 'NO' | 'RETURNED';
|
|
33
35
|
type ShippingDisplayPreference = 'NO_SHIPPING' | 'GET_FROM_FILE' | 'SET_PROVIDED_ADDRESS';
|
|
34
36
|
type State = 'created' | 'approved' | 'failed';
|
|
@@ -375,24 +377,24 @@ declare namespace io.flow.external.paypal.v1.models {
|
|
|
375
377
|
|
|
376
378
|
interface Refund {
|
|
377
379
|
readonly 'id': string;
|
|
378
|
-
readonly 'amount'
|
|
380
|
+
readonly 'amount'?: io.flow.external.paypal.v1.models.SimpleAmount;
|
|
379
381
|
readonly 'state': io.flow.external.paypal.v1.enums.RefundState;
|
|
380
382
|
readonly 'sale_id': string;
|
|
381
|
-
readonly 'invoice_number'
|
|
383
|
+
readonly 'invoice_number'?: string;
|
|
382
384
|
readonly 'capture_id'?: string;
|
|
383
385
|
readonly 'parent_payment'?: string;
|
|
384
386
|
readonly 'reason_code'?: string;
|
|
385
387
|
readonly 'refund_reason_code'?: string;
|
|
386
388
|
readonly 'refund_funding_type'?: string;
|
|
387
|
-
readonly '
|
|
389
|
+
readonly 'refund_from_received_amount'?: io.flow.external.paypal.v1.models.Money;
|
|
390
|
+
readonly 'refund_from_transaction_fee'?: io.flow.external.paypal.v1.models.Money;
|
|
391
|
+
readonly 'total_refunded_amount'?: io.flow.external.paypal.v1.models.Money;
|
|
392
|
+
readonly 'refund_to_payer'?: io.flow.external.paypal.v1.models.Money;
|
|
393
|
+
readonly 'custom'?: string;
|
|
394
|
+
readonly 'create_time'?: string;
|
|
388
395
|
readonly 'update_time'?: string;
|
|
389
396
|
}
|
|
390
397
|
|
|
391
|
-
interface RefundAmount {
|
|
392
|
-
readonly 'total': string;
|
|
393
|
-
readonly 'currency': string;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
398
|
interface RefundDetails {
|
|
397
399
|
readonly 'allowed_refund_amount'?: io.flow.external.paypal.v1.models.Money;
|
|
398
400
|
}
|
|
@@ -402,7 +404,7 @@ declare namespace io.flow.external.paypal.v1.models {
|
|
|
402
404
|
}
|
|
403
405
|
|
|
404
406
|
interface RefundRequest {
|
|
405
|
-
readonly 'amount': io.flow.external.paypal.v1.models.
|
|
407
|
+
readonly 'amount': io.flow.external.paypal.v1.models.SimpleAmount;
|
|
406
408
|
readonly 'invoice_number': string;
|
|
407
409
|
}
|
|
408
410
|
|
|
@@ -414,6 +416,28 @@ declare namespace io.flow.external.paypal.v1.models {
|
|
|
414
416
|
readonly 'returned'?: boolean;
|
|
415
417
|
}
|
|
416
418
|
|
|
419
|
+
interface Sale {
|
|
420
|
+
readonly 'id': string;
|
|
421
|
+
readonly 'state': io.flow.external.paypal.v1.enums.SaleState;
|
|
422
|
+
readonly 'parent_payment': string;
|
|
423
|
+
readonly 'invoice_number'?: string;
|
|
424
|
+
readonly 'amount'?: io.flow.external.paypal.v1.models.SimpleAmount;
|
|
425
|
+
readonly 'payment_mode'?: string;
|
|
426
|
+
readonly 'reason_code'?: string;
|
|
427
|
+
readonly 'protection_eligibility'?: string;
|
|
428
|
+
readonly 'protection_eligibility_type'?: string;
|
|
429
|
+
readonly 'receipt_id'?: string;
|
|
430
|
+
readonly 'soft_descriptor'?: string;
|
|
431
|
+
readonly 'exchange_rate'?: string;
|
|
432
|
+
readonly 'payment_hold_status'?: string;
|
|
433
|
+
readonly 'payment_hold_reasons'?: string[];
|
|
434
|
+
readonly 'transaction_fee'?: io.flow.external.paypal.v1.models.Money;
|
|
435
|
+
readonly 'receivable_amount'?: io.flow.external.paypal.v1.models.Money;
|
|
436
|
+
readonly 'custom'?: string;
|
|
437
|
+
readonly 'create_time'?: string;
|
|
438
|
+
readonly 'update_time'?: string;
|
|
439
|
+
}
|
|
440
|
+
|
|
417
441
|
interface Seller {
|
|
418
442
|
readonly 'email'?: string;
|
|
419
443
|
readonly 'merchant_id'?: string;
|
|
@@ -439,6 +463,11 @@ declare namespace io.flow.external.paypal.v1.models {
|
|
|
439
463
|
readonly 'state'?: string;
|
|
440
464
|
}
|
|
441
465
|
|
|
466
|
+
interface SimpleAmount {
|
|
467
|
+
readonly 'total': string;
|
|
468
|
+
readonly 'currency': string;
|
|
469
|
+
}
|
|
470
|
+
|
|
442
471
|
interface SupportingInfo {
|
|
443
472
|
readonly 'notes'?: string;
|
|
444
473
|
readonly 'source'?: io.flow.external.paypal.v1.enums.SupportingInfoSource;
|