@flowio/types 11.24.80 → 11.24.81

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.
@@ -2402,9 +2402,16 @@ declare namespace io.flow.billing.csv.v0.models {
2402
2402
  readonly shipping_label?: io.flow.billing.csv.v0.models.BillingCsvTransactionMetadataShippingLabel;
2403
2403
  readonly shipping_label_revenue_share?: io.flow.billing.csv.v0.models.BillingCsvTransactionMetadataShippingLabelRevenueShare;
2404
2404
  readonly trueup?: io.flow.billing.csv.v0.models.BillingCsvTransactionMetadataTrueup;
2405
+ readonly carrier_charge?: io.flow.billing.csv.v0.models.BillingCsvTransactionMetadataCarrierCharge;
2405
2406
  readonly manual?: io.flow.billing.csv.v0.models.BillingCsvTransactionMetadataManual;
2406
2407
  }
2407
2408
 
2409
+ interface BillingCsvTransactionMetadataCarrierCharge {
2410
+ readonly reason: io.flow.trueup.v0.enums.CarrierChargeReason;
2411
+ readonly carrier_id: string;
2412
+ readonly carrier_tracking_number: string;
2413
+ }
2414
+
2408
2415
  interface BillingCsvTransactionMetadataChannel {
2409
2416
  readonly method: string;
2410
2417
  readonly card?: io.flow.billing.v0.models.TransactionMetadataChannelCardMetadata;
@@ -7257,6 +7264,19 @@ declare namespace io.flow.shopify.external.v0.models {
7257
7264
  }
7258
7265
 
7259
7266
  declare namespace io.flow.shopify.markets.v0.enums {
7267
+ type BulkOperationErrorCode =
7268
+ | 'access_denied'
7269
+ | 'internal_server_error'
7270
+ | 'timeout';
7271
+ type BulkOperationStatus =
7272
+ | 'canceled'
7273
+ | 'canceling'
7274
+ | 'completed'
7275
+ | 'created'
7276
+ | 'expired'
7277
+ | 'failed'
7278
+ | 'running';
7279
+ type BulkOperationType = 'mutation' | 'query';
7260
7280
  type CancelReason = 'customer' | 'fraud' | 'inventory' | 'declined' | 'other';
7261
7281
  type FulfillmentOrderDeliveryMethodType =
7262
7282
  | 'local'
@@ -7435,7 +7455,8 @@ declare namespace io.flow.shopify.markets.v0.enums {
7435
7455
  | 'shop/redact'
7436
7456
  | 'themes/create'
7437
7457
  | 'themes/publish'
7438
- | 'themes/update';
7458
+ | 'themes/update'
7459
+ | 'bulk_operations/finish';
7439
7460
  }
7440
7461
 
7441
7462
  declare namespace io.flow.shopify.markets.v0.models {
@@ -7509,6 +7530,15 @@ declare namespace io.flow.shopify.markets.v0.models {
7509
7530
  readonly amount?: number;
7510
7531
  }
7511
7532
 
7533
+ interface ShopifyBulkOperationsFinish {
7534
+ readonly admin_graphql_api_id: string;
7535
+ readonly completed_at?: string;
7536
+ readonly created_at: string;
7537
+ readonly error_code?: io.flow.shopify.markets.v0.enums.BulkOperationErrorCode;
7538
+ readonly status: io.flow.shopify.markets.v0.enums.BulkOperationStatus;
7539
+ readonly type: io.flow.shopify.markets.v0.enums.BulkOperationType;
7540
+ }
7541
+
7512
7542
  interface ShopifyCountryHarmonizedSystemCode {
7513
7543
  readonly country_code: string;
7514
7544
  readonly harmonized_system_code: string;
@@ -8578,6 +8608,8 @@ declare namespace io.flow.payment.gateway.v0.models {
8578
8608
  readonly status: io.flow.payment.gateway.v0.models.PaymentAuthorizationStatus;
8579
8609
  readonly amount: number;
8580
8610
  readonly currency: string;
8611
+ readonly base_amount?: number;
8612
+ readonly base_currency?: string;
8581
8613
  }
8582
8614
 
8583
8615
  interface PaymentAuthorizationStatus {
@@ -8589,6 +8621,8 @@ declare namespace io.flow.payment.gateway.v0.models {
8589
8621
  readonly id: string;
8590
8622
  readonly amount: number;
8591
8623
  readonly currency: string;
8624
+ readonly base_amount?: number;
8625
+ readonly base_currency?: string;
8592
8626
  readonly created_at: string;
8593
8627
  readonly updated_at: string;
8594
8628
  readonly status: io.flow.payment.gateway.v0.models.PaymentCaptureStatus;
@@ -8895,6 +8929,8 @@ declare namespace io.flow.payment.gateway.v0.models {
8895
8929
  readonly id: string;
8896
8930
  readonly amount: number;
8897
8931
  readonly currency: string;
8932
+ readonly base_amount?: number;
8933
+ readonly base_currency?: string;
8898
8934
  readonly created_at: string;
8899
8935
  readonly updated_at: string;
8900
8936
  readonly status: io.flow.payment.gateway.v0.models.PaymentRefundStatus;
@@ -8920,6 +8956,8 @@ declare namespace io.flow.payment.gateway.v0.models {
8920
8956
  readonly next_action?: io.flow.payment.gateway.v0.unions.Action;
8921
8957
  readonly amount: number;
8922
8958
  readonly currency: string;
8959
+ readonly base_amount?: number;
8960
+ readonly base_currency?: string;
8923
8961
  readonly order_information: io.flow.payment.gateway.v0.unions.OrderInformation;
8924
8962
  readonly device_details: io.flow.payment.v0.unions.DeviceDetails;
8925
8963
  readonly locale?: string;
@@ -8965,6 +9003,8 @@ declare namespace io.flow.payment.gateway.v0.models {
8965
9003
  readonly id: string;
8966
9004
  readonly amount: number;
8967
9005
  readonly currency: string;
9006
+ readonly base_amount?: number;
9007
+ readonly base_currency?: string;
8968
9008
  readonly created_at: string;
8969
9009
  readonly updated_at: string;
8970
9010
  readonly status: io.flow.payment.gateway.v0.models.PaymentReversalStatus;
@@ -9227,806 +9267,1050 @@ declare namespace io.flow.channel.internal.v0.models {
9227
9267
  }
9228
9268
  }
9229
9269
 
9230
- declare namespace io.flow.payment.internal.v0.enums {
9231
- type AdyenIntegrationType =
9232
- | 'hosted_payment_page'
9233
- | 'checkout_payments_api'
9234
- | 'classic_authorise_api';
9235
- type ChargebackPaymentStatus = 'captured' | 'refunded';
9236
- type ChargebackProcessStatus = 'inquiry' | 'open' | 'closed';
9237
- type HttpMethod = 'get' | 'post';
9238
- type OrganizationCapability = 'organization' | 'flow' | 'dynamic';
9239
- type OrganizationPaymentStatus = 'active' | 'archived';
9240
- type Owner = 'flow' | 'organization';
9241
- type Processor =
9242
- | 'adyen'
9243
- | 'afterpay'
9244
- | 'bitpay'
9245
- | 'stripe'
9246
- | 'paypal'
9247
- | 'flow_sandbox'
9248
- | 'fiserv'
9249
- | 'crypto';
9250
- type ProcessorEntityStatus = 'active' | 'draft' | 'archived';
9251
- type RedirectReason = 'three_d_secure';
9252
- type RiskCheck = 'three_d_secure';
9270
+ declare namespace io.flow.partner.v0.enums {
9271
+ type LabelFormat = 'pdf' | 'zpl' | 'all';
9253
9272
  }
9254
9273
 
9255
- declare namespace io.flow.payment.internal.v0.models {
9256
- interface AdyenAccount {
9257
- readonly discriminator: 'adyen_account';
9258
- readonly id: string;
9259
- readonly organization_id: string;
9260
- readonly key: string;
9261
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9262
- readonly name: string;
9263
- readonly ui_reference: string;
9264
- readonly authentication: io.flow.payment.internal.v0.models.AdyenAuthentication;
9265
- readonly country: string;
9266
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9267
- readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9268
- readonly created_at: string;
9269
- readonly updated_at: string;
9274
+ declare namespace io.flow.partner.v0.models {
9275
+ interface BridgeHub {
9276
+ readonly hub_code: string;
9277
+ readonly address: io.flow.fulfillment.v0.models.ShippingAddress;
9270
9278
  }
9271
9279
 
9272
- interface AdyenAccountModificationForm {
9273
- readonly discriminator: 'adyen_account_modification_form';
9274
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9275
- readonly name: string;
9276
- readonly ui_reference: string;
9277
- readonly country: string;
9278
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9280
+ interface BridgeLabelForm {
9281
+ readonly discriminator: 'bridge_label_form';
9282
+ readonly organization: string;
9283
+ readonly order_number: string;
9284
+ readonly package: io.flow.partner.v0.models.BridgeLabelPackage;
9285
+ readonly hub?: io.flow.partner.v0.models.BridgeHub;
9279
9286
  }
9280
9287
 
9281
- interface AdyenAccountPutForm {
9282
- readonly discriminator: 'adyen_account_put_form';
9283
- readonly owner?: io.flow.payment.internal.v0.enums.Owner;
9284
- readonly name: string;
9285
- readonly ui_reference: string;
9286
- readonly authentication: io.flow.payment.internal.v0.models.AdyenAuthenticationForm;
9287
- readonly country: string;
9288
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9289
- readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
9288
+ interface BridgeLabelPackage {
9289
+ readonly dimensions?: io.flow.common.v0.models.Dimension;
9290
+ readonly items: io.flow.common.v0.models.LineItemForm[];
9291
+ readonly reference_number: string;
9290
9292
  }
9291
9293
 
9292
- interface AdyenAuthentication {
9293
- readonly username: string;
9294
- readonly password_reference: string;
9295
- readonly signature_secret_reference: string;
9294
+ interface DetailedLabelForm {
9295
+ readonly discriminator: 'detailed_label_form';
9296
+ readonly organization: string;
9297
+ readonly destination: io.flow.fulfillment.v0.models.ShippingAddress;
9298
+ readonly order_number: string;
9299
+ readonly origin: io.flow.fulfillment.v0.models.ShippingAddress;
9300
+ readonly package: io.flow.label.v0.models.ShippingLabelPackage;
9301
+ readonly service?: string;
9302
+ readonly references?: string[];
9296
9303
  }
9297
9304
 
9298
- interface AdyenAuthenticationDataReference {
9299
- readonly account_id: string;
9300
- readonly merchant_account: string;
9301
- readonly origin_key?: string;
9302
- readonly integration_type?: io.flow.payment.internal.v0.enums.AdyenIntegrationType;
9305
+ interface Label {
9306
+ readonly id: string;
9307
+ readonly organization: io.flow.partner.v0.models.PartnerOrganizationReference;
9308
+ readonly order_number: string;
9309
+ readonly package: io.flow.label.v0.models.ShippingLabelPackage;
9310
+ readonly carrier_tracking_number: string;
9311
+ readonly carrier_tracking_number_url: string;
9312
+ readonly destination: io.flow.fulfillment.v0.models.ShippingAddress;
9313
+ readonly flow_tracking_number: string;
9314
+ readonly flow_tracking_number_url: string;
9315
+ readonly origin: io.flow.fulfillment.v0.models.ShippingAddress;
9316
+ readonly service: io.flow.fulfillment.v0.models.ServiceSummary;
9317
+ readonly window: io.flow.common.v0.models.DatetimeRange;
9318
+ readonly zpl?: string;
9319
+ readonly pdf?: string;
9320
+ readonly png?: string;
9321
+ readonly commercial_invoice?: string;
9322
+ readonly references?: string[];
9323
+ readonly label?: io.flow.label.v0.models.ShippingLabelDocument;
9324
+ readonly invoice?: io.flow.label.v0.models.ShippingLabelDocument;
9325
+ readonly cost?: io.flow.common.v0.models.Price;
9326
+ readonly shipment_recipient?: io.flow.label.v0.enums.ShipmentRecipient;
9303
9327
  }
9304
9328
 
9305
- interface AdyenAuthenticationForm {
9306
- readonly username: string;
9307
- readonly password: string;
9308
- readonly signature_secret: string;
9329
+ interface PartnerBridgeManifest {
9330
+ readonly id: string;
9331
+ readonly organization: io.flow.partner.v0.models.PartnerOrganizationReference;
9332
+ readonly service: io.flow.fulfillment.v0.models.ServiceSummary;
9333
+ readonly pdf: string;
9334
+ readonly data: string;
9309
9335
  }
9310
9336
 
9311
- interface AdyenMerchant {
9312
- readonly discriminator: 'adyen_merchant';
9313
- readonly id: string;
9337
+ interface PartnerBridgeManifestForm {
9338
+ readonly order_numbers: string[];
9339
+ }
9340
+
9341
+ interface PartnerFulfillment {
9342
+ readonly organization: string;
9314
9343
  readonly key: string;
9315
- readonly organization_id: string;
9316
- readonly external_id: string;
9317
- readonly processor_account_reference: io.flow.payment.internal.v0.models.ProcessorAccountReference;
9318
- readonly country: string;
9319
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9320
- readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9321
- readonly created_at: string;
9322
- readonly updated_at: string;
9344
+ readonly number: string;
9345
+ readonly items: io.flow.order.management.v0.models.FulfillmentItem[];
9346
+ readonly center?: io.flow.fulfillment.v0.models.CenterSummary[];
9323
9347
  }
9324
9348
 
9325
- interface AdyenMerchantModificationForm {
9326
- readonly discriminator: 'adyen_merchant_modification_form';
9327
- readonly external_id: string;
9328
- readonly country: string;
9329
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9349
+ interface PartnerFulfillmentCancellationForm {
9350
+ readonly change_source: io.flow.order.management.v0.enums.OrderChangeSource;
9351
+ readonly reason: io.flow.order.management.v0.enums.CancelReason;
9352
+ readonly lines: io.flow.order.management.v0.models.FulfillmentLineCancelForm[];
9330
9353
  }
9331
9354
 
9332
- interface AdyenMerchantPutForm {
9333
- readonly discriminator: 'adyen_merchant_put_form';
9334
- readonly organization_id: string;
9335
- readonly external_id: string;
9336
- readonly country: string;
9337
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9338
- readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
9355
+ interface PartnerFulfillmentCompleteCancellationForm {
9356
+ readonly change_source: io.flow.order.management.v0.enums.OrderChangeSource;
9357
+ readonly reason: io.flow.order.management.v0.enums.CancelReason;
9339
9358
  }
9340
9359
 
9341
- interface AdyenPaymentDetailsForm {
9342
- readonly fingerprint?: string;
9343
- readonly challenge_result?: string;
9360
+ interface PartnerManifest {
9361
+ readonly id: string;
9362
+ readonly organization: io.flow.partner.v0.models.PartnerOrganizationReference;
9363
+ readonly service?: io.flow.fulfillment.v0.models.ServiceSummary;
9364
+ readonly timestamp: string;
9365
+ readonly shipping_labels: io.flow.label.v0.models.ShippingLabelSummary[];
9366
+ readonly pdf?: string;
9344
9367
  }
9345
9368
 
9346
- interface AdyenRefundForm {
9347
- readonly discriminator: 'adyen_refund_form';
9348
- readonly amount: number;
9349
- readonly authorization_id: string;
9350
- readonly capture_id: string;
9351
- readonly currency: string;
9352
- readonly psp_reference: string;
9353
- readonly key?: string;
9369
+ interface PartnerManifestForm {
9370
+ readonly tracking_numbers: string[];
9371
+ readonly service?: string;
9354
9372
  }
9355
9373
 
9356
- interface AfterpayAccount {
9357
- readonly discriminator: 'afterpay_account';
9374
+ interface PartnerOrderIdentifier {
9358
9375
  readonly id: string;
9359
- readonly organization_id: string;
9360
- readonly key: string;
9361
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9362
- readonly country: string;
9363
- readonly authentication: io.flow.payment.internal.v0.models.AfterpayAuthentication;
9364
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9365
- readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9366
- readonly created_at: string;
9367
- readonly updated_at: string;
9376
+ readonly organization: io.flow.partner.v0.models.PartnerOrganizationReference;
9377
+ readonly order: io.flow.partner.v0.models.PartnerOrderReference;
9378
+ readonly number: string;
9368
9379
  }
9369
9380
 
9370
- interface AfterpayAccountModificationForm {
9371
- readonly discriminator: 'afterpay_account_modification_form';
9372
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9373
- readonly country: string;
9374
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9381
+ interface PartnerOrderIdentifierForm {
9382
+ readonly number: string;
9383
+ readonly order_number: string;
9375
9384
  }
9376
9385
 
9377
- interface AfterpayAccountPutForm {
9378
- readonly discriminator: 'afterpay_account_put_form';
9379
- readonly owner?: io.flow.payment.internal.v0.enums.Owner;
9380
- readonly country: string;
9381
- readonly authentication: io.flow.payment.internal.v0.models.AfterpayAuthenticationForm;
9382
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9383
- readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
9386
+ interface PartnerOrderIdentifierPutForm {
9387
+ readonly order_number: string;
9384
9388
  }
9385
9389
 
9386
- interface AfterpayAuthentication {
9387
- readonly username: string;
9388
- readonly password_reference: string;
9390
+ interface PartnerOrderReference {
9391
+ readonly id: string;
9392
+ readonly number: string;
9389
9393
  }
9390
9394
 
9391
- interface AfterpayAuthenticationDataReference {
9392
- readonly account_id: string;
9395
+ interface PartnerOrganizationReference {
9396
+ readonly id: string;
9393
9397
  }
9394
9398
 
9395
- interface AfterpayAuthenticationForm {
9396
- readonly username: string;
9397
- readonly password: string;
9399
+ interface SummaryLabelForm {
9400
+ readonly discriminator: 'summary_label_form';
9401
+ readonly organization: string;
9402
+ readonly order_number: string;
9403
+ readonly items?: io.flow.common.v0.models.LineItemForm[];
9404
+ readonly package?: io.flow.label.v0.models.ShippingLabelPackage;
9405
+ readonly center_key?: string;
9398
9406
  }
9407
+ }
9399
9408
 
9400
- interface ApplePayAuthorizationPayload {
9401
- readonly discriminator: 'apple_pay_authorization_payload';
9402
- readonly apple_pay_token: string;
9409
+ declare namespace io.flow.partner.v0.unions {
9410
+ type LabelForm =
9411
+ | io.flow.partner.v0.models.DetailedLabelForm
9412
+ | io.flow.partner.v0.models.SummaryLabelForm
9413
+ | io.flow.partner.v0.models.BridgeLabelForm;
9414
+ }
9415
+
9416
+ declare namespace io.flow.common.v0.enums {
9417
+ type AttributeDataType =
9418
+ | 'boolean'
9419
+ | 'integer'
9420
+ | 'decimal'
9421
+ | 'string'
9422
+ | 'json_array';
9423
+ type AvailabilityStatus = 'enabled' | 'disabled';
9424
+ type Calendar = 'weekdays' | 'everyday';
9425
+ type Capability = 'crossdock';
9426
+ type ChangeType = 'insert' | 'update' | 'delete';
9427
+ type CurrencyLabelFormatter =
9428
+ | 'strip_trailing_zeros'
9429
+ | 'symbol_prefix'
9430
+ | 'symbol_suffix';
9431
+ type CurrencySymbolFormat = 'narrow' | 'primary';
9432
+ type DayOfWeek =
9433
+ | 'sunday'
9434
+ | 'monday'
9435
+ | 'tuesday'
9436
+ | 'wednesday'
9437
+ | 'thursday'
9438
+ | 'friday'
9439
+ | 'saturday';
9440
+ type DeliveredDuty = 'paid' | 'unpaid';
9441
+ type DiscountTarget = 'item' | 'shipping';
9442
+ type EntityIdentifierType = 'ioss' | 'voec';
9443
+ type Environment = 'sandbox' | 'production';
9444
+ type ExceptionType = 'open' | 'closed';
9445
+ type GoodsSupply = 'export' | 'intra_community' | 'local';
9446
+ type HolidayCalendar = 'us_bank_holidays' | 'jewish_holidays';
9447
+ type IncludedLevyKey = 'duty' | 'vat' | 'vat_and_duty' | 'none';
9448
+ type Incoterm =
9449
+ | 'EXW'
9450
+ | 'FCA'
9451
+ | 'CPT'
9452
+ | 'CIP'
9453
+ | 'DAT'
9454
+ | 'DAP'
9455
+ | 'DDP'
9456
+ | 'FAS'
9457
+ | 'FOB'
9458
+ | 'CFR'
9459
+ | 'CIF'
9460
+ | 'DAF'
9461
+ | 'DES'
9462
+ | 'DEQ'
9463
+ | 'DDU';
9464
+ type InputSpecificationType = 'text' | 'number';
9465
+ type MarginType = 'fixed' | 'percent';
9466
+ type MeasurementSystem = 'imperial' | 'metric';
9467
+ type MerchantOfRecord = 'flow' | 'organization';
9468
+ type OrderMerchantOfRecord = 'flow' | 'organization' | 'mixed';
9469
+ type OrganizationStatus =
9470
+ | 'active'
9471
+ | 'inactive'
9472
+ | 'deactivated'
9473
+ | 'provisioned';
9474
+ type OrganizationType = 'standalone' | 'channel';
9475
+ type PriceBookStatus = 'draft' | 'published' | 'archived';
9476
+ type Role = 'admin' | 'member';
9477
+ type RoundingMethod = 'up' | 'down' | 'nearest';
9478
+ type RoundingType = 'pattern' | 'multiple';
9479
+ type ScheduleExceptionStatus = 'Open' | 'Closed';
9480
+ type SortDirection = 'ascending' | 'descending';
9481
+ type UnitOfMeasurement =
9482
+ | 'millimeter'
9483
+ | 'centimeter'
9484
+ | 'inch'
9485
+ | 'foot'
9486
+ | 'cubic_inch'
9487
+ | 'cubic_meter'
9488
+ | 'gram'
9489
+ | 'kilogram'
9490
+ | 'meter'
9491
+ | 'ounce'
9492
+ | 'pound';
9493
+ type UnitOfTime = 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute';
9494
+ type UserStatus = 'pending' | 'active' | 'inactive';
9495
+ type ValueAddedService = 'Hazardous Material';
9496
+ type Visibility = 'public' | 'private';
9497
+ }
9498
+
9499
+ declare namespace io.flow.common.v0.models {
9500
+ interface Address {
9501
+ readonly text?: string;
9502
+ readonly streets?: string[];
9503
+ readonly street_number?: string;
9504
+ readonly city?: string;
9505
+ readonly province?: string;
9506
+ readonly postal?: string;
9507
+ readonly country?: string;
9508
+ readonly latitude?: string;
9509
+ readonly longitude?: string;
9403
9510
  }
9404
9511
 
9405
- interface AuthenticationForm {
9406
- readonly password: string;
9512
+ interface BillingAddress {
9513
+ readonly name?: io.flow.common.v0.models.Name;
9514
+ readonly streets?: string[];
9515
+ readonly city?: string;
9516
+ readonly province?: string;
9517
+ readonly postal?: string;
9518
+ readonly country?: string;
9519
+ readonly company?: string;
9407
9520
  }
9408
9521
 
9409
- interface AuthorizationBundle {
9522
+ interface CatalogItemReference {
9410
9523
  readonly id: string;
9411
- readonly organization_id: string;
9412
- readonly authorization_reference: io.flow.payment.v0.models.AuthorizationReference;
9413
- readonly payment_request_reference: io.flow.payment.gateway.v0.models.PaymentRequestReference;
9414
- readonly billing?: io.flow.payment.request.bundle.v0.models.PaymentRequestBilling;
9524
+ readonly number: string;
9415
9525
  }
9416
9526
 
9417
- interface AuthorizationMetadata {
9418
- readonly limit?: number;
9527
+ interface CatalogItemSummary {
9528
+ readonly number: string;
9529
+ readonly name: string;
9530
+ readonly attributes: Record<string, string>;
9419
9531
  }
9420
9532
 
9421
- interface AuthorizationParameters {
9422
- readonly method: string;
9423
- readonly parameters: any /*object*/;
9533
+ interface ChannelReference {
9534
+ readonly id: string;
9424
9535
  }
9425
9536
 
9426
- interface AuthorizationParametersForm {
9427
- readonly order_number: string;
9428
- readonly amount: number;
9429
- readonly currency: string;
9430
- readonly billing_address?: io.flow.common.v0.models.BillingAddress;
9431
- readonly ip?: string;
9432
- readonly origin_url?: string;
9537
+ interface CheckoutReference {
9538
+ readonly id: string;
9433
9539
  }
9434
9540
 
9435
- interface BitpayAccount {
9436
- readonly discriminator: 'bitpay_account';
9437
- readonly id: string;
9438
- readonly organization_id: string;
9439
- readonly key: string;
9440
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9441
- readonly authentication: io.flow.payment.internal.v0.models.BitpayAuthentication;
9442
- readonly country: string;
9443
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9444
- readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9445
- readonly created_at: string;
9446
- readonly updated_at: string;
9541
+ interface Contact {
9542
+ readonly name: io.flow.common.v0.models.Name;
9543
+ readonly company?: string;
9544
+ readonly email?: string;
9545
+ readonly phone?: string;
9447
9546
  }
9448
9547
 
9449
- interface BitpayAccountModificationForm {
9450
- readonly discriminator: 'bitpay_account_modification_form';
9451
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9452
- readonly country: string;
9453
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9548
+ interface CustomerInvoice {
9549
+ readonly address?: io.flow.common.v0.models.BillingAddress;
9454
9550
  }
9455
9551
 
9456
- interface BitpayAccountPutForm {
9457
- readonly discriminator: 'bitpay_account_put_form';
9458
- readonly owner?: io.flow.payment.internal.v0.enums.Owner;
9459
- readonly authentication: io.flow.payment.internal.v0.models.BitpayAuthenticationForm;
9460
- readonly country: string;
9461
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9462
- readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
9552
+ interface CustomerReference {
9553
+ readonly number: string;
9463
9554
  }
9464
9555
 
9465
- interface BitpayAuthentication {
9466
- readonly api_token: string;
9467
- readonly public_key: string;
9468
- readonly secret_key_reference: string;
9556
+ interface DatetimeRange {
9557
+ readonly from: string;
9558
+ readonly to: string;
9469
9559
  }
9470
9560
 
9471
- interface BitpayAuthenticationDataReference {
9472
- readonly id: string;
9561
+ interface Dimension {
9562
+ readonly depth?: io.flow.common.v0.models.Measurement;
9563
+ readonly diameter?: io.flow.common.v0.models.Measurement;
9564
+ readonly length?: io.flow.common.v0.models.Measurement;
9565
+ readonly weight?: io.flow.common.v0.models.Measurement;
9566
+ readonly width?: io.flow.common.v0.models.Measurement;
9473
9567
  }
9474
9568
 
9475
- interface BitpayAuthenticationForm {
9476
- readonly api_token: string;
9477
- readonly public_key: string;
9478
- readonly secret_key: string;
9569
+ interface Dimensions {
9570
+ readonly product?: io.flow.common.v0.models.Dimension;
9571
+ readonly packaging?: io.flow.common.v0.models.Dimension;
9479
9572
  }
9480
9573
 
9481
- interface Chargeback {
9482
- readonly id: string;
9483
- readonly key: string;
9484
- readonly authorization: io.flow.payment.v0.models.AuthorizationReference;
9485
- readonly amount: number;
9486
- readonly currency: string;
9487
- readonly base?: io.flow.common.v0.models.Money;
9488
- readonly chargeback_issued_at: string;
9489
- readonly created_at: string;
9490
- readonly payment_status: io.flow.payment.internal.v0.enums.ChargebackPaymentStatus;
9491
- readonly process_status: io.flow.payment.internal.v0.enums.ChargebackProcessStatus;
9492
- readonly processor: io.flow.payment.internal.v0.enums.Processor;
9493
- readonly processor_reason: string;
9494
- readonly processor_status: string;
9495
- readonly processor_reference?: string;
9496
- readonly provider_reference?: string;
9497
- readonly provider_reason_code?: string;
9574
+ interface DiscountForm {
9575
+ readonly offer: io.flow.common.v0.unions.DiscountOffer;
9576
+ readonly target?: io.flow.common.v0.enums.DiscountTarget;
9577
+ readonly label?: string;
9498
9578
  }
9499
9579
 
9500
- interface ChargebackVersion {
9501
- readonly id: string;
9502
- readonly timestamp: string;
9503
- readonly type: io.flow.common.v0.enums.ChangeType;
9504
- readonly chargeback: io.flow.payment.internal.v0.models.Chargeback;
9580
+ interface DiscountOfferFixed {
9581
+ readonly discriminator: 'discount_offer_fixed';
9582
+ readonly money: io.flow.common.v0.models.Money;
9505
9583
  }
9506
9584
 
9507
- interface Cipher {
9508
- readonly id: string;
9509
- readonly attributes: Record<string, string>;
9585
+ interface DiscountOfferPercent {
9586
+ readonly discriminator: 'discount_offer_percent';
9587
+ readonly percent: number;
9510
9588
  }
9511
9589
 
9512
- interface CipherForm {
9513
- readonly text: string;
9514
- readonly attributes?: Record<string, string>;
9515
- readonly password?: string;
9590
+ interface DiscountsForm {
9591
+ readonly discounts: io.flow.common.v0.models.DiscountForm[];
9516
9592
  }
9517
9593
 
9518
- interface CipherReference {
9519
- readonly id: string;
9594
+ interface Duration {
9595
+ readonly unit: io.flow.common.v0.enums.UnitOfTime;
9596
+ readonly value: number;
9520
9597
  }
9521
9598
 
9522
- interface ClassicPaymentRedirectForm {
9523
- readonly MD: string;
9524
- readonly PaRes: string;
9599
+ interface EntityIdentifier {
9600
+ readonly name: io.flow.common.v0.enums.EntityIdentifierType;
9601
+ readonly number: string;
9602
+ readonly issuing_country?: string;
9525
9603
  }
9526
9604
 
9527
- interface CryptoAccount {
9528
- readonly discriminator: 'crypto_account';
9605
+ interface Exception {
9606
+ readonly type: io.flow.common.v0.enums.ExceptionType;
9607
+ readonly datetime_range: io.flow.common.v0.models.DatetimeRange;
9608
+ }
9609
+
9610
+ interface ExperienceSummary {
9529
9611
  readonly id: string;
9530
- readonly organization_id: string;
9531
9612
  readonly key: string;
9532
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9533
- readonly authentication: io.flow.payment.internal.v0.models.CryptoAuthentication;
9534
- readonly country: string;
9535
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9536
- readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9537
- readonly created_at: string;
9538
- readonly updated_at: string;
9613
+ readonly name: string;
9614
+ readonly country?: string;
9615
+ readonly currency?: string;
9616
+ readonly language?: string;
9539
9617
  }
9540
9618
 
9541
- interface CryptoAccountModificationForm {
9542
- readonly discriminator: 'crypto_account_modification_form';
9543
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9544
- readonly country: string;
9545
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9619
+ interface IncludedLevies {
9620
+ readonly key: io.flow.common.v0.enums.IncludedLevyKey;
9621
+ readonly label: string;
9546
9622
  }
9547
9623
 
9548
- interface CryptoAccountPutForm {
9549
- readonly discriminator: 'crypto_account_put_form';
9550
- readonly owner?: io.flow.payment.internal.v0.enums.Owner;
9551
- readonly authentication: io.flow.payment.internal.v0.models.CryptoAuthenticationForm;
9552
- readonly country: string;
9553
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9554
- readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
9624
+ interface InputForm {
9625
+ readonly values?: Record<string, string>;
9555
9626
  }
9556
9627
 
9557
- interface CryptoAuthentication {
9558
- readonly public_key: string;
9559
- readonly secret_key_reference: string;
9560
- readonly signature_secret_reference: string;
9628
+ interface InputFormSpecification {
9629
+ readonly inputs?: io.flow.common.v0.models.InputSpecification[];
9630
+ readonly limitations?: io.flow.common.v0.models.InputSpecificationLimitations;
9561
9631
  }
9562
9632
 
9563
- interface CryptoAuthenticationForm {
9564
- readonly public_key: string;
9565
- readonly secret_key: string;
9566
- readonly signature_secret: string;
9633
+ interface InputSpecification {
9634
+ readonly type: io.flow.common.v0.enums.InputSpecificationType;
9635
+ readonly name: string;
9636
+ readonly display_text?: string;
9567
9637
  }
9568
9638
 
9569
- interface DecryptCipherForm {
9570
- readonly id: string;
9571
- readonly password: string;
9639
+ interface InputSpecificationLimitationMax {
9640
+ readonly discriminator: 'input_specification_limitation_max';
9641
+ readonly max: number;
9572
9642
  }
9573
9643
 
9574
- interface DecryptedCipher {
9575
- readonly id: string;
9576
- readonly cleartext: string;
9644
+ interface InputSpecificationLimitations {
9645
+ readonly limitations?: io.flow.common.v0.unions.InputSpecificationLimitation[];
9646
+ }
9647
+
9648
+ interface ItemReference {
9649
+ readonly number: string;
9650
+ }
9651
+
9652
+ interface LineItem {
9653
+ readonly number: string;
9654
+ readonly quantity: number;
9655
+ readonly price: io.flow.common.v0.models.Money;
9577
9656
  readonly attributes: Record<string, string>;
9657
+ readonly center?: string;
9658
+ readonly discount?: io.flow.common.v0.models.Money;
9578
9659
  }
9579
9660
 
9580
- interface Encryption {
9581
- readonly id: string;
9582
- readonly key: io.flow.payment.internal.v0.models.KeyReference;
9583
- readonly iv: string;
9584
- readonly cipher: string;
9585
- readonly passphrase_ids: string[];
9661
+ interface LineItemAttributesForm {
9662
+ readonly attributes: Record<string, string>;
9586
9663
  }
9587
9664
 
9588
- interface FinancialMerchantCategory {
9589
- readonly id: string;
9590
- readonly iso_18245_4: string;
9591
- readonly title: string;
9592
- readonly category_group: string;
9593
- readonly description?: string;
9665
+ interface LineItemForm {
9666
+ readonly number: string;
9667
+ readonly quantity: number;
9668
+ readonly shipment_estimate?: io.flow.common.v0.models.DatetimeRange;
9669
+ readonly price?: io.flow.common.v0.models.Money;
9670
+ readonly attributes?: Record<string, string>;
9671
+ readonly center?: string;
9672
+ readonly discount?: io.flow.common.v0.models.Money;
9673
+ readonly discounts?: io.flow.common.v0.models.DiscountsForm;
9594
9674
  }
9595
9675
 
9596
- interface FiservAccount {
9597
- readonly discriminator: 'fiserv_account';
9598
- readonly id: string;
9599
- readonly organization_id: string;
9600
- readonly key: string;
9601
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9602
- readonly region: string;
9603
- readonly authentication: io.flow.payment.internal.v0.models.FiservAuthentication;
9604
- readonly country: string;
9605
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9606
- readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9607
- readonly created_at: string;
9608
- readonly updated_at: string;
9676
+ interface LineItemQuantityForm {
9677
+ readonly quantity: number;
9609
9678
  }
9610
9679
 
9611
- interface FiservAccountModificationForm {
9612
- readonly discriminator: 'fiserv_account_modification_form';
9613
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9614
- readonly region: string;
9615
- readonly country: string;
9616
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9680
+ interface LogoImageSetStatic {
9681
+ readonly discriminator: 'static';
9682
+ readonly small?: io.flow.common.v0.models.LogoImageStatic;
9683
+ readonly medium: io.flow.common.v0.models.LogoImageStatic;
9684
+ readonly large?: io.flow.common.v0.models.LogoImageStatic;
9617
9685
  }
9618
9686
 
9619
- interface FiservAccountPutForm {
9620
- readonly discriminator: 'fiserv_account_put_form';
9621
- readonly owner?: io.flow.payment.internal.v0.enums.Owner;
9622
- readonly region: string;
9623
- readonly authentication: io.flow.payment.internal.v0.models.FiservAuthenticationForm;
9624
- readonly country: string;
9625
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9626
- readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
9687
+ interface LogoImageStatic {
9688
+ readonly url: string;
9689
+ readonly width: number;
9690
+ readonly height: number;
9627
9691
  }
9628
9692
 
9629
- interface FiservAuthentication {
9630
- readonly public_key: string;
9631
- readonly secret_key_reference: string;
9693
+ interface LogoImageSvg {
9694
+ readonly discriminator: 'svg';
9695
+ readonly url: string;
9632
9696
  }
9633
9697
 
9634
- interface FiservAuthenticationDataReference {
9635
- readonly account_id: string;
9636
- readonly store_id: string;
9698
+ interface Margin {
9699
+ readonly type: io.flow.common.v0.enums.MarginType;
9700
+ readonly value: number;
9637
9701
  }
9638
9702
 
9639
- interface FiservAuthenticationForm {
9640
- readonly public_key: string;
9641
- readonly secret_key: string;
9703
+ interface Measurement {
9704
+ readonly value: string;
9705
+ readonly units: io.flow.common.v0.enums.UnitOfMeasurement;
9642
9706
  }
9643
9707
 
9644
- interface FiservMerchant {
9645
- readonly discriminator: 'fiserv_merchant';
9646
- readonly id: string;
9647
- readonly key: string;
9648
- readonly organization_id: string;
9649
- readonly external_id: string;
9650
- readonly processor_account_reference: io.flow.payment.internal.v0.models.ProcessorAccountReference;
9651
- readonly base_currency: string;
9652
- readonly funding_currency: string;
9708
+ interface MerchantOfRecordEntity {
9709
+ readonly organization: io.flow.common.v0.models.OrganizationReference;
9710
+ readonly name: string;
9711
+ readonly vat?: io.flow.common.v0.models.MerchantOfRecordEntityRegistration;
9712
+ readonly identifiers?: io.flow.common.v0.models.EntityIdentifier[];
9713
+ readonly streets: string[];
9714
+ readonly city: string;
9715
+ readonly province?: string;
9716
+ readonly postal?: string;
9653
9717
  readonly country: string;
9654
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9655
- readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9656
- readonly created_at: string;
9657
- readonly updated_at: string;
9718
+ readonly phone?: string;
9719
+ readonly email?: string;
9658
9720
  }
9659
9721
 
9660
- interface FiservMerchantModificationForm {
9661
- readonly discriminator: 'fiserv_merchant_modification_form';
9662
- readonly external_id: string;
9663
- readonly base_currency: string;
9664
- readonly funding_currency: string;
9722
+ interface MerchantOfRecordEntityRegistration {
9723
+ readonly number: string;
9665
9724
  readonly country: string;
9666
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9667
9725
  }
9668
9726
 
9669
- interface FiservMerchantPutForm {
9670
- readonly discriminator: 'fiserv_merchant_put_form';
9671
- readonly organization_id: string;
9672
- readonly external_id: string;
9673
- readonly base_currency: string;
9674
- readonly funding_currency: string;
9675
- readonly country: string;
9676
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9677
- readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
9727
+ interface Money {
9728
+ readonly amount: number;
9729
+ readonly currency: string;
9678
9730
  }
9679
9731
 
9680
- interface InternalAdyenAuthorizationDetails {
9681
- readonly discriminator: 'internal_adyen_authorization_details';
9682
- readonly adyen_authentication_data: io.flow.payment.internal.v0.models.AdyenAuthenticationDataReference;
9732
+ interface MoneyWithBase {
9733
+ readonly currency: string;
9734
+ readonly amount: number;
9735
+ readonly base: io.flow.common.v0.models.Money;
9683
9736
  }
9684
9737
 
9685
- interface InternalAfterpayAuthorizationDetails {
9686
- readonly discriminator: 'internal_afterpay_authorization_details';
9687
- readonly afterpay_authentication_data: io.flow.payment.internal.v0.models.AfterpayAuthenticationDataReference;
9738
+ interface MoneyWithOptionalBase {
9739
+ readonly currency: string;
9740
+ readonly amount: number;
9741
+ readonly base?: io.flow.common.v0.models.Money;
9688
9742
  }
9689
9743
 
9690
- interface InternalBitpayAuthorizationDetails {
9691
- readonly discriminator: 'internal_bitpay_authorization_details';
9692
- readonly bitpay_authentication_data: io.flow.payment.internal.v0.models.BitpayAuthenticationDataReference;
9744
+ interface Name {
9745
+ readonly first?: string;
9746
+ readonly last?: string;
9693
9747
  }
9694
9748
 
9695
- interface InternalFiservAuthorizationDetails {
9696
- readonly discriminator: 'internal_fiserv_authorization_details';
9697
- readonly fiserv_authentication_data: io.flow.payment.internal.v0.models.FiservAuthenticationDataReference;
9749
+ interface OrderCustomer {
9750
+ readonly name: io.flow.common.v0.models.Name;
9751
+ readonly number?: string;
9752
+ readonly phone?: string;
9753
+ readonly email?: string;
9754
+ readonly address?: io.flow.common.v0.models.BillingAddress;
9755
+ readonly invoice?: io.flow.common.v0.models.CustomerInvoice;
9698
9756
  }
9699
9757
 
9700
- interface InternalPaymentRequest {
9701
- readonly payment_request: io.flow.payment.gateway.v0.models.PaymentRequest;
9702
- readonly actual_action?: io.flow.payment.gateway.v0.unions.Action;
9758
+ interface OrderCustomerForm {
9759
+ readonly name?: io.flow.common.v0.models.Name;
9760
+ readonly number?: string;
9761
+ readonly phone?: string;
9762
+ readonly email?: string;
9763
+ readonly address?: io.flow.common.v0.models.BillingAddress;
9764
+ readonly invoice?: io.flow.common.v0.models.CustomerInvoice;
9703
9765
  }
9704
9766
 
9705
- interface InternalPaypalAuthorizationDetails {
9706
- readonly discriminator: 'internal_paypal_authorization_details';
9707
- readonly paypal_authentication_data: io.flow.payment.internal.v0.models.PaypalAccountReference;
9767
+ interface Organization {
9768
+ readonly discriminator: 'organization';
9769
+ readonly id: string;
9770
+ readonly name: string;
9771
+ readonly environment: io.flow.common.v0.enums.Environment;
9772
+ readonly parent?: io.flow.common.v0.models.OrganizationReference;
9773
+ readonly defaults?: io.flow.common.v0.models.OrganizationDefaults;
9774
+ readonly created_at?: string;
9775
+ readonly status?: io.flow.common.v0.enums.OrganizationStatus;
9776
+ readonly type?: io.flow.common.v0.enums.OrganizationType;
9708
9777
  }
9709
9778
 
9710
- interface InternalStripeAuthorizationDetails {
9711
- readonly discriminator: 'internal_stripe_authorization_details';
9712
- readonly stripe_authentication_data: io.flow.payment.internal.v0.models.StripeAuthenticationDataReference;
9779
+ interface OrganizationDefaults {
9780
+ readonly country: string;
9781
+ readonly base_currency: string;
9782
+ readonly language: string;
9783
+ readonly locale: string;
9784
+ readonly timezone: string;
9713
9785
  }
9714
9786
 
9715
- interface InternalTransactionDetailsCard {
9716
- readonly type: 'card';
9717
- readonly address_verification_result?: io.flow.payment.v0.models.AddressVerificationResult;
9718
- readonly cvv_result?: io.flow.payment.v0.models.CvvResult;
9719
- readonly network_details?: io.flow.payment.v0.models.TransactionNetworkDetailsCard;
9787
+ interface OrganizationReference {
9788
+ readonly discriminator: 'organization_reference';
9789
+ readonly id: string;
9720
9790
  }
9721
9791
 
9722
- interface Key {
9792
+ interface OrganizationSummary {
9723
9793
  readonly id: string;
9724
- readonly created_at: string;
9794
+ readonly name: string;
9795
+ readonly environment: io.flow.common.v0.enums.Environment;
9725
9796
  }
9726
9797
 
9727
- interface KeyReference {
9798
+ interface PartnerReference {
9728
9799
  readonly id: string;
9729
9800
  }
9730
9801
 
9731
- interface KlarnaAuthorizationParameters {
9732
- readonly discriminator: 'klarna_authorization_parameters';
9733
- readonly client_token: string;
9734
- readonly payment_method_categories: io.flow.payment.internal.v0.models.KlarnaPaymentMethodCategory[];
9802
+ interface Price {
9803
+ readonly amount: number;
9804
+ readonly currency: string;
9805
+ readonly label: string;
9735
9806
  }
9736
9807
 
9737
- interface KlarnaPaymentMethodCategory {
9738
- readonly id: string;
9739
- readonly name?: string;
9740
- readonly standard_asset_urls?: string;
9741
- readonly descriptive_asset_urls?: string;
9808
+ interface PriceForm {
9809
+ readonly amount: number;
9810
+ readonly currency: string;
9742
9811
  }
9743
9812
 
9744
- interface OnlineAuthorizationCompleted {
9745
- readonly discriminator: 'online_authorization_completed';
9813
+ interface PriceSourceCatalog {
9814
+ readonly discriminator: 'catalog';
9815
+ readonly price: io.flow.common.v0.models.Money;
9816
+ }
9817
+
9818
+ interface PriceSourcePriceBook {
9819
+ readonly discriminator: 'price_book';
9820
+ readonly price: io.flow.common.v0.models.Money;
9821
+ readonly includes: io.flow.common.v0.models.IncludedLevies;
9822
+ readonly price_book_reference: io.flow.common.v0.models.PriceSourcePriceBookReference;
9823
+ }
9824
+
9825
+ interface PriceSourcePriceBookReference {
9746
9826
  readonly id: string;
9747
- readonly organization: string;
9748
9827
  readonly key: string;
9749
- readonly expires_at: string;
9750
9828
  }
9751
9829
 
9752
- interface OrganizationPaymentSetting {
9753
- readonly id: string;
9754
- readonly organization_id: string;
9755
- readonly default_capture_option: io.flow.payment.gateway.v0.unions.PaymentCaptureOption;
9756
- readonly status: io.flow.payment.internal.v0.enums.OrganizationPaymentStatus;
9757
- readonly checkout_domain?: string;
9758
- readonly merchant_category_code?: string;
9759
- readonly payment_statement_suffix?: string;
9760
- readonly payment_statement_condensed?: string;
9761
- readonly created_at: string;
9762
- readonly updated_at: string;
9830
+ interface PriceSourceProvided {
9831
+ readonly discriminator: 'provided';
9832
+ readonly price: io.flow.common.v0.models.Money;
9763
9833
  }
9764
9834
 
9765
- interface OrganizationPaymentSettingForm {
9766
- readonly default_capture_option: io.flow.payment.gateway.v0.unions.PaymentCaptureOption;
9767
- readonly status: io.flow.payment.internal.v0.enums.OrganizationPaymentStatus;
9768
- readonly checkout_domain?: string;
9769
- readonly merchant_category_code?: string;
9770
- readonly payment_statement_suffix?: string;
9835
+ interface PriceWithBase {
9836
+ readonly currency: string;
9837
+ readonly amount: number;
9838
+ readonly label: string;
9839
+ readonly base?: io.flow.common.v0.models.Price;
9771
9840
  }
9772
9841
 
9773
- interface OrganizationPaymentSettingVersion {
9774
- readonly id: string;
9775
- readonly timestamp: string;
9776
- readonly type: io.flow.common.v0.enums.ChangeType;
9777
- readonly organization_payment_setting: io.flow.payment.internal.v0.models.OrganizationPaymentSetting;
9842
+ interface RepeatDaily {
9843
+ readonly discriminator: 'repeat_daily';
9844
+ readonly interval: number;
9778
9845
  }
9779
9846
 
9780
- interface Passphrase {
9781
- readonly id: string;
9782
- readonly tribe: io.flow.payment.internal.v0.models.Tribe;
9783
- readonly salt: string;
9784
- readonly iv: string;
9785
- readonly challenge_cipher: string;
9786
- readonly challenge_text: string;
9847
+ interface RepeatHourly {
9848
+ readonly discriminator: 'repeat_hourly';
9849
+ readonly interval: number;
9787
9850
  }
9788
9851
 
9789
- interface PassphraseForm {
9790
- readonly tribe: string;
9791
- readonly current_password?: string;
9792
- readonly new_password: string;
9852
+ interface RepeatMonthly {
9853
+ readonly discriminator: 'repeat_monthly';
9854
+ readonly interval: number;
9855
+ readonly days: number[];
9793
9856
  }
9794
9857
 
9795
- interface PassphraseSummary {
9796
- readonly id: string;
9797
- readonly tribe: io.flow.payment.internal.v0.models.Tribe;
9858
+ interface RepeatWeekly {
9859
+ readonly discriminator: 'repeat_weekly';
9860
+ readonly interval: number;
9861
+ readonly days_of_week: io.flow.common.v0.enums.DayOfWeek[];
9798
9862
  }
9799
9863
 
9800
- interface PaymentMethodDetail {
9801
- readonly method: io.flow.reference.v0.models.PaymentMethod;
9802
- readonly method_options?: io.flow.payment.internal.v0.models.PaymentMethodOption[];
9864
+ interface Rounding {
9865
+ readonly type: io.flow.common.v0.enums.RoundingType;
9866
+ readonly method: io.flow.common.v0.enums.RoundingMethod;
9867
+ readonly value: number;
9803
9868
  }
9804
9869
 
9805
- interface PaymentMethodOption {
9806
- readonly id: string;
9807
- readonly name: string;
9808
- readonly logo?: io.flow.common.v0.unions.LogoImage;
9870
+ interface Schedule {
9871
+ readonly calendar?: io.flow.common.v0.enums.Calendar;
9872
+ readonly holiday: io.flow.common.v0.enums.HolidayCalendar;
9873
+ readonly exception: io.flow.common.v0.models.Exception[];
9874
+ readonly cutoff?: string;
9875
+ readonly min_lead_time?: number;
9876
+ readonly max_lead_time?: number;
9809
9877
  }
9810
9878
 
9811
- interface PaymentOrganizationSettings {
9879
+ interface SessionReference {
9812
9880
  readonly id: string;
9813
- readonly enable_auto_capture: boolean;
9814
- readonly link_capture_to_vcc: boolean;
9815
- readonly purge_ciphers: boolean;
9816
- readonly domain?: string;
9817
- readonly merchant_category_code?: number;
9818
- readonly payment_statement_suffix?: string;
9819
- readonly payment_statement_condensed?: string;
9820
9881
  }
9821
9882
 
9822
- interface PaymentOrganizationSettingsPutForm {
9823
- readonly enable_auto_capture?: boolean;
9824
- readonly link_capture_to_vcc?: boolean;
9825
- readonly purge_ciphers?: boolean;
9826
- readonly domain?: string;
9827
- readonly merchant_category_code?: number;
9828
- readonly payment_statement_suffix?: string;
9883
+ interface User {
9884
+ readonly discriminator: 'user';
9885
+ readonly id: string;
9886
+ readonly email?: string;
9887
+ readonly name: io.flow.common.v0.models.Name;
9888
+ readonly status: io.flow.common.v0.enums.UserStatus;
9829
9889
  }
9830
9890
 
9831
- interface PaypalAccount {
9832
- readonly discriminator: 'paypal_account';
9891
+ interface UserReference {
9892
+ readonly discriminator: 'user_reference';
9833
9893
  readonly id: string;
9834
- readonly organization_id: string;
9835
- readonly key: string;
9836
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9837
- readonly country: string;
9838
- readonly authentication: io.flow.payment.internal.v0.models.PaypalAuthentication;
9839
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9840
- readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9841
- readonly created_at: string;
9842
- readonly updated_at: string;
9843
9894
  }
9844
9895
 
9845
- interface PaypalAccountModificationForm {
9846
- readonly discriminator: 'paypal_account_modification_form';
9847
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9896
+ interface Zone {
9897
+ readonly postals?: string[];
9898
+ readonly provinces?: string[];
9848
9899
  readonly country: string;
9849
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9850
9900
  }
9901
+ }
9851
9902
 
9852
- interface PaypalAccountPutForm {
9853
- readonly discriminator: 'paypal_account_put_form';
9854
- readonly owner?: io.flow.payment.internal.v0.enums.Owner;
9855
- readonly country: string;
9856
- readonly authentication: io.flow.payment.internal.v0.models.PaypalAuthenticationForm;
9857
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9858
- readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
9859
- }
9903
+ declare namespace io.flow.common.v0.unions {
9904
+ type DiscountOffer =
9905
+ | io.flow.common.v0.models.DiscountOfferFixed
9906
+ | io.flow.common.v0.models.DiscountOfferPercent;
9907
+ type ExpandableOrganization =
9908
+ | io.flow.common.v0.models.Organization
9909
+ | io.flow.common.v0.models.OrganizationReference;
9910
+ type ExpandableUser =
9911
+ | io.flow.common.v0.models.User
9912
+ | io.flow.common.v0.models.UserReference;
9913
+ type InputSpecificationLimitation =
9914
+ io.flow.common.v0.models.InputSpecificationLimitationMax;
9915
+ type LogoImage =
9916
+ | io.flow.common.v0.models.LogoImageSvg
9917
+ | io.flow.common.v0.models.LogoImageSetStatic;
9918
+ type PriceSource =
9919
+ | io.flow.common.v0.models.PriceSourcePriceBook
9920
+ | io.flow.common.v0.models.PriceSourceCatalog
9921
+ | io.flow.common.v0.models.PriceSourceProvided;
9922
+ type RepeatSchedule =
9923
+ | io.flow.common.v0.models.RepeatHourly
9924
+ | io.flow.common.v0.models.RepeatDaily
9925
+ | io.flow.common.v0.models.RepeatWeekly
9926
+ | io.flow.common.v0.models.RepeatMonthly;
9927
+ }
9860
9928
 
9861
- interface PaypalAccountReference {
9862
- readonly id: string;
9863
- readonly flow_merchant_id?: string;
9864
- }
9929
+ declare namespace io.flow.billing.reporting.v0.enums {
9930
+ type ReportStatus =
9931
+ | 'created'
9932
+ | 'completed'
9933
+ | 'completed_no_records'
9934
+ | 'failed';
9935
+ type ReportType =
9936
+ | 'sales_record'
9937
+ | 'trueup_overview'
9938
+ | 'non_channel_payment_bank_account';
9939
+ type ReportingFulfillmentIsVirtual = 'all' | 'mixed' | 'none';
9940
+ type RevenueRecordType = 'sales' | 'refund';
9941
+ }
9865
9942
 
9866
- interface PaypalAuthentication {
9867
- readonly username: string;
9868
- readonly password_reference: string;
9943
+ declare namespace io.flow.billing.reporting.v0.models {
9944
+ interface FulfillmentShopperBreakdown {
9945
+ readonly shipping: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
9946
+ readonly fees: io.flow.billing.reporting.v0.models.ReportingShopperFees;
9947
+ readonly product: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
9948
+ readonly subtotal: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
9949
+ readonly tax: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
9950
+ readonly duty: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
9951
+ readonly discount: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
9952
+ readonly total: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
9869
9953
  }
9870
9954
 
9871
- interface PaypalAuthenticationForm {
9872
- readonly username: string;
9873
- readonly password: string;
9955
+ interface MarkedAsFinal {
9956
+ readonly products: boolean;
9957
+ readonly shipping: boolean;
9874
9958
  }
9875
9959
 
9876
- interface PaypalAuthorizationPayload {
9877
- readonly discriminator: 'paypal_authorization_payload';
9878
- readonly payment_id: string;
9879
- readonly payer_id: string;
9960
+ interface NonChannelPaymentBankAccount {
9961
+ readonly payment: io.flow.billing.reporting.v0.models.ReportPayment;
9962
+ readonly bank_account: io.flow.billing.reporting.v0.models.ReportBankAccount;
9963
+ readonly account: io.flow.billing.reporting.v0.models.ReportAccount;
9880
9964
  }
9881
9965
 
9882
- interface PaypalMerchant {
9883
- readonly discriminator: 'paypal_merchant';
9966
+ interface RecordReference {
9884
9967
  readonly id: string;
9885
- readonly key: string;
9886
- readonly organization_id: string;
9887
- readonly external_id: string;
9888
- readonly processor_account_reference: io.flow.payment.internal.v0.models.ProcessorAccountReference;
9889
- readonly country: string;
9890
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9891
- readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9892
- readonly created_at: string;
9893
- readonly updated_at: string;
9894
9968
  }
9895
9969
 
9896
- interface PaypalMerchantModificationForm {
9897
- readonly discriminator: 'paypal_merchant_modification_form';
9898
- readonly external_id: string;
9899
- readonly country: string;
9900
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9970
+ interface Report {
9971
+ readonly id: string;
9972
+ readonly status: io.flow.billing.reporting.v0.enums.ReportStatus;
9973
+ readonly type: io.flow.billing.reporting.v0.enums.ReportType;
9974
+ readonly from: string;
9975
+ readonly to: string;
9976
+ readonly url?: string;
9977
+ readonly processed_at?: string;
9901
9978
  }
9902
9979
 
9903
- interface PaypalMerchantPutForm {
9904
- readonly discriminator: 'paypal_merchant_put_form';
9905
- readonly organization_id: string;
9906
- readonly external_id: string;
9907
- readonly country: string;
9908
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9909
- readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
9980
+ interface ReportAccount {
9981
+ readonly id: string;
9982
+ readonly source: io.flow.billing.internal.v0.models.AccountSource;
9910
9983
  }
9911
9984
 
9912
- interface ProcessorAccountReference {
9985
+ interface ReportBankAccount {
9986
+ readonly id?: string;
9987
+ readonly last4?: string;
9988
+ }
9989
+
9990
+ interface ReportForm {
9991
+ readonly from: string;
9992
+ readonly to: string;
9993
+ readonly type: io.flow.billing.reporting.v0.enums.ReportType;
9994
+ }
9995
+
9996
+ interface ReportPayment {
9913
9997
  readonly id: string;
9914
- readonly organization_id: string;
9915
- readonly key: string;
9916
- readonly processor: io.flow.payment.internal.v0.enums.Processor;
9917
- readonly country: string;
9918
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9919
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9920
- readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9998
+ readonly created_at: string;
9921
9999
  }
9922
10000
 
9923
- interface ProcessorEntityStatusForm {
9924
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10001
+ interface ReportingAuthorizationReference {
10002
+ readonly id: string;
9925
10003
  }
9926
10004
 
9927
- interface ProcessorMerchantReference {
10005
+ interface ReportingBusiness {
10006
+ readonly vat_registration_number: string;
10007
+ readonly name?: string;
10008
+ }
10009
+
10010
+ interface ReportingConversionRates {
10011
+ readonly merchant: number;
10012
+ readonly entity: number;
10013
+ readonly usd: number;
10014
+ readonly eur: number;
10015
+ }
10016
+
10017
+ interface ReportingCountry {
10018
+ readonly code: string;
10019
+ readonly is_eu: boolean;
10020
+ }
10021
+
10022
+ interface ReportingCurrencies {
10023
+ readonly transaction: string;
10024
+ readonly merchant: string;
10025
+ readonly entity: string;
10026
+ }
10027
+
10028
+ interface ReportingDebug {
10029
+ readonly console_order_link: string;
10030
+ readonly allocation_order_totals_delta?: number;
10031
+ readonly allocation_order_item_discount_delta?: number;
10032
+ readonly missing_item_subsidies?: io.flow.billing.reporting.v0.models.ReportingDebugMissingSubsidies;
10033
+ readonly missing_shipping_subsidies?: io.flow.billing.reporting.v0.models.ReportingDebugMissingSubsidies;
10034
+ }
10035
+
10036
+ interface ReportingDebugMissingSubsidies {
10037
+ readonly price?: boolean;
10038
+ readonly tax?: boolean;
10039
+ readonly duty?: boolean;
10040
+ }
10041
+
10042
+ interface ReportingDestination {
10043
+ readonly country: io.flow.billing.reporting.v0.models.ReportingCountry;
10044
+ readonly province?: io.flow.billing.reporting.v0.models.ReportingProvince;
10045
+ }
10046
+
10047
+ interface ReportingEntity {
9928
10048
  readonly id: string;
9929
- readonly organization_id: string;
9930
- readonly key: string;
9931
- readonly processor: io.flow.payment.internal.v0.enums.Processor;
9932
- readonly country: string;
9933
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9934
- readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9935
10049
  }
9936
10050
 
9937
- interface Redirect {
10051
+ interface ReportingFulfillment {
9938
10052
  readonly id: string;
9939
- readonly post_payment_redirect_urls: io.flow.payment.v0.models.PostPaymentRedirectUrls;
9940
- readonly reason: io.flow.payment.internal.v0.enums.RedirectReason;
10053
+ readonly sequence_number: number;
10054
+ readonly fulfilled_at: string;
10055
+ readonly completes_order: boolean;
10056
+ readonly payment: io.flow.billing.reporting.v0.models.ReportingPayment;
10057
+ readonly refund?: io.flow.billing.reporting.v0.models.ReportingRefundReference;
10058
+ readonly value: io.flow.billing.reporting.v0.models.FulfillmentShopperBreakdown;
10059
+ readonly dispatch_country?: io.flow.billing.reporting.v0.models.ReportingCountry;
10060
+ readonly destination?: io.flow.billing.reporting.v0.models.ReportingDestination;
10061
+ readonly shipment?: io.flow.billing.reporting.v0.models.ReportingShipment;
10062
+ readonly is: io.flow.billing.reporting.v0.models.ReportingFulfillmentIs;
10063
+ readonly has: io.flow.billing.reporting.v0.models.ReportingFulfillmentHas;
10064
+ readonly fx: io.flow.billing.reporting.v0.models.ReportingFx;
10065
+ readonly business?: io.flow.billing.reporting.v0.models.ReportingBusiness;
9941
10066
  }
9942
10067
 
9943
- interface RedirectActionCompleted {
9944
- readonly discriminator: 'redirect_action_completed';
10068
+ interface ReportingFulfillmentHas {
10069
+ readonly zero_vat_product: boolean;
10070
+ }
10071
+
10072
+ interface ReportingFulfillmentIs {
10073
+ readonly replacement: boolean;
10074
+ readonly virtual: io.flow.billing.reporting.v0.enums.ReportingFulfillmentIsVirtual;
10075
+ readonly duties_guaranteed: boolean;
10076
+ readonly wyol: boolean;
10077
+ readonly b2b: boolean;
10078
+ readonly domestic: boolean;
10079
+ }
10080
+
10081
+ interface ReportingFx {
10082
+ readonly shipping: io.flow.billing.reporting.v0.models.ReportingUsd;
10083
+ readonly fees: io.flow.billing.reporting.v0.models.ReportingUsd;
10084
+ readonly product: io.flow.billing.reporting.v0.models.ReportingUsd;
10085
+ readonly tax: io.flow.billing.reporting.v0.models.ReportingUsd;
10086
+ readonly duty: io.flow.billing.reporting.v0.models.ReportingUsd;
10087
+ readonly total: io.flow.billing.reporting.v0.models.ReportingUsd;
10088
+ }
10089
+
10090
+ interface ReportingMerchantBreakdown {
10091
+ readonly subsidies: io.flow.billing.reporting.v0.models.ReportingMerchantSubsidies;
10092
+ readonly fees: io.flow.billing.reporting.v0.models.ReportingMerchantFees;
10093
+ readonly transactions: io.flow.billing.reporting.v0.models.ReportingMerchantTransactions;
10094
+ }
10095
+
10096
+ interface ReportingMerchantFees {
10097
+ readonly duty_guarantee: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10098
+ readonly mor: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10099
+ readonly fraud: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10100
+ readonly fx: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10101
+ readonly processing: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10102
+ readonly rate_lock: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10103
+ readonly transfer: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10104
+ }
10105
+
10106
+ interface ReportingMerchantSubsidies {
10107
+ readonly shipping: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10108
+ readonly tax: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10109
+ readonly duty: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10110
+ readonly ccf: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10111
+ }
10112
+
10113
+ interface ReportingMerchantTransactions {
10114
+ readonly adjustment: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10115
+ readonly reversal: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10116
+ readonly tax: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10117
+ readonly duty: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10118
+ readonly freight: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10119
+ readonly refund: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10120
+ }
10121
+
10122
+ interface ReportingMonetaryValue {
10123
+ readonly transaction: number;
10124
+ readonly merchant: number;
10125
+ readonly entity: number;
10126
+ readonly usd: number;
10127
+ readonly eur: number;
10128
+ }
10129
+
10130
+ interface ReportingOrderSummary {
9945
10131
  readonly id: string;
9946
- readonly organization: string;
9947
- readonly key: string;
9948
- readonly expires_at: string;
9949
- readonly post_payment_redirect_urls: io.flow.payment.v0.models.PostPaymentRedirectUrls;
9950
- readonly inline_notification_urls?: io.flow.payment.v0.models.PostPaymentRedirectUrls;
10132
+ readonly number: string;
10133
+ readonly submitted_at: string;
9951
10134
  }
9952
10135
 
9953
- interface RoutingAccount {
9954
- readonly discriminator: 'routing_account';
9955
- readonly processor: io.flow.payment.internal.v0.enums.Processor;
9956
- readonly processor_account: io.flow.payment.internal.v0.models.ProcessorAccountReference;
10136
+ interface ReportingOrganizationSummary {
10137
+ readonly id: string;
10138
+ readonly name: string;
9957
10139
  }
9958
10140
 
9959
- interface RoutingMerchant {
9960
- readonly discriminator: 'routing_merchant';
9961
- readonly processor: io.flow.payment.internal.v0.enums.Processor;
9962
- readonly processor_account: io.flow.payment.internal.v0.models.ProcessorAccountReference;
9963
- readonly processor_merchant: io.flow.payment.internal.v0.models.ProcessorMerchantReference;
10141
+ interface ReportingPayment {
10142
+ readonly metadata?: io.flow.billing.reporting.v0.models.ReportingPaymentMetadata;
10143
+ readonly psp: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10144
+ readonly credit: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10145
+ readonly total: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
9964
10146
  }
9965
10147
 
9966
- interface RoutingProcessor {
9967
- readonly discriminator: 'routing_processor';
9968
- readonly processor: io.flow.payment.internal.v0.enums.Processor;
10148
+ interface ReportingPaymentMetadata {
10149
+ readonly gateway: io.flow.payment.internal.v0.enums.Processor;
10150
+ readonly method: string;
10151
+ readonly psp_reference?: string;
10152
+ readonly authorization?: io.flow.billing.reporting.v0.models.ReportingAuthorizationReference;
10153
+ readonly settlement_date: string;
10154
+ readonly additional_authorizations?: io.flow.billing.reporting.v0.models.ReportingPaymentMetadataAdditionalAuthorizations;
9969
10155
  }
9970
10156
 
9971
- interface StripeAccount {
9972
- readonly discriminator: 'stripe_account';
10157
+ interface ReportingPaymentMetadataAdditionalAuthorizations {
10158
+ readonly ids: string;
10159
+ }
10160
+
10161
+ interface ReportingProvince {
10162
+ readonly code?: string;
10163
+ readonly name: string;
10164
+ }
10165
+
10166
+ interface ReportingReconciliation {
10167
+ readonly date: string;
10168
+ readonly month: number;
10169
+ readonly year: number;
10170
+ }
10171
+
10172
+ interface ReportingRefundReference {
10173
+ readonly id: string;
10174
+ }
10175
+
10176
+ interface ReportingShipment {
10177
+ readonly carrier: string;
10178
+ readonly tracking_number?: string;
10179
+ }
10180
+
10181
+ interface ReportingShopperFees {
10182
+ readonly fuel: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10183
+ readonly remote_area: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10184
+ readonly oversize: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10185
+ readonly ccf: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10186
+ readonly emergency: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10187
+ readonly peak: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
10188
+ }
10189
+
10190
+ interface ReportingUsd {
10191
+ readonly usd: number;
10192
+ }
10193
+
10194
+ interface ReportingVatRemittance {
10195
+ readonly currency: string;
10196
+ readonly rate: io.flow.billing.reporting.v0.models.ReportingVatRemittanceRate;
10197
+ }
10198
+
10199
+ interface ReportingVatRemittanceRate {
10200
+ readonly entity: number;
10201
+ }
10202
+
10203
+ interface ReportingVendor {
10204
+ readonly id: string;
10205
+ }
10206
+
10207
+ interface RevenueRecord {
10208
+ readonly id: string;
10209
+ readonly organization: io.flow.billing.reporting.v0.models.ReportingOrganizationSummary;
10210
+ readonly parent?: io.flow.billing.reporting.v0.models.RecordReference;
10211
+ readonly type: io.flow.billing.reporting.v0.enums.RevenueRecordType;
10212
+ readonly order: io.flow.billing.reporting.v0.models.ReportingOrderSummary;
10213
+ readonly entity: io.flow.billing.reporting.v0.models.ReportingEntity;
10214
+ readonly vendor: io.flow.billing.reporting.v0.models.ReportingVendor;
10215
+ readonly currencies: io.flow.billing.reporting.v0.models.ReportingCurrencies;
10216
+ readonly conversion_rate: io.flow.billing.reporting.v0.models.ReportingConversionRates;
10217
+ readonly reconciliation: io.flow.billing.reporting.v0.models.ReportingReconciliation;
10218
+ readonly merchant: io.flow.billing.reporting.v0.models.ReportingMerchantBreakdown;
10219
+ readonly fulfillment: io.flow.billing.reporting.v0.models.ReportingFulfillment;
10220
+ readonly vat_remittance: io.flow.billing.reporting.v0.models.ReportingVatRemittance;
10221
+ readonly marked_as_final: io.flow.billing.reporting.v0.models.MarkedAsFinal;
10222
+ readonly debug: io.flow.billing.reporting.v0.models.ReportingDebug;
10223
+ }
10224
+ }
10225
+
10226
+ declare namespace io.flow.payment.internal.v0.enums {
10227
+ type AdyenIntegrationType =
10228
+ | 'hosted_payment_page'
10229
+ | 'checkout_payments_api'
10230
+ | 'classic_authorise_api';
10231
+ type ChargebackPaymentStatus = 'captured' | 'refunded';
10232
+ type ChargebackProcessStatus = 'inquiry' | 'open' | 'closed';
10233
+ type HttpMethod = 'get' | 'post';
10234
+ type OrganizationCapability = 'organization' | 'flow' | 'dynamic';
10235
+ type OrganizationPaymentStatus = 'active' | 'archived';
10236
+ type Owner = 'flow' | 'organization';
10237
+ type Processor =
10238
+ | 'adyen'
10239
+ | 'afterpay'
10240
+ | 'bitpay'
10241
+ | 'stripe'
10242
+ | 'paypal'
10243
+ | 'flow_sandbox'
10244
+ | 'fiserv'
10245
+ | 'crypto';
10246
+ type ProcessorEntityStatus = 'active' | 'draft' | 'archived';
10247
+ type RedirectReason = 'three_d_secure';
10248
+ type RiskCheck = 'three_d_secure';
10249
+ }
10250
+
10251
+ declare namespace io.flow.payment.internal.v0.models {
10252
+ interface AdyenAccount {
10253
+ readonly discriminator: 'adyen_account';
9973
10254
  readonly id: string;
9974
10255
  readonly organization_id: string;
9975
10256
  readonly key: string;
9976
10257
  readonly owner: io.flow.payment.internal.v0.enums.Owner;
9977
10258
  readonly name: string;
9978
- readonly external_id: string;
10259
+ readonly ui_reference: string;
10260
+ readonly authentication: io.flow.payment.internal.v0.models.AdyenAuthentication;
9979
10261
  readonly country: string;
9980
- readonly authentication: io.flow.payment.internal.v0.models.StripeAuthentication;
9981
10262
  readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9982
10263
  readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9983
10264
  readonly created_at: string;
9984
10265
  readonly updated_at: string;
9985
10266
  }
9986
10267
 
9987
- interface StripeAccountModificationForm {
9988
- readonly discriminator: 'stripe_account_modification_form';
10268
+ interface AdyenAccountModificationForm {
10269
+ readonly discriminator: 'adyen_account_modification_form';
9989
10270
  readonly owner: io.flow.payment.internal.v0.enums.Owner;
9990
10271
  readonly name: string;
9991
- readonly external_id: string;
10272
+ readonly ui_reference: string;
9992
10273
  readonly country: string;
9993
10274
  readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9994
10275
  }
9995
10276
 
9996
- interface StripeAccountPutForm {
9997
- readonly discriminator: 'stripe_account_put_form';
10277
+ interface AdyenAccountPutForm {
10278
+ readonly discriminator: 'adyen_account_put_form';
9998
10279
  readonly owner?: io.flow.payment.internal.v0.enums.Owner;
9999
10280
  readonly name: string;
10000
- readonly external_id: string;
10281
+ readonly ui_reference: string;
10282
+ readonly authentication: io.flow.payment.internal.v0.models.AdyenAuthenticationForm;
10001
10283
  readonly country: string;
10002
- readonly authentication: io.flow.payment.internal.v0.models.StripeAuthenticationForm;
10003
10284
  readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10004
10285
  readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
10005
10286
  }
10006
10287
 
10007
- interface StripeAuthentication {
10008
- readonly public_key: string;
10009
- readonly secret_key_reference: string;
10288
+ interface AdyenAuthentication {
10289
+ readonly username: string;
10290
+ readonly password_reference: string;
10291
+ readonly signature_secret_reference: string;
10010
10292
  }
10011
10293
 
10012
- interface StripeAuthenticationDataReference {
10013
- readonly id: string;
10294
+ interface AdyenAuthenticationDataReference {
10295
+ readonly account_id: string;
10296
+ readonly merchant_account: string;
10297
+ readonly origin_key?: string;
10298
+ readonly integration_type?: io.flow.payment.internal.v0.enums.AdyenIntegrationType;
10014
10299
  }
10015
10300
 
10016
- interface StripeAuthenticationForm {
10017
- readonly public_key: string;
10018
- readonly secret_key: string;
10301
+ interface AdyenAuthenticationForm {
10302
+ readonly username: string;
10303
+ readonly password: string;
10304
+ readonly signature_secret: string;
10019
10305
  }
10020
10306
 
10021
- interface StripeMerchant {
10022
- readonly discriminator: 'stripe_merchant';
10307
+ interface AdyenMerchant {
10308
+ readonly discriminator: 'adyen_merchant';
10023
10309
  readonly id: string;
10024
10310
  readonly key: string;
10025
10311
  readonly organization_id: string;
10026
10312
  readonly external_id: string;
10027
10313
  readonly processor_account_reference: io.flow.payment.internal.v0.models.ProcessorAccountReference;
10028
- readonly name: string;
10029
- readonly account_type: io.flow.stripe.v0.enums.AccountType;
10030
10314
  readonly country: string;
10031
10315
  readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10032
10316
  readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
@@ -10034,775 +10318,828 @@ declare namespace io.flow.payment.internal.v0.models {
10034
10318
  readonly updated_at: string;
10035
10319
  }
10036
10320
 
10037
- interface StripeMerchantForm {
10038
- readonly discriminator: 'stripe_merchant_form';
10039
- readonly key?: string;
10040
- readonly organization_id: string;
10041
- readonly name: string;
10042
- readonly account_type: io.flow.stripe.v0.enums.AccountType;
10043
- readonly country: string;
10044
- readonly payment_statement: string;
10045
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10046
- }
10047
-
10048
- interface StripeMerchantModificationForm {
10049
- readonly discriminator: 'stripe_merchant_modification_form';
10321
+ interface AdyenMerchantModificationForm {
10322
+ readonly discriminator: 'adyen_merchant_modification_form';
10050
10323
  readonly external_id: string;
10051
- readonly name: string;
10052
- readonly account_type: io.flow.stripe.v0.enums.AccountType;
10053
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10054
10324
  readonly country: string;
10325
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10055
10326
  }
10056
10327
 
10057
- interface StripeMerchantPutForm {
10058
- readonly discriminator: 'stripe_merchant_put_form';
10328
+ interface AdyenMerchantPutForm {
10329
+ readonly discriminator: 'adyen_merchant_put_form';
10059
10330
  readonly organization_id: string;
10060
10331
  readonly external_id: string;
10061
- readonly name: string;
10062
- readonly account_type: io.flow.stripe.v0.enums.AccountType;
10063
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10064
10332
  readonly country: string;
10333
+ readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10065
10334
  readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
10066
10335
  }
10067
10336
 
10068
- interface Tribe {
10069
- readonly id: string;
10070
- readonly description: string;
10337
+ interface AdyenPaymentDetailsForm {
10338
+ readonly fingerprint?: string;
10339
+ readonly challenge_result?: string;
10071
10340
  }
10072
10341
 
10073
- interface VirtualCardProvider {
10342
+ interface AdyenRefundForm {
10343
+ readonly discriminator: 'adyen_refund_form';
10344
+ readonly amount: number;
10345
+ readonly authorization_id: string;
10346
+ readonly capture_id: string;
10347
+ readonly currency: string;
10348
+ readonly psp_reference: string;
10349
+ readonly key?: string;
10350
+ }
10351
+
10352
+ interface AfterpayAccount {
10353
+ readonly discriminator: 'afterpay_account';
10074
10354
  readonly id: string;
10075
10355
  readonly organization_id: string;
10076
- readonly provider: string;
10077
- readonly attributes?: Record<string, string>;
10356
+ readonly key: string;
10357
+ readonly owner: io.flow.payment.internal.v0.enums.Owner;
10358
+ readonly country: string;
10359
+ readonly authentication: io.flow.payment.internal.v0.models.AfterpayAuthentication;
10360
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10361
+ readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
10078
10362
  readonly created_at: string;
10079
10363
  readonly updated_at: string;
10080
10364
  }
10081
- }
10082
-
10083
- declare namespace io.flow.payment.internal.v0.unions {
10084
- type AuthorizationPayload =
10085
- | io.flow.payment.internal.v0.models.ApplePayAuthorizationPayload
10086
- | io.flow.payment.internal.v0.models.PaypalAuthorizationPayload;
10087
- type InlineAuthorizationParameters =
10088
- io.flow.payment.internal.v0.models.KlarnaAuthorizationParameters;
10089
- type InternalAuthorizationDetails =
10090
- | io.flow.payment.internal.v0.models.InternalPaypalAuthorizationDetails
10091
- | io.flow.payment.internal.v0.models.InternalBitpayAuthorizationDetails
10092
- | io.flow.payment.internal.v0.models.InternalStripeAuthorizationDetails
10093
- | io.flow.payment.internal.v0.models.InternalAdyenAuthorizationDetails
10094
- | io.flow.payment.internal.v0.models.InternalAfterpayAuthorizationDetails
10095
- | io.flow.payment.internal.v0.models.InternalFiservAuthorizationDetails;
10096
- type InternalRefundForm = io.flow.payment.internal.v0.models.AdyenRefundForm;
10097
- type InternalTransactionDetails =
10098
- io.flow.payment.internal.v0.models.InternalTransactionDetailsCard;
10099
- type PaymentRedirect =
10100
- | io.flow.payment.internal.v0.models.OnlineAuthorizationCompleted
10101
- | io.flow.payment.internal.v0.models.RedirectActionCompleted;
10102
- type ProcessorAccount =
10103
- | io.flow.payment.internal.v0.models.StripeAccount
10104
- | io.flow.payment.internal.v0.models.AdyenAccount
10105
- | io.flow.payment.internal.v0.models.PaypalAccount
10106
- | io.flow.payment.internal.v0.models.AfterpayAccount
10107
- | io.flow.payment.internal.v0.models.BitpayAccount
10108
- | io.flow.payment.internal.v0.models.FiservAccount
10109
- | io.flow.payment.internal.v0.models.CryptoAccount;
10110
- type ProcessorAccountModificationForm =
10111
- | io.flow.payment.internal.v0.models.StripeAccountModificationForm
10112
- | io.flow.payment.internal.v0.models.AdyenAccountModificationForm
10113
- | io.flow.payment.internal.v0.models.PaypalAccountModificationForm
10114
- | io.flow.payment.internal.v0.models.AfterpayAccountModificationForm
10115
- | io.flow.payment.internal.v0.models.BitpayAccountModificationForm
10116
- | io.flow.payment.internal.v0.models.FiservAccountModificationForm
10117
- | io.flow.payment.internal.v0.models.CryptoAccountModificationForm;
10118
- type ProcessorAccountPutForm =
10119
- | io.flow.payment.internal.v0.models.StripeAccountPutForm
10120
- | io.flow.payment.internal.v0.models.AdyenAccountPutForm
10121
- | io.flow.payment.internal.v0.models.PaypalAccountPutForm
10122
- | io.flow.payment.internal.v0.models.AfterpayAccountPutForm
10123
- | io.flow.payment.internal.v0.models.BitpayAccountPutForm
10124
- | io.flow.payment.internal.v0.models.FiservAccountPutForm
10125
- | io.flow.payment.internal.v0.models.CryptoAccountPutForm;
10126
- type ProcessorMerchant =
10127
- | io.flow.payment.internal.v0.models.StripeMerchant
10128
- | io.flow.payment.internal.v0.models.AdyenMerchant
10129
- | io.flow.payment.internal.v0.models.FiservMerchant
10130
- | io.flow.payment.internal.v0.models.PaypalMerchant;
10131
- type ProcessorMerchantForm =
10132
- io.flow.payment.internal.v0.models.StripeMerchantForm;
10133
- type ProcessorMerchantModificationForm =
10134
- | io.flow.payment.internal.v0.models.StripeMerchantModificationForm
10135
- | io.flow.payment.internal.v0.models.AdyenMerchantModificationForm
10136
- | io.flow.payment.internal.v0.models.FiservMerchantModificationForm
10137
- | io.flow.payment.internal.v0.models.PaypalMerchantModificationForm;
10138
- type ProcessorMerchantPutForm =
10139
- | io.flow.payment.internal.v0.models.StripeMerchantPutForm
10140
- | io.flow.payment.internal.v0.models.AdyenMerchantPutForm
10141
- | io.flow.payment.internal.v0.models.FiservMerchantPutForm
10142
- | io.flow.payment.internal.v0.models.PaypalMerchantPutForm;
10143
- type RoutingEntity =
10144
- | io.flow.payment.internal.v0.models.RoutingProcessor
10145
- | io.flow.payment.internal.v0.models.RoutingAccount
10146
- | io.flow.payment.internal.v0.models.RoutingMerchant;
10147
- }
10148
10365
 
10149
- declare namespace io.flow.partner.v0.enums {
10150
- type LabelFormat = 'pdf' | 'zpl' | 'all';
10151
- }
10366
+ interface AfterpayAccountModificationForm {
10367
+ readonly discriminator: 'afterpay_account_modification_form';
10368
+ readonly owner: io.flow.payment.internal.v0.enums.Owner;
10369
+ readonly country: string;
10370
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10371
+ }
10152
10372
 
10153
- declare namespace io.flow.partner.v0.models {
10154
- interface BridgeHub {
10155
- readonly hub_code: string;
10156
- readonly address: io.flow.fulfillment.v0.models.ShippingAddress;
10373
+ interface AfterpayAccountPutForm {
10374
+ readonly discriminator: 'afterpay_account_put_form';
10375
+ readonly owner?: io.flow.payment.internal.v0.enums.Owner;
10376
+ readonly country: string;
10377
+ readonly authentication: io.flow.payment.internal.v0.models.AfterpayAuthenticationForm;
10378
+ readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10379
+ readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
10157
10380
  }
10158
10381
 
10159
- interface BridgeLabelForm {
10160
- readonly discriminator: 'bridge_label_form';
10161
- readonly organization: string;
10162
- readonly order_number: string;
10163
- readonly package: io.flow.partner.v0.models.BridgeLabelPackage;
10164
- readonly hub?: io.flow.partner.v0.models.BridgeHub;
10382
+ interface AfterpayAuthentication {
10383
+ readonly username: string;
10384
+ readonly password_reference: string;
10165
10385
  }
10166
10386
 
10167
- interface BridgeLabelPackage {
10168
- readonly dimensions?: io.flow.common.v0.models.Dimension;
10169
- readonly items: io.flow.common.v0.models.LineItemForm[];
10170
- readonly reference_number: string;
10387
+ interface AfterpayAuthenticationDataReference {
10388
+ readonly account_id: string;
10171
10389
  }
10172
10390
 
10173
- interface DetailedLabelForm {
10174
- readonly discriminator: 'detailed_label_form';
10175
- readonly organization: string;
10176
- readonly destination: io.flow.fulfillment.v0.models.ShippingAddress;
10177
- readonly order_number: string;
10178
- readonly origin: io.flow.fulfillment.v0.models.ShippingAddress;
10179
- readonly package: io.flow.label.v0.models.ShippingLabelPackage;
10180
- readonly service?: string;
10181
- readonly references?: string[];
10391
+ interface AfterpayAuthenticationForm {
10392
+ readonly username: string;
10393
+ readonly password: string;
10182
10394
  }
10183
10395
 
10184
- interface Label {
10185
- readonly id: string;
10186
- readonly organization: io.flow.partner.v0.models.PartnerOrganizationReference;
10187
- readonly order_number: string;
10188
- readonly package: io.flow.label.v0.models.ShippingLabelPackage;
10189
- readonly carrier_tracking_number: string;
10190
- readonly carrier_tracking_number_url: string;
10191
- readonly destination: io.flow.fulfillment.v0.models.ShippingAddress;
10192
- readonly flow_tracking_number: string;
10193
- readonly flow_tracking_number_url: string;
10194
- readonly origin: io.flow.fulfillment.v0.models.ShippingAddress;
10195
- readonly service: io.flow.fulfillment.v0.models.ServiceSummary;
10196
- readonly window: io.flow.common.v0.models.DatetimeRange;
10197
- readonly zpl?: string;
10198
- readonly pdf?: string;
10199
- readonly png?: string;
10200
- readonly commercial_invoice?: string;
10201
- readonly references?: string[];
10202
- readonly label?: io.flow.label.v0.models.ShippingLabelDocument;
10203
- readonly invoice?: io.flow.label.v0.models.ShippingLabelDocument;
10204
- readonly cost?: io.flow.common.v0.models.Price;
10205
- readonly shipment_recipient?: io.flow.label.v0.enums.ShipmentRecipient;
10396
+ interface ApplePayAuthorizationPayload {
10397
+ readonly discriminator: 'apple_pay_authorization_payload';
10398
+ readonly apple_pay_token: string;
10206
10399
  }
10207
10400
 
10208
- interface PartnerBridgeManifest {
10209
- readonly id: string;
10210
- readonly organization: io.flow.partner.v0.models.PartnerOrganizationReference;
10211
- readonly service: io.flow.fulfillment.v0.models.ServiceSummary;
10212
- readonly pdf: string;
10213
- readonly data: string;
10401
+ interface AuthenticationForm {
10402
+ readonly password: string;
10214
10403
  }
10215
10404
 
10216
- interface PartnerBridgeManifestForm {
10217
- readonly order_numbers: string[];
10405
+ interface AuthorizationBundle {
10406
+ readonly id: string;
10407
+ readonly organization_id: string;
10408
+ readonly authorization_reference: io.flow.payment.v0.models.AuthorizationReference;
10409
+ readonly payment_request_reference: io.flow.payment.gateway.v0.models.PaymentRequestReference;
10410
+ readonly billing?: io.flow.payment.request.bundle.v0.models.PaymentRequestBilling;
10218
10411
  }
10219
10412
 
10220
- interface PartnerFulfillment {
10221
- readonly organization: string;
10222
- readonly key: string;
10223
- readonly number: string;
10224
- readonly items: io.flow.order.management.v0.models.FulfillmentItem[];
10225
- readonly center?: io.flow.fulfillment.v0.models.CenterSummary[];
10413
+ interface AuthorizationMetadata {
10414
+ readonly limit?: number;
10226
10415
  }
10227
10416
 
10228
- interface PartnerFulfillmentCancellationForm {
10229
- readonly change_source: io.flow.order.management.v0.enums.OrderChangeSource;
10230
- readonly reason: io.flow.order.management.v0.enums.CancelReason;
10231
- readonly lines: io.flow.order.management.v0.models.FulfillmentLineCancelForm[];
10417
+ interface AuthorizationParameters {
10418
+ readonly method: string;
10419
+ readonly parameters: any /*object*/;
10232
10420
  }
10233
10421
 
10234
- interface PartnerFulfillmentCompleteCancellationForm {
10235
- readonly change_source: io.flow.order.management.v0.enums.OrderChangeSource;
10236
- readonly reason: io.flow.order.management.v0.enums.CancelReason;
10422
+ interface AuthorizationParametersForm {
10423
+ readonly order_number: string;
10424
+ readonly amount: number;
10425
+ readonly currency: string;
10426
+ readonly billing_address?: io.flow.common.v0.models.BillingAddress;
10427
+ readonly ip?: string;
10428
+ readonly origin_url?: string;
10237
10429
  }
10238
10430
 
10239
- interface PartnerManifest {
10431
+ interface BitpayAccount {
10432
+ readonly discriminator: 'bitpay_account';
10240
10433
  readonly id: string;
10241
- readonly organization: io.flow.partner.v0.models.PartnerOrganizationReference;
10242
- readonly service?: io.flow.fulfillment.v0.models.ServiceSummary;
10243
- readonly timestamp: string;
10244
- readonly shipping_labels: io.flow.label.v0.models.ShippingLabelSummary[];
10245
- readonly pdf?: string;
10434
+ readonly organization_id: string;
10435
+ readonly key: string;
10436
+ readonly owner: io.flow.payment.internal.v0.enums.Owner;
10437
+ readonly authentication: io.flow.payment.internal.v0.models.BitpayAuthentication;
10438
+ readonly country: string;
10439
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10440
+ readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
10441
+ readonly created_at: string;
10442
+ readonly updated_at: string;
10246
10443
  }
10247
10444
 
10248
- interface PartnerManifestForm {
10249
- readonly tracking_numbers: string[];
10250
- readonly service?: string;
10445
+ interface BitpayAccountModificationForm {
10446
+ readonly discriminator: 'bitpay_account_modification_form';
10447
+ readonly owner: io.flow.payment.internal.v0.enums.Owner;
10448
+ readonly country: string;
10449
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10251
10450
  }
10252
10451
 
10253
- interface PartnerOrderIdentifier {
10452
+ interface BitpayAccountPutForm {
10453
+ readonly discriminator: 'bitpay_account_put_form';
10454
+ readonly owner?: io.flow.payment.internal.v0.enums.Owner;
10455
+ readonly authentication: io.flow.payment.internal.v0.models.BitpayAuthenticationForm;
10456
+ readonly country: string;
10457
+ readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10458
+ readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
10459
+ }
10460
+
10461
+ interface BitpayAuthentication {
10462
+ readonly api_token: string;
10463
+ readonly public_key: string;
10464
+ readonly secret_key_reference: string;
10465
+ }
10466
+
10467
+ interface BitpayAuthenticationDataReference {
10254
10468
  readonly id: string;
10255
- readonly organization: io.flow.partner.v0.models.PartnerOrganizationReference;
10256
- readonly order: io.flow.partner.v0.models.PartnerOrderReference;
10257
- readonly number: string;
10258
10469
  }
10259
10470
 
10260
- interface PartnerOrderIdentifierForm {
10261
- readonly number: string;
10262
- readonly order_number: string;
10471
+ interface BitpayAuthenticationForm {
10472
+ readonly api_token: string;
10473
+ readonly public_key: string;
10474
+ readonly secret_key: string;
10263
10475
  }
10264
10476
 
10265
- interface PartnerOrderIdentifierPutForm {
10266
- readonly order_number: string;
10477
+ interface Chargeback {
10478
+ readonly id: string;
10479
+ readonly key: string;
10480
+ readonly authorization: io.flow.payment.v0.models.AuthorizationReference;
10481
+ readonly amount: number;
10482
+ readonly currency: string;
10483
+ readonly base?: io.flow.common.v0.models.Money;
10484
+ readonly chargeback_issued_at: string;
10485
+ readonly created_at: string;
10486
+ readonly payment_status: io.flow.payment.internal.v0.enums.ChargebackPaymentStatus;
10487
+ readonly process_status: io.flow.payment.internal.v0.enums.ChargebackProcessStatus;
10488
+ readonly processor: io.flow.payment.internal.v0.enums.Processor;
10489
+ readonly processor_reason: string;
10490
+ readonly processor_status: string;
10491
+ readonly processor_reference?: string;
10492
+ readonly provider_reference?: string;
10493
+ readonly provider_reason_code?: string;
10267
10494
  }
10268
10495
 
10269
- interface PartnerOrderReference {
10496
+ interface ChargebackVersion {
10270
10497
  readonly id: string;
10271
- readonly number: string;
10498
+ readonly timestamp: string;
10499
+ readonly type: io.flow.common.v0.enums.ChangeType;
10500
+ readonly chargeback: io.flow.payment.internal.v0.models.Chargeback;
10272
10501
  }
10273
10502
 
10274
- interface PartnerOrganizationReference {
10503
+ interface Cipher {
10275
10504
  readonly id: string;
10505
+ readonly attributes: Record<string, string>;
10276
10506
  }
10277
10507
 
10278
- interface SummaryLabelForm {
10279
- readonly discriminator: 'summary_label_form';
10280
- readonly organization: string;
10281
- readonly order_number: string;
10282
- readonly items?: io.flow.common.v0.models.LineItemForm[];
10283
- readonly package?: io.flow.label.v0.models.ShippingLabelPackage;
10284
- readonly center_key?: string;
10508
+ interface CipherForm {
10509
+ readonly text: string;
10510
+ readonly attributes?: Record<string, string>;
10511
+ readonly password?: string;
10285
10512
  }
10286
- }
10287
10513
 
10288
- declare namespace io.flow.partner.v0.unions {
10289
- type LabelForm =
10290
- | io.flow.partner.v0.models.DetailedLabelForm
10291
- | io.flow.partner.v0.models.SummaryLabelForm
10292
- | io.flow.partner.v0.models.BridgeLabelForm;
10293
- }
10514
+ interface CipherReference {
10515
+ readonly id: string;
10516
+ }
10294
10517
 
10295
- declare namespace io.flow.common.v0.enums {
10296
- type AttributeDataType =
10297
- | 'boolean'
10298
- | 'integer'
10299
- | 'decimal'
10300
- | 'string'
10301
- | 'json_array';
10302
- type AvailabilityStatus = 'enabled' | 'disabled';
10303
- type Calendar = 'weekdays' | 'everyday';
10304
- type Capability = 'crossdock';
10305
- type ChangeType = 'insert' | 'update' | 'delete';
10306
- type CurrencyLabelFormatter =
10307
- | 'strip_trailing_zeros'
10308
- | 'symbol_prefix'
10309
- | 'symbol_suffix';
10310
- type CurrencySymbolFormat = 'narrow' | 'primary';
10311
- type DayOfWeek =
10312
- | 'sunday'
10313
- | 'monday'
10314
- | 'tuesday'
10315
- | 'wednesday'
10316
- | 'thursday'
10317
- | 'friday'
10318
- | 'saturday';
10319
- type DeliveredDuty = 'paid' | 'unpaid';
10320
- type DiscountTarget = 'item' | 'shipping';
10321
- type EntityIdentifierType = 'ioss' | 'voec';
10322
- type Environment = 'sandbox' | 'production';
10323
- type ExceptionType = 'open' | 'closed';
10324
- type GoodsSupply = 'export' | 'intra_community' | 'local';
10325
- type HolidayCalendar = 'us_bank_holidays' | 'jewish_holidays';
10326
- type IncludedLevyKey = 'duty' | 'vat' | 'vat_and_duty' | 'none';
10327
- type Incoterm =
10328
- | 'EXW'
10329
- | 'FCA'
10330
- | 'CPT'
10331
- | 'CIP'
10332
- | 'DAT'
10333
- | 'DAP'
10334
- | 'DDP'
10335
- | 'FAS'
10336
- | 'FOB'
10337
- | 'CFR'
10338
- | 'CIF'
10339
- | 'DAF'
10340
- | 'DES'
10341
- | 'DEQ'
10342
- | 'DDU';
10343
- type InputSpecificationType = 'text' | 'number';
10344
- type MarginType = 'fixed' | 'percent';
10345
- type MeasurementSystem = 'imperial' | 'metric';
10346
- type MerchantOfRecord = 'flow' | 'organization';
10347
- type OrderMerchantOfRecord = 'flow' | 'organization' | 'mixed';
10348
- type OrganizationStatus =
10349
- | 'active'
10350
- | 'inactive'
10351
- | 'deactivated'
10352
- | 'provisioned';
10353
- type OrganizationType = 'standalone' | 'channel';
10354
- type PriceBookStatus = 'draft' | 'published' | 'archived';
10355
- type Role = 'admin' | 'member';
10356
- type RoundingMethod = 'up' | 'down' | 'nearest';
10357
- type RoundingType = 'pattern' | 'multiple';
10358
- type ScheduleExceptionStatus = 'Open' | 'Closed';
10359
- type SortDirection = 'ascending' | 'descending';
10360
- type UnitOfMeasurement =
10361
- | 'millimeter'
10362
- | 'centimeter'
10363
- | 'inch'
10364
- | 'foot'
10365
- | 'cubic_inch'
10366
- | 'cubic_meter'
10367
- | 'gram'
10368
- | 'kilogram'
10369
- | 'meter'
10370
- | 'ounce'
10371
- | 'pound';
10372
- type UnitOfTime = 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute';
10373
- type UserStatus = 'pending' | 'active' | 'inactive';
10374
- type ValueAddedService = 'Hazardous Material';
10375
- type Visibility = 'public' | 'private';
10376
- }
10518
+ interface ClassicPaymentRedirectForm {
10519
+ readonly MD: string;
10520
+ readonly PaRes: string;
10521
+ }
10377
10522
 
10378
- declare namespace io.flow.common.v0.models {
10379
- interface Address {
10380
- readonly text?: string;
10381
- readonly streets?: string[];
10382
- readonly street_number?: string;
10383
- readonly city?: string;
10384
- readonly province?: string;
10385
- readonly postal?: string;
10386
- readonly country?: string;
10387
- readonly latitude?: string;
10388
- readonly longitude?: string;
10523
+ interface CryptoAccount {
10524
+ readonly discriminator: 'crypto_account';
10525
+ readonly id: string;
10526
+ readonly organization_id: string;
10527
+ readonly key: string;
10528
+ readonly owner: io.flow.payment.internal.v0.enums.Owner;
10529
+ readonly authentication: io.flow.payment.internal.v0.models.CryptoAuthentication;
10530
+ readonly country: string;
10531
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10532
+ readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
10533
+ readonly created_at: string;
10534
+ readonly updated_at: string;
10389
10535
  }
10390
10536
 
10391
- interface BillingAddress {
10392
- readonly name?: io.flow.common.v0.models.Name;
10393
- readonly streets?: string[];
10394
- readonly city?: string;
10395
- readonly province?: string;
10396
- readonly postal?: string;
10397
- readonly country?: string;
10398
- readonly company?: string;
10537
+ interface CryptoAccountModificationForm {
10538
+ readonly discriminator: 'crypto_account_modification_form';
10539
+ readonly owner: io.flow.payment.internal.v0.enums.Owner;
10540
+ readonly country: string;
10541
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10399
10542
  }
10400
10543
 
10401
- interface CatalogItemReference {
10544
+ interface CryptoAccountPutForm {
10545
+ readonly discriminator: 'crypto_account_put_form';
10546
+ readonly owner?: io.flow.payment.internal.v0.enums.Owner;
10547
+ readonly authentication: io.flow.payment.internal.v0.models.CryptoAuthenticationForm;
10548
+ readonly country: string;
10549
+ readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10550
+ readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
10551
+ }
10552
+
10553
+ interface CryptoAuthentication {
10554
+ readonly public_key: string;
10555
+ readonly secret_key_reference: string;
10556
+ readonly signature_secret_reference: string;
10557
+ }
10558
+
10559
+ interface CryptoAuthenticationForm {
10560
+ readonly public_key: string;
10561
+ readonly secret_key: string;
10562
+ readonly signature_secret: string;
10563
+ }
10564
+
10565
+ interface DecryptCipherForm {
10402
10566
  readonly id: string;
10403
- readonly number: string;
10567
+ readonly password: string;
10404
10568
  }
10405
10569
 
10406
- interface CatalogItemSummary {
10407
- readonly number: string;
10408
- readonly name: string;
10570
+ interface DecryptedCipher {
10571
+ readonly id: string;
10572
+ readonly cleartext: string;
10409
10573
  readonly attributes: Record<string, string>;
10410
10574
  }
10411
10575
 
10412
- interface ChannelReference {
10576
+ interface Encryption {
10413
10577
  readonly id: string;
10578
+ readonly key: io.flow.payment.internal.v0.models.KeyReference;
10579
+ readonly iv: string;
10580
+ readonly cipher: string;
10581
+ readonly passphrase_ids: string[];
10414
10582
  }
10415
10583
 
10416
- interface CheckoutReference {
10584
+ interface FinancialMerchantCategory {
10417
10585
  readonly id: string;
10586
+ readonly iso_18245_4: string;
10587
+ readonly title: string;
10588
+ readonly category_group: string;
10589
+ readonly description?: string;
10418
10590
  }
10419
10591
 
10420
- interface Contact {
10421
- readonly name: io.flow.common.v0.models.Name;
10422
- readonly company?: string;
10423
- readonly email?: string;
10424
- readonly phone?: string;
10592
+ interface FiservAccount {
10593
+ readonly discriminator: 'fiserv_account';
10594
+ readonly id: string;
10595
+ readonly organization_id: string;
10596
+ readonly key: string;
10597
+ readonly owner: io.flow.payment.internal.v0.enums.Owner;
10598
+ readonly region: string;
10599
+ readonly authentication: io.flow.payment.internal.v0.models.FiservAuthentication;
10600
+ readonly country: string;
10601
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10602
+ readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
10603
+ readonly created_at: string;
10604
+ readonly updated_at: string;
10425
10605
  }
10426
10606
 
10427
- interface CustomerInvoice {
10428
- readonly address?: io.flow.common.v0.models.BillingAddress;
10607
+ interface FiservAccountModificationForm {
10608
+ readonly discriminator: 'fiserv_account_modification_form';
10609
+ readonly owner: io.flow.payment.internal.v0.enums.Owner;
10610
+ readonly region: string;
10611
+ readonly country: string;
10612
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10429
10613
  }
10430
10614
 
10431
- interface CustomerReference {
10432
- readonly number: string;
10615
+ interface FiservAccountPutForm {
10616
+ readonly discriminator: 'fiserv_account_put_form';
10617
+ readonly owner?: io.flow.payment.internal.v0.enums.Owner;
10618
+ readonly region: string;
10619
+ readonly authentication: io.flow.payment.internal.v0.models.FiservAuthenticationForm;
10620
+ readonly country: string;
10621
+ readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10622
+ readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
10433
10623
  }
10434
10624
 
10435
- interface DatetimeRange {
10436
- readonly from: string;
10437
- readonly to: string;
10625
+ interface FiservAuthentication {
10626
+ readonly public_key: string;
10627
+ readonly secret_key_reference: string;
10438
10628
  }
10439
10629
 
10440
- interface Dimension {
10441
- readonly depth?: io.flow.common.v0.models.Measurement;
10442
- readonly diameter?: io.flow.common.v0.models.Measurement;
10443
- readonly length?: io.flow.common.v0.models.Measurement;
10444
- readonly weight?: io.flow.common.v0.models.Measurement;
10445
- readonly width?: io.flow.common.v0.models.Measurement;
10630
+ interface FiservAuthenticationDataReference {
10631
+ readonly account_id: string;
10632
+ readonly store_id: string;
10446
10633
  }
10447
10634
 
10448
- interface Dimensions {
10449
- readonly product?: io.flow.common.v0.models.Dimension;
10450
- readonly packaging?: io.flow.common.v0.models.Dimension;
10635
+ interface FiservAuthenticationForm {
10636
+ readonly public_key: string;
10637
+ readonly secret_key: string;
10451
10638
  }
10452
10639
 
10453
- interface DiscountForm {
10454
- readonly offer: io.flow.common.v0.unions.DiscountOffer;
10455
- readonly target?: io.flow.common.v0.enums.DiscountTarget;
10456
- readonly label?: string;
10640
+ interface FiservMerchant {
10641
+ readonly discriminator: 'fiserv_merchant';
10642
+ readonly id: string;
10643
+ readonly key: string;
10644
+ readonly organization_id: string;
10645
+ readonly external_id: string;
10646
+ readonly processor_account_reference: io.flow.payment.internal.v0.models.ProcessorAccountReference;
10647
+ readonly base_currency: string;
10648
+ readonly funding_currency: string;
10649
+ readonly country: string;
10650
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10651
+ readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
10652
+ readonly created_at: string;
10653
+ readonly updated_at: string;
10457
10654
  }
10458
10655
 
10459
- interface DiscountOfferFixed {
10460
- readonly discriminator: 'discount_offer_fixed';
10461
- readonly money: io.flow.common.v0.models.Money;
10656
+ interface FiservMerchantModificationForm {
10657
+ readonly discriminator: 'fiserv_merchant_modification_form';
10658
+ readonly external_id: string;
10659
+ readonly base_currency: string;
10660
+ readonly funding_currency: string;
10661
+ readonly country: string;
10662
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10462
10663
  }
10463
10664
 
10464
- interface DiscountOfferPercent {
10465
- readonly discriminator: 'discount_offer_percent';
10466
- readonly percent: number;
10665
+ interface FiservMerchantPutForm {
10666
+ readonly discriminator: 'fiserv_merchant_put_form';
10667
+ readonly organization_id: string;
10668
+ readonly external_id: string;
10669
+ readonly base_currency: string;
10670
+ readonly funding_currency: string;
10671
+ readonly country: string;
10672
+ readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10673
+ readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
10467
10674
  }
10468
10675
 
10469
- interface DiscountsForm {
10470
- readonly discounts: io.flow.common.v0.models.DiscountForm[];
10676
+ interface InternalAdyenAuthorizationDetails {
10677
+ readonly discriminator: 'internal_adyen_authorization_details';
10678
+ readonly adyen_authentication_data: io.flow.payment.internal.v0.models.AdyenAuthenticationDataReference;
10471
10679
  }
10472
10680
 
10473
- interface Duration {
10474
- readonly unit: io.flow.common.v0.enums.UnitOfTime;
10475
- readonly value: number;
10681
+ interface InternalAfterpayAuthorizationDetails {
10682
+ readonly discriminator: 'internal_afterpay_authorization_details';
10683
+ readonly afterpay_authentication_data: io.flow.payment.internal.v0.models.AfterpayAuthenticationDataReference;
10476
10684
  }
10477
10685
 
10478
- interface EntityIdentifier {
10479
- readonly name: io.flow.common.v0.enums.EntityIdentifierType;
10480
- readonly number: string;
10481
- readonly issuing_country?: string;
10686
+ interface InternalBitpayAuthorizationDetails {
10687
+ readonly discriminator: 'internal_bitpay_authorization_details';
10688
+ readonly bitpay_authentication_data: io.flow.payment.internal.v0.models.BitpayAuthenticationDataReference;
10482
10689
  }
10483
10690
 
10484
- interface Exception {
10485
- readonly type: io.flow.common.v0.enums.ExceptionType;
10486
- readonly datetime_range: io.flow.common.v0.models.DatetimeRange;
10691
+ interface InternalFiservAuthorizationDetails {
10692
+ readonly discriminator: 'internal_fiserv_authorization_details';
10693
+ readonly fiserv_authentication_data: io.flow.payment.internal.v0.models.FiservAuthenticationDataReference;
10487
10694
  }
10488
10695
 
10489
- interface ExperienceSummary {
10490
- readonly id: string;
10491
- readonly key: string;
10492
- readonly name: string;
10493
- readonly country?: string;
10494
- readonly currency?: string;
10495
- readonly language?: string;
10696
+ interface InternalPaymentRequest {
10697
+ readonly payment_request: io.flow.payment.gateway.v0.models.PaymentRequest;
10698
+ readonly actual_action?: io.flow.payment.gateway.v0.unions.Action;
10496
10699
  }
10497
10700
 
10498
- interface IncludedLevies {
10499
- readonly key: io.flow.common.v0.enums.IncludedLevyKey;
10500
- readonly label: string;
10701
+ interface InternalPaypalAuthorizationDetails {
10702
+ readonly discriminator: 'internal_paypal_authorization_details';
10703
+ readonly paypal_authentication_data: io.flow.payment.internal.v0.models.PaypalAccountReference;
10501
10704
  }
10502
10705
 
10503
- interface InputForm {
10504
- readonly values?: Record<string, string>;
10706
+ interface InternalStripeAuthorizationDetails {
10707
+ readonly discriminator: 'internal_stripe_authorization_details';
10708
+ readonly stripe_authentication_data: io.flow.payment.internal.v0.models.StripeAuthenticationDataReference;
10505
10709
  }
10506
10710
 
10507
- interface InputFormSpecification {
10508
- readonly inputs?: io.flow.common.v0.models.InputSpecification[];
10509
- readonly limitations?: io.flow.common.v0.models.InputSpecificationLimitations;
10711
+ interface InternalTransactionDetailsCard {
10712
+ readonly type: 'card';
10713
+ readonly address_verification_result?: io.flow.payment.v0.models.AddressVerificationResult;
10714
+ readonly cvv_result?: io.flow.payment.v0.models.CvvResult;
10715
+ readonly network_details?: io.flow.payment.v0.models.TransactionNetworkDetailsCard;
10510
10716
  }
10511
10717
 
10512
- interface InputSpecification {
10513
- readonly type: io.flow.common.v0.enums.InputSpecificationType;
10514
- readonly name: string;
10515
- readonly display_text?: string;
10718
+ interface Key {
10719
+ readonly id: string;
10720
+ readonly created_at: string;
10516
10721
  }
10517
10722
 
10518
- interface InputSpecificationLimitationMax {
10519
- readonly discriminator: 'input_specification_limitation_max';
10520
- readonly max: number;
10723
+ interface KeyReference {
10724
+ readonly id: string;
10521
10725
  }
10522
10726
 
10523
- interface InputSpecificationLimitations {
10524
- readonly limitations?: io.flow.common.v0.unions.InputSpecificationLimitation[];
10727
+ interface KlarnaAuthorizationParameters {
10728
+ readonly discriminator: 'klarna_authorization_parameters';
10729
+ readonly client_token: string;
10730
+ readonly payment_method_categories: io.flow.payment.internal.v0.models.KlarnaPaymentMethodCategory[];
10525
10731
  }
10526
10732
 
10527
- interface ItemReference {
10528
- readonly number: string;
10733
+ interface KlarnaPaymentMethodCategory {
10734
+ readonly id: string;
10735
+ readonly name?: string;
10736
+ readonly standard_asset_urls?: string;
10737
+ readonly descriptive_asset_urls?: string;
10529
10738
  }
10530
10739
 
10531
- interface LineItem {
10532
- readonly number: string;
10533
- readonly quantity: number;
10534
- readonly price: io.flow.common.v0.models.Money;
10535
- readonly attributes: Record<string, string>;
10536
- readonly center?: string;
10537
- readonly discount?: io.flow.common.v0.models.Money;
10740
+ interface OnlineAuthorizationCompleted {
10741
+ readonly discriminator: 'online_authorization_completed';
10742
+ readonly id: string;
10743
+ readonly organization: string;
10744
+ readonly key: string;
10745
+ readonly expires_at: string;
10538
10746
  }
10539
10747
 
10540
- interface LineItemAttributesForm {
10541
- readonly attributes: Record<string, string>;
10748
+ interface OrganizationPaymentSetting {
10749
+ readonly id: string;
10750
+ readonly organization_id: string;
10751
+ readonly default_capture_option: io.flow.payment.gateway.v0.unions.PaymentCaptureOption;
10752
+ readonly status: io.flow.payment.internal.v0.enums.OrganizationPaymentStatus;
10753
+ readonly checkout_domain?: string;
10754
+ readonly merchant_category_code?: string;
10755
+ readonly payment_statement_suffix?: string;
10756
+ readonly payment_statement_condensed?: string;
10757
+ readonly created_at: string;
10758
+ readonly updated_at: string;
10542
10759
  }
10543
10760
 
10544
- interface LineItemForm {
10545
- readonly number: string;
10546
- readonly quantity: number;
10547
- readonly shipment_estimate?: io.flow.common.v0.models.DatetimeRange;
10548
- readonly price?: io.flow.common.v0.models.Money;
10549
- readonly attributes?: Record<string, string>;
10550
- readonly center?: string;
10551
- readonly discount?: io.flow.common.v0.models.Money;
10552
- readonly discounts?: io.flow.common.v0.models.DiscountsForm;
10761
+ interface OrganizationPaymentSettingForm {
10762
+ readonly default_capture_option: io.flow.payment.gateway.v0.unions.PaymentCaptureOption;
10763
+ readonly status: io.flow.payment.internal.v0.enums.OrganizationPaymentStatus;
10764
+ readonly checkout_domain?: string;
10765
+ readonly merchant_category_code?: string;
10766
+ readonly payment_statement_suffix?: string;
10553
10767
  }
10554
10768
 
10555
- interface LineItemQuantityForm {
10556
- readonly quantity: number;
10769
+ interface OrganizationPaymentSettingVersion {
10770
+ readonly id: string;
10771
+ readonly timestamp: string;
10772
+ readonly type: io.flow.common.v0.enums.ChangeType;
10773
+ readonly organization_payment_setting: io.flow.payment.internal.v0.models.OrganizationPaymentSetting;
10557
10774
  }
10558
10775
 
10559
- interface LogoImageSetStatic {
10560
- readonly discriminator: 'static';
10561
- readonly small?: io.flow.common.v0.models.LogoImageStatic;
10562
- readonly medium: io.flow.common.v0.models.LogoImageStatic;
10563
- readonly large?: io.flow.common.v0.models.LogoImageStatic;
10776
+ interface Passphrase {
10777
+ readonly id: string;
10778
+ readonly tribe: io.flow.payment.internal.v0.models.Tribe;
10779
+ readonly salt: string;
10780
+ readonly iv: string;
10781
+ readonly challenge_cipher: string;
10782
+ readonly challenge_text: string;
10564
10783
  }
10565
10784
 
10566
- interface LogoImageStatic {
10567
- readonly url: string;
10568
- readonly width: number;
10569
- readonly height: number;
10785
+ interface PassphraseForm {
10786
+ readonly tribe: string;
10787
+ readonly current_password?: string;
10788
+ readonly new_password: string;
10570
10789
  }
10571
10790
 
10572
- interface LogoImageSvg {
10573
- readonly discriminator: 'svg';
10574
- readonly url: string;
10791
+ interface PassphraseSummary {
10792
+ readonly id: string;
10793
+ readonly tribe: io.flow.payment.internal.v0.models.Tribe;
10575
10794
  }
10576
10795
 
10577
- interface Margin {
10578
- readonly type: io.flow.common.v0.enums.MarginType;
10579
- readonly value: number;
10796
+ interface PaymentMethodDetail {
10797
+ readonly method: io.flow.reference.v0.models.PaymentMethod;
10798
+ readonly method_options?: io.flow.payment.internal.v0.models.PaymentMethodOption[];
10580
10799
  }
10581
10800
 
10582
- interface Measurement {
10583
- readonly value: string;
10584
- readonly units: io.flow.common.v0.enums.UnitOfMeasurement;
10801
+ interface PaymentMethodOption {
10802
+ readonly id: string;
10803
+ readonly name: string;
10804
+ readonly logo?: io.flow.common.v0.unions.LogoImage;
10585
10805
  }
10586
10806
 
10587
- interface MerchantOfRecordEntity {
10588
- readonly organization: io.flow.common.v0.models.OrganizationReference;
10589
- readonly name: string;
10590
- readonly vat?: io.flow.common.v0.models.MerchantOfRecordEntityRegistration;
10591
- readonly identifiers?: io.flow.common.v0.models.EntityIdentifier[];
10592
- readonly streets: string[];
10593
- readonly city: string;
10594
- readonly province?: string;
10595
- readonly postal?: string;
10596
- readonly country: string;
10597
- readonly phone?: string;
10598
- readonly email?: string;
10807
+ interface PaymentOrganizationSettings {
10808
+ readonly id: string;
10809
+ readonly enable_auto_capture: boolean;
10810
+ readonly link_capture_to_vcc: boolean;
10811
+ readonly purge_ciphers: boolean;
10812
+ readonly domain?: string;
10813
+ readonly merchant_category_code?: number;
10814
+ readonly payment_statement_suffix?: string;
10815
+ readonly payment_statement_condensed?: string;
10599
10816
  }
10600
10817
 
10601
- interface MerchantOfRecordEntityRegistration {
10602
- readonly number: string;
10818
+ interface PaymentOrganizationSettingsPutForm {
10819
+ readonly enable_auto_capture?: boolean;
10820
+ readonly link_capture_to_vcc?: boolean;
10821
+ readonly purge_ciphers?: boolean;
10822
+ readonly domain?: string;
10823
+ readonly merchant_category_code?: number;
10824
+ readonly payment_statement_suffix?: string;
10825
+ }
10826
+
10827
+ interface PaypalAccount {
10828
+ readonly discriminator: 'paypal_account';
10829
+ readonly id: string;
10830
+ readonly organization_id: string;
10831
+ readonly key: string;
10832
+ readonly owner: io.flow.payment.internal.v0.enums.Owner;
10603
10833
  readonly country: string;
10834
+ readonly authentication: io.flow.payment.internal.v0.models.PaypalAuthentication;
10835
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10836
+ readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
10837
+ readonly created_at: string;
10838
+ readonly updated_at: string;
10604
10839
  }
10605
10840
 
10606
- interface Money {
10607
- readonly amount: number;
10608
- readonly currency: string;
10841
+ interface PaypalAccountModificationForm {
10842
+ readonly discriminator: 'paypal_account_modification_form';
10843
+ readonly owner: io.flow.payment.internal.v0.enums.Owner;
10844
+ readonly country: string;
10845
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10609
10846
  }
10610
10847
 
10611
- interface MoneyWithBase {
10612
- readonly currency: string;
10613
- readonly amount: number;
10614
- readonly base: io.flow.common.v0.models.Money;
10848
+ interface PaypalAccountPutForm {
10849
+ readonly discriminator: 'paypal_account_put_form';
10850
+ readonly owner?: io.flow.payment.internal.v0.enums.Owner;
10851
+ readonly country: string;
10852
+ readonly authentication: io.flow.payment.internal.v0.models.PaypalAuthenticationForm;
10853
+ readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10854
+ readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
10615
10855
  }
10616
10856
 
10617
- interface MoneyWithOptionalBase {
10618
- readonly currency: string;
10619
- readonly amount: number;
10620
- readonly base?: io.flow.common.v0.models.Money;
10857
+ interface PaypalAccountReference {
10858
+ readonly id: string;
10859
+ readonly flow_merchant_id?: string;
10621
10860
  }
10622
10861
 
10623
- interface Name {
10624
- readonly first?: string;
10625
- readonly last?: string;
10862
+ interface PaypalAuthentication {
10863
+ readonly username: string;
10864
+ readonly password_reference: string;
10626
10865
  }
10627
10866
 
10628
- interface OrderCustomer {
10629
- readonly name: io.flow.common.v0.models.Name;
10630
- readonly number?: string;
10631
- readonly phone?: string;
10632
- readonly email?: string;
10633
- readonly address?: io.flow.common.v0.models.BillingAddress;
10634
- readonly invoice?: io.flow.common.v0.models.CustomerInvoice;
10867
+ interface PaypalAuthenticationForm {
10868
+ readonly username: string;
10869
+ readonly password: string;
10635
10870
  }
10636
10871
 
10637
- interface OrderCustomerForm {
10638
- readonly name?: io.flow.common.v0.models.Name;
10639
- readonly number?: string;
10640
- readonly phone?: string;
10641
- readonly email?: string;
10642
- readonly address?: io.flow.common.v0.models.BillingAddress;
10643
- readonly invoice?: io.flow.common.v0.models.CustomerInvoice;
10872
+ interface PaypalAuthorizationPayload {
10873
+ readonly discriminator: 'paypal_authorization_payload';
10874
+ readonly payment_id: string;
10875
+ readonly payer_id: string;
10644
10876
  }
10645
10877
 
10646
- interface Organization {
10647
- readonly discriminator: 'organization';
10878
+ interface PaypalMerchant {
10879
+ readonly discriminator: 'paypal_merchant';
10648
10880
  readonly id: string;
10649
- readonly name: string;
10650
- readonly environment: io.flow.common.v0.enums.Environment;
10651
- readonly parent?: io.flow.common.v0.models.OrganizationReference;
10652
- readonly defaults?: io.flow.common.v0.models.OrganizationDefaults;
10653
- readonly created_at?: string;
10654
- readonly status?: io.flow.common.v0.enums.OrganizationStatus;
10655
- readonly type?: io.flow.common.v0.enums.OrganizationType;
10881
+ readonly key: string;
10882
+ readonly organization_id: string;
10883
+ readonly external_id: string;
10884
+ readonly processor_account_reference: io.flow.payment.internal.v0.models.ProcessorAccountReference;
10885
+ readonly country: string;
10886
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10887
+ readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
10888
+ readonly created_at: string;
10889
+ readonly updated_at: string;
10656
10890
  }
10657
10891
 
10658
- interface OrganizationDefaults {
10892
+ interface PaypalMerchantModificationForm {
10893
+ readonly discriminator: 'paypal_merchant_modification_form';
10894
+ readonly external_id: string;
10659
10895
  readonly country: string;
10660
- readonly base_currency: string;
10661
- readonly language: string;
10662
- readonly locale: string;
10663
- readonly timezone: string;
10896
+ readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10664
10897
  }
10665
10898
 
10666
- interface OrganizationReference {
10667
- readonly discriminator: 'organization_reference';
10899
+ interface PaypalMerchantPutForm {
10900
+ readonly discriminator: 'paypal_merchant_put_form';
10901
+ readonly organization_id: string;
10902
+ readonly external_id: string;
10903
+ readonly country: string;
10904
+ readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10905
+ readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
10906
+ }
10907
+
10908
+ interface ProcessorAccountReference {
10668
10909
  readonly id: string;
10910
+ readonly organization_id: string;
10911
+ readonly key: string;
10912
+ readonly processor: io.flow.payment.internal.v0.enums.Processor;
10913
+ readonly country: string;
10914
+ readonly owner: io.flow.payment.internal.v0.enums.Owner;
10915
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10916
+ readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
10669
10917
  }
10670
10918
 
10671
- interface OrganizationSummary {
10919
+ interface ProcessorEntityStatusForm {
10920
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10921
+ }
10922
+
10923
+ interface ProcessorMerchantReference {
10672
10924
  readonly id: string;
10673
- readonly name: string;
10674
- readonly environment: io.flow.common.v0.enums.Environment;
10925
+ readonly organization_id: string;
10926
+ readonly key: string;
10927
+ readonly processor: io.flow.payment.internal.v0.enums.Processor;
10928
+ readonly country: string;
10929
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10930
+ readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
10675
10931
  }
10676
10932
 
10677
- interface PartnerReference {
10933
+ interface Redirect {
10678
10934
  readonly id: string;
10935
+ readonly post_payment_redirect_urls: io.flow.payment.v0.models.PostPaymentRedirectUrls;
10936
+ readonly reason: io.flow.payment.internal.v0.enums.RedirectReason;
10679
10937
  }
10680
10938
 
10681
- interface Price {
10682
- readonly amount: number;
10683
- readonly currency: string;
10684
- readonly label: string;
10939
+ interface RedirectActionCompleted {
10940
+ readonly discriminator: 'redirect_action_completed';
10941
+ readonly id: string;
10942
+ readonly organization: string;
10943
+ readonly key: string;
10944
+ readonly expires_at: string;
10945
+ readonly post_payment_redirect_urls: io.flow.payment.v0.models.PostPaymentRedirectUrls;
10946
+ readonly inline_notification_urls?: io.flow.payment.v0.models.PostPaymentRedirectUrls;
10685
10947
  }
10686
10948
 
10687
- interface PriceForm {
10688
- readonly amount: number;
10689
- readonly currency: string;
10949
+ interface RoutingAccount {
10950
+ readonly discriminator: 'routing_account';
10951
+ readonly processor: io.flow.payment.internal.v0.enums.Processor;
10952
+ readonly processor_account: io.flow.payment.internal.v0.models.ProcessorAccountReference;
10690
10953
  }
10691
10954
 
10692
- interface PriceSourceCatalog {
10693
- readonly discriminator: 'catalog';
10694
- readonly price: io.flow.common.v0.models.Money;
10955
+ interface RoutingMerchant {
10956
+ readonly discriminator: 'routing_merchant';
10957
+ readonly processor: io.flow.payment.internal.v0.enums.Processor;
10958
+ readonly processor_account: io.flow.payment.internal.v0.models.ProcessorAccountReference;
10959
+ readonly processor_merchant: io.flow.payment.internal.v0.models.ProcessorMerchantReference;
10695
10960
  }
10696
10961
 
10697
- interface PriceSourcePriceBook {
10698
- readonly discriminator: 'price_book';
10699
- readonly price: io.flow.common.v0.models.Money;
10700
- readonly includes: io.flow.common.v0.models.IncludedLevies;
10701
- readonly price_book_reference: io.flow.common.v0.models.PriceSourcePriceBookReference;
10962
+ interface RoutingProcessor {
10963
+ readonly discriminator: 'routing_processor';
10964
+ readonly processor: io.flow.payment.internal.v0.enums.Processor;
10702
10965
  }
10703
10966
 
10704
- interface PriceSourcePriceBookReference {
10967
+ interface StripeAccount {
10968
+ readonly discriminator: 'stripe_account';
10705
10969
  readonly id: string;
10970
+ readonly organization_id: string;
10706
10971
  readonly key: string;
10972
+ readonly owner: io.flow.payment.internal.v0.enums.Owner;
10973
+ readonly name: string;
10974
+ readonly external_id: string;
10975
+ readonly country: string;
10976
+ readonly authentication: io.flow.payment.internal.v0.models.StripeAuthentication;
10977
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10978
+ readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
10979
+ readonly created_at: string;
10980
+ readonly updated_at: string;
10707
10981
  }
10708
10982
 
10709
- interface PriceSourceProvided {
10710
- readonly discriminator: 'provided';
10711
- readonly price: io.flow.common.v0.models.Money;
10983
+ interface StripeAccountModificationForm {
10984
+ readonly discriminator: 'stripe_account_modification_form';
10985
+ readonly owner: io.flow.payment.internal.v0.enums.Owner;
10986
+ readonly name: string;
10987
+ readonly external_id: string;
10988
+ readonly country: string;
10989
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10712
10990
  }
10713
10991
 
10714
- interface PriceWithBase {
10715
- readonly currency: string;
10716
- readonly amount: number;
10717
- readonly label: string;
10718
- readonly base?: io.flow.common.v0.models.Price;
10992
+ interface StripeAccountPutForm {
10993
+ readonly discriminator: 'stripe_account_put_form';
10994
+ readonly owner?: io.flow.payment.internal.v0.enums.Owner;
10995
+ readonly name: string;
10996
+ readonly external_id: string;
10997
+ readonly country: string;
10998
+ readonly authentication: io.flow.payment.internal.v0.models.StripeAuthenticationForm;
10999
+ readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
11000
+ readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
10719
11001
  }
10720
11002
 
10721
- interface RepeatDaily {
10722
- readonly discriminator: 'repeat_daily';
10723
- readonly interval: number;
11003
+ interface StripeAuthentication {
11004
+ readonly public_key: string;
11005
+ readonly secret_key_reference: string;
10724
11006
  }
10725
11007
 
10726
- interface RepeatHourly {
10727
- readonly discriminator: 'repeat_hourly';
10728
- readonly interval: number;
11008
+ interface StripeAuthenticationDataReference {
11009
+ readonly id: string;
10729
11010
  }
10730
11011
 
10731
- interface RepeatMonthly {
10732
- readonly discriminator: 'repeat_monthly';
10733
- readonly interval: number;
10734
- readonly days: number[];
11012
+ interface StripeAuthenticationForm {
11013
+ readonly public_key: string;
11014
+ readonly secret_key: string;
10735
11015
  }
10736
11016
 
10737
- interface RepeatWeekly {
10738
- readonly discriminator: 'repeat_weekly';
10739
- readonly interval: number;
10740
- readonly days_of_week: io.flow.common.v0.enums.DayOfWeek[];
11017
+ interface StripeMerchant {
11018
+ readonly discriminator: 'stripe_merchant';
11019
+ readonly id: string;
11020
+ readonly key: string;
11021
+ readonly organization_id: string;
11022
+ readonly external_id: string;
11023
+ readonly processor_account_reference: io.flow.payment.internal.v0.models.ProcessorAccountReference;
11024
+ readonly name: string;
11025
+ readonly account_type: io.flow.stripe.v0.enums.AccountType;
11026
+ readonly country: string;
11027
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
11028
+ readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
11029
+ readonly created_at: string;
11030
+ readonly updated_at: string;
10741
11031
  }
10742
11032
 
10743
- interface Rounding {
10744
- readonly type: io.flow.common.v0.enums.RoundingType;
10745
- readonly method: io.flow.common.v0.enums.RoundingMethod;
10746
- readonly value: number;
11033
+ interface StripeMerchantForm {
11034
+ readonly discriminator: 'stripe_merchant_form';
11035
+ readonly key?: string;
11036
+ readonly organization_id: string;
11037
+ readonly name: string;
11038
+ readonly account_type: io.flow.stripe.v0.enums.AccountType;
11039
+ readonly country: string;
11040
+ readonly payment_statement: string;
11041
+ readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10747
11042
  }
10748
11043
 
10749
- interface Schedule {
10750
- readonly calendar?: io.flow.common.v0.enums.Calendar;
10751
- readonly holiday: io.flow.common.v0.enums.HolidayCalendar;
10752
- readonly exception: io.flow.common.v0.models.Exception[];
10753
- readonly cutoff?: string;
10754
- readonly min_lead_time?: number;
10755
- readonly max_lead_time?: number;
11044
+ interface StripeMerchantModificationForm {
11045
+ readonly discriminator: 'stripe_merchant_modification_form';
11046
+ readonly external_id: string;
11047
+ readonly name: string;
11048
+ readonly account_type: io.flow.stripe.v0.enums.AccountType;
11049
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
11050
+ readonly country: string;
10756
11051
  }
10757
11052
 
10758
- interface SessionReference {
10759
- readonly id: string;
11053
+ interface StripeMerchantPutForm {
11054
+ readonly discriminator: 'stripe_merchant_put_form';
11055
+ readonly organization_id: string;
11056
+ readonly external_id: string;
11057
+ readonly name: string;
11058
+ readonly account_type: io.flow.stripe.v0.enums.AccountType;
11059
+ readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
11060
+ readonly country: string;
11061
+ readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
10760
11062
  }
10761
11063
 
10762
- interface User {
10763
- readonly discriminator: 'user';
11064
+ interface Tribe {
10764
11065
  readonly id: string;
10765
- readonly email?: string;
10766
- readonly name: io.flow.common.v0.models.Name;
10767
- readonly status: io.flow.common.v0.enums.UserStatus;
11066
+ readonly description: string;
10768
11067
  }
10769
11068
 
10770
- interface UserReference {
10771
- readonly discriminator: 'user_reference';
11069
+ interface VirtualCardProvider {
10772
11070
  readonly id: string;
10773
- }
10774
-
10775
- interface Zone {
10776
- readonly postals?: string[];
10777
- readonly provinces?: string[];
10778
- readonly country: string;
11071
+ readonly organization_id: string;
11072
+ readonly provider: string;
11073
+ readonly attributes?: Record<string, string>;
11074
+ readonly created_at: string;
11075
+ readonly updated_at: string;
10779
11076
  }
10780
11077
  }
10781
11078
 
10782
- declare namespace io.flow.common.v0.unions {
10783
- type DiscountOffer =
10784
- | io.flow.common.v0.models.DiscountOfferFixed
10785
- | io.flow.common.v0.models.DiscountOfferPercent;
10786
- type ExpandableOrganization =
10787
- | io.flow.common.v0.models.Organization
10788
- | io.flow.common.v0.models.OrganizationReference;
10789
- type ExpandableUser =
10790
- | io.flow.common.v0.models.User
10791
- | io.flow.common.v0.models.UserReference;
10792
- type InputSpecificationLimitation =
10793
- io.flow.common.v0.models.InputSpecificationLimitationMax;
10794
- type LogoImage =
10795
- | io.flow.common.v0.models.LogoImageSvg
10796
- | io.flow.common.v0.models.LogoImageSetStatic;
10797
- type PriceSource =
10798
- | io.flow.common.v0.models.PriceSourcePriceBook
10799
- | io.flow.common.v0.models.PriceSourceCatalog
10800
- | io.flow.common.v0.models.PriceSourceProvided;
10801
- type RepeatSchedule =
10802
- | io.flow.common.v0.models.RepeatHourly
10803
- | io.flow.common.v0.models.RepeatDaily
10804
- | io.flow.common.v0.models.RepeatWeekly
10805
- | io.flow.common.v0.models.RepeatMonthly;
11079
+ declare namespace io.flow.payment.internal.v0.unions {
11080
+ type AuthorizationPayload =
11081
+ | io.flow.payment.internal.v0.models.ApplePayAuthorizationPayload
11082
+ | io.flow.payment.internal.v0.models.PaypalAuthorizationPayload;
11083
+ type InlineAuthorizationParameters =
11084
+ io.flow.payment.internal.v0.models.KlarnaAuthorizationParameters;
11085
+ type InternalAuthorizationDetails =
11086
+ | io.flow.payment.internal.v0.models.InternalPaypalAuthorizationDetails
11087
+ | io.flow.payment.internal.v0.models.InternalBitpayAuthorizationDetails
11088
+ | io.flow.payment.internal.v0.models.InternalStripeAuthorizationDetails
11089
+ | io.flow.payment.internal.v0.models.InternalAdyenAuthorizationDetails
11090
+ | io.flow.payment.internal.v0.models.InternalAfterpayAuthorizationDetails
11091
+ | io.flow.payment.internal.v0.models.InternalFiservAuthorizationDetails;
11092
+ type InternalRefundForm = io.flow.payment.internal.v0.models.AdyenRefundForm;
11093
+ type InternalTransactionDetails =
11094
+ io.flow.payment.internal.v0.models.InternalTransactionDetailsCard;
11095
+ type PaymentRedirect =
11096
+ | io.flow.payment.internal.v0.models.OnlineAuthorizationCompleted
11097
+ | io.flow.payment.internal.v0.models.RedirectActionCompleted;
11098
+ type ProcessorAccount =
11099
+ | io.flow.payment.internal.v0.models.StripeAccount
11100
+ | io.flow.payment.internal.v0.models.AdyenAccount
11101
+ | io.flow.payment.internal.v0.models.PaypalAccount
11102
+ | io.flow.payment.internal.v0.models.AfterpayAccount
11103
+ | io.flow.payment.internal.v0.models.BitpayAccount
11104
+ | io.flow.payment.internal.v0.models.FiservAccount
11105
+ | io.flow.payment.internal.v0.models.CryptoAccount;
11106
+ type ProcessorAccountModificationForm =
11107
+ | io.flow.payment.internal.v0.models.StripeAccountModificationForm
11108
+ | io.flow.payment.internal.v0.models.AdyenAccountModificationForm
11109
+ | io.flow.payment.internal.v0.models.PaypalAccountModificationForm
11110
+ | io.flow.payment.internal.v0.models.AfterpayAccountModificationForm
11111
+ | io.flow.payment.internal.v0.models.BitpayAccountModificationForm
11112
+ | io.flow.payment.internal.v0.models.FiservAccountModificationForm
11113
+ | io.flow.payment.internal.v0.models.CryptoAccountModificationForm;
11114
+ type ProcessorAccountPutForm =
11115
+ | io.flow.payment.internal.v0.models.StripeAccountPutForm
11116
+ | io.flow.payment.internal.v0.models.AdyenAccountPutForm
11117
+ | io.flow.payment.internal.v0.models.PaypalAccountPutForm
11118
+ | io.flow.payment.internal.v0.models.AfterpayAccountPutForm
11119
+ | io.flow.payment.internal.v0.models.BitpayAccountPutForm
11120
+ | io.flow.payment.internal.v0.models.FiservAccountPutForm
11121
+ | io.flow.payment.internal.v0.models.CryptoAccountPutForm;
11122
+ type ProcessorMerchant =
11123
+ | io.flow.payment.internal.v0.models.StripeMerchant
11124
+ | io.flow.payment.internal.v0.models.AdyenMerchant
11125
+ | io.flow.payment.internal.v0.models.FiservMerchant
11126
+ | io.flow.payment.internal.v0.models.PaypalMerchant;
11127
+ type ProcessorMerchantForm =
11128
+ io.flow.payment.internal.v0.models.StripeMerchantForm;
11129
+ type ProcessorMerchantModificationForm =
11130
+ | io.flow.payment.internal.v0.models.StripeMerchantModificationForm
11131
+ | io.flow.payment.internal.v0.models.AdyenMerchantModificationForm
11132
+ | io.flow.payment.internal.v0.models.FiservMerchantModificationForm
11133
+ | io.flow.payment.internal.v0.models.PaypalMerchantModificationForm;
11134
+ type ProcessorMerchantPutForm =
11135
+ | io.flow.payment.internal.v0.models.StripeMerchantPutForm
11136
+ | io.flow.payment.internal.v0.models.AdyenMerchantPutForm
11137
+ | io.flow.payment.internal.v0.models.FiservMerchantPutForm
11138
+ | io.flow.payment.internal.v0.models.PaypalMerchantPutForm;
11139
+ type RoutingEntity =
11140
+ | io.flow.payment.internal.v0.models.RoutingProcessor
11141
+ | io.flow.payment.internal.v0.models.RoutingAccount
11142
+ | io.flow.payment.internal.v0.models.RoutingMerchant;
10806
11143
  }
10807
11144
 
10808
11145
  declare namespace io.flow.ftp.v0.enums {
@@ -10864,263 +11201,40 @@ declare namespace io.flow.ftp.v0.models {
10864
11201
  }
10865
11202
  }
10866
11203
 
10867
- declare namespace io.flow.billing.reporting.csv.v0.enums {
10868
- type ReportingFulfillmentIsVirtual = 'all' | 'mixed' | 'none';
10869
- }
10870
-
10871
11204
  declare namespace io.flow.billing.reporting.csv.v0.models {
10872
- interface FulfillmentShopperBreakdown {
10873
- readonly shipping: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
10874
- readonly fees: io.flow.billing.reporting.csv.v0.models.ReportingShopperFees;
10875
- readonly product: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
10876
- readonly subtotal: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
10877
- readonly tax: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
10878
- readonly duty: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
10879
- readonly discount: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
10880
- readonly total: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
10881
- }
10882
-
10883
- interface MarkedAsFinal {
10884
- readonly products: boolean;
10885
- readonly shipping: boolean;
10886
- }
10887
-
10888
- interface RecordReference {
10889
- readonly id: string;
10890
- }
10891
-
10892
- interface RefundRecord {
10893
- readonly id: string;
10894
- readonly parent?: io.flow.billing.reporting.csv.v0.models.RecordReference;
10895
- readonly merchant: io.flow.billing.reporting.csv.v0.models.ReportingOrganizationSummary;
10896
- readonly order: io.flow.billing.reporting.csv.v0.models.ReportingOrderSummary;
10897
- readonly entity: io.flow.billing.reporting.csv.v0.models.ReportingEntity;
10898
- readonly vendor: io.flow.billing.reporting.csv.v0.models.ReportingVendor;
10899
- readonly currencies: io.flow.billing.reporting.csv.v0.models.ReportingCurrencies;
10900
- readonly conversion_rate: io.flow.billing.reporting.csv.v0.models.ReportingConversionRates;
10901
- readonly reconciliation: io.flow.billing.reporting.csv.v0.models.ReportingReconciliation;
10902
- readonly merchant_subsidies: io.flow.billing.reporting.csv.v0.models.ReportingMerchantSubsidies;
10903
- readonly merchant_fees: io.flow.billing.reporting.csv.v0.models.ReportingMerchantFees;
10904
- readonly merchant_transactions: io.flow.billing.reporting.csv.v0.models.ReportingMerchantTransactions;
10905
- readonly debug: io.flow.billing.reporting.csv.v0.models.ReportingDebug;
10906
- readonly return?: io.flow.billing.reporting.csv.v0.models.ReportingReturn;
10907
- }
10908
-
10909
- interface ReportingAuthorizationReference {
10910
- readonly id: string;
10911
- }
10912
-
10913
- interface ReportingBusiness {
10914
- readonly vat_registration_number: string;
10915
- readonly name?: string;
10916
- }
10917
-
10918
- interface ReportingConversionRates {
10919
- readonly merchant: number;
10920
- readonly entity: number;
10921
- readonly usd: number;
10922
- readonly eur: number;
10923
- }
10924
-
10925
- interface ReportingCountry {
10926
- readonly code: string;
10927
- readonly is_eu: boolean;
10928
- }
10929
-
10930
- interface ReportingCurrencies {
10931
- readonly transaction: string;
10932
- readonly merchant: string;
10933
- readonly entity: string;
10934
- }
10935
-
10936
- interface ReportingDebug {
10937
- readonly console_order_link: string;
10938
- readonly allocation_order_totals_delta?: number;
10939
- readonly allocation_order_item_discount_delta?: number;
10940
- readonly missing_item_subsidies?: io.flow.billing.reporting.csv.v0.models.ReportingDebugMissingSubsidies;
10941
- readonly missing_shipping_subsidies?: io.flow.billing.reporting.csv.v0.models.ReportingDebugMissingSubsidies;
10942
- }
10943
-
10944
- interface ReportingDebugMissingSubsidies {
10945
- readonly price?: boolean;
10946
- readonly tax?: boolean;
10947
- readonly duty?: boolean;
10948
- }
10949
-
10950
- interface ReportingDestination {
10951
- readonly country: io.flow.billing.reporting.csv.v0.models.ReportingCountry;
10952
- readonly province?: io.flow.billing.reporting.csv.v0.models.ReportingProvince;
10953
- }
10954
-
10955
- interface ReportingEntity {
10956
- readonly id: string;
10957
- }
10958
-
10959
11205
  interface ReportingFulfillment {
10960
11206
  readonly id: string;
10961
11207
  readonly sequence_number: number;
10962
11208
  readonly fulfilled_at: string;
10963
11209
  readonly completes_order: boolean;
10964
- readonly payment: io.flow.billing.reporting.csv.v0.models.ReportingFulfillmentPayment;
10965
- readonly value: io.flow.billing.reporting.csv.v0.models.FulfillmentShopperBreakdown;
10966
- readonly dispatch_country?: io.flow.billing.reporting.csv.v0.models.ReportingCountry;
10967
- readonly destination: io.flow.billing.reporting.csv.v0.models.ReportingDestination;
11210
+ readonly payment: io.flow.billing.reporting.v0.models.ReportingPayment;
11211
+ readonly value: io.flow.billing.reporting.v0.models.FulfillmentShopperBreakdown;
11212
+ readonly dispatch_country?: io.flow.billing.reporting.v0.models.ReportingCountry;
11213
+ readonly destination: io.flow.billing.reporting.v0.models.ReportingDestination;
10968
11214
  readonly carrier?: string;
10969
- readonly is: io.flow.billing.reporting.csv.v0.models.ReportingFulfillmentIs;
10970
- readonly has: io.flow.billing.reporting.csv.v0.models.ReportingFulfillmentHas;
10971
- readonly fx: io.flow.billing.reporting.csv.v0.models.ReportingFx;
10972
- readonly business?: io.flow.billing.reporting.csv.v0.models.ReportingBusiness;
10973
- }
10974
-
10975
- interface ReportingFulfillmentHas {
10976
- readonly zero_vat_product: boolean;
10977
- }
10978
-
10979
- interface ReportingFulfillmentIs {
10980
- readonly replacement: boolean;
10981
- readonly virtual: io.flow.billing.reporting.csv.v0.enums.ReportingFulfillmentIsVirtual;
10982
- readonly duties_guaranteed: boolean;
10983
- readonly wyol: boolean;
10984
- readonly b2b: boolean;
10985
- readonly domestic: boolean;
10986
- }
10987
-
10988
- interface ReportingFulfillmentPayment {
10989
- readonly metadata?: io.flow.billing.reporting.csv.v0.models.ReportingFulfillmentPaymentMetadata;
10990
- readonly psp: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
10991
- readonly credit: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
10992
- readonly total: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
10993
- }
10994
-
10995
- interface ReportingFulfillmentPaymentMetadata {
10996
- readonly gateway: io.flow.payment.internal.v0.enums.Processor;
10997
- readonly method: string;
10998
- readonly psp_reference?: string;
10999
- readonly authorization?: io.flow.billing.reporting.csv.v0.models.ReportingAuthorizationReference;
11000
- readonly settlement_date: string;
11001
- readonly additional_authorizations?: io.flow.billing.reporting.csv.v0.models.ReportingFulfillmentPaymentMetadataAdditionalAuthorizations;
11002
- }
11003
-
11004
- interface ReportingFulfillmentPaymentMetadataAdditionalAuthorizations {
11005
- readonly ids: string;
11006
- }
11007
-
11008
- interface ReportingFx {
11009
- readonly shipping: io.flow.billing.reporting.csv.v0.models.ReportingUsd;
11010
- readonly fees: io.flow.billing.reporting.csv.v0.models.ReportingUsd;
11011
- readonly product: io.flow.billing.reporting.csv.v0.models.ReportingUsd;
11012
- readonly tax: io.flow.billing.reporting.csv.v0.models.ReportingUsd;
11013
- readonly duty: io.flow.billing.reporting.csv.v0.models.ReportingUsd;
11014
- readonly total: io.flow.billing.reporting.csv.v0.models.ReportingUsd;
11015
- }
11016
-
11017
- interface ReportingMerchantFees {
11018
- readonly duty_guarantee: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11019
- readonly mor: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11020
- readonly fraud: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11021
- readonly fx: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11022
- readonly processing: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11023
- readonly rate_lock: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11024
- readonly transfer: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11025
- }
11026
-
11027
- interface ReportingMerchantSubsidies {
11028
- readonly shipping: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11029
- readonly tax: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11030
- readonly duty: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11031
- readonly ccf: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11032
- }
11033
-
11034
- interface ReportingMerchantTransactions {
11035
- readonly adjustment: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11036
- readonly reversal: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11037
- readonly tax: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11038
- readonly duty: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11039
- readonly freight: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11040
- readonly refund: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11041
- }
11042
-
11043
- interface ReportingMonetaryValue {
11044
- readonly transaction: number;
11045
- readonly merchant: number;
11046
- readonly entity: number;
11047
- readonly usd: number;
11048
- readonly eur: number;
11049
- }
11050
-
11051
- interface ReportingOrderSummary {
11052
- readonly id: string;
11053
- readonly number: string;
11054
- readonly submitted_at: string;
11055
- }
11056
-
11057
- interface ReportingOrganizationSummary {
11058
- readonly id: string;
11059
- readonly name: string;
11060
- }
11061
-
11062
- interface ReportingProvince {
11063
- readonly code?: string;
11064
- readonly name: string;
11065
- }
11066
-
11067
- interface ReportingReconciliation {
11068
- readonly date: string;
11069
- readonly month: number;
11070
- readonly year: number;
11071
- }
11072
-
11073
- interface ReportingReturn {
11074
- readonly placeholder: string;
11075
- }
11076
-
11077
- interface ReportingShopperFees {
11078
- readonly fuel: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11079
- readonly remote_area: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11080
- readonly oversize: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11081
- readonly ccf: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11082
- readonly emergency: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11083
- readonly peak: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11084
- }
11085
-
11086
- interface ReportingUsd {
11087
- readonly usd: number;
11088
- }
11089
-
11090
- interface ReportingVatRemittance {
11091
- readonly currency: string;
11092
- readonly rate: io.flow.billing.reporting.csv.v0.models.ReportingVatRemittanceRate;
11093
- }
11094
-
11095
- interface ReportingVatRemittanceRate {
11096
- readonly entity: number;
11097
- }
11098
-
11099
- interface ReportingVendor {
11100
- readonly id: string;
11215
+ readonly is: io.flow.billing.reporting.v0.models.ReportingFulfillmentIs;
11216
+ readonly has: io.flow.billing.reporting.v0.models.ReportingFulfillmentHas;
11217
+ readonly fx: io.flow.billing.reporting.v0.models.ReportingFx;
11218
+ readonly business?: io.flow.billing.reporting.v0.models.ReportingBusiness;
11101
11219
  }
11102
11220
 
11103
11221
  interface SalesRecord {
11104
11222
  readonly id: string;
11105
- readonly parent?: io.flow.billing.reporting.csv.v0.models.RecordReference;
11106
- readonly merchant: io.flow.billing.reporting.csv.v0.models.ReportingOrganizationSummary;
11107
- readonly order: io.flow.billing.reporting.csv.v0.models.ReportingOrderSummary;
11108
- readonly entity: io.flow.billing.reporting.csv.v0.models.ReportingEntity;
11109
- readonly vendor: io.flow.billing.reporting.csv.v0.models.ReportingVendor;
11110
- readonly currencies: io.flow.billing.reporting.csv.v0.models.ReportingCurrencies;
11111
- readonly conversion_rate: io.flow.billing.reporting.csv.v0.models.ReportingConversionRates;
11112
- readonly reconciliation: io.flow.billing.reporting.csv.v0.models.ReportingReconciliation;
11113
- readonly merchant_subsidies: io.flow.billing.reporting.csv.v0.models.ReportingMerchantSubsidies;
11114
- readonly merchant_fees: io.flow.billing.reporting.csv.v0.models.ReportingMerchantFees;
11115
- readonly merchant_transactions: io.flow.billing.reporting.csv.v0.models.ReportingMerchantTransactions;
11116
- readonly debug: io.flow.billing.reporting.csv.v0.models.ReportingDebug;
11223
+ readonly parent?: io.flow.billing.reporting.v0.models.RecordReference;
11224
+ readonly merchant: io.flow.billing.reporting.v0.models.ReportingOrganizationSummary;
11225
+ readonly order: io.flow.billing.reporting.v0.models.ReportingOrderSummary;
11226
+ readonly entity: io.flow.billing.reporting.v0.models.ReportingEntity;
11227
+ readonly vendor: io.flow.billing.reporting.v0.models.ReportingVendor;
11228
+ readonly currencies: io.flow.billing.reporting.v0.models.ReportingCurrencies;
11229
+ readonly conversion_rate: io.flow.billing.reporting.v0.models.ReportingConversionRates;
11230
+ readonly reconciliation: io.flow.billing.reporting.v0.models.ReportingReconciliation;
11231
+ readonly merchant_subsidies: io.flow.billing.reporting.v0.models.ReportingMerchantSubsidies;
11232
+ readonly merchant_fees: io.flow.billing.reporting.v0.models.ReportingMerchantFees;
11233
+ readonly merchant_transactions: io.flow.billing.reporting.v0.models.ReportingMerchantTransactions;
11234
+ readonly debug: io.flow.billing.reporting.v0.models.ReportingDebug;
11117
11235
  readonly fulfillment: io.flow.billing.reporting.csv.v0.models.ReportingFulfillment;
11118
- readonly vat_remittance: io.flow.billing.reporting.csv.v0.models.ReportingVatRemittance;
11119
- readonly marked_as_final: io.flow.billing.reporting.csv.v0.models.MarkedAsFinal;
11120
- }
11121
-
11122
- interface TransactionReference {
11123
- readonly id: string;
11236
+ readonly vat_remittance: io.flow.billing.reporting.v0.models.ReportingVatRemittance;
11237
+ readonly marked_as_final: io.flow.billing.reporting.v0.models.MarkedAsFinal;
11124
11238
  }
11125
11239
  }
11126
11240
 
@@ -12428,6 +12542,12 @@ declare namespace io.flow.experience.v0.unions {
12428
12542
  declare namespace io.flow.payment.request.bundle.v0.models {
12429
12543
  interface PaymentRequestBilling {
12430
12544
  readonly fees: io.flow.payment.request.bundle.v0.models.PaymentRequestBillingFees;
12545
+ readonly currency_rate?: io.flow.payment.request.bundle.v0.models.PaymentRequestBillingCurrencyRate;
12546
+ }
12547
+
12548
+ interface PaymentRequestBillingCurrencyRate {
12549
+ readonly base_amount: number;
12550
+ readonly base_currency: string;
12431
12551
  }
12432
12552
 
12433
12553
  interface PaymentRequestBillingFees {
@@ -13435,6 +13555,7 @@ declare namespace io.flow.price.v0.unions {
13435
13555
  }
13436
13556
 
13437
13557
  declare namespace io.flow.trueup.v0.enums {
13558
+ type CarrierChargeReason = 'return_to_origin' | 'rejection' | 'other';
13438
13559
  type TrueupSurchargeType =
13439
13560
  | 'fuel'
13440
13561
  | 'remote_area'
@@ -14730,6 +14851,7 @@ declare namespace io.flow.billing.internal.v0.enums {
14730
14851
  | 'tax'
14731
14852
  | 'duty'
14732
14853
  | 'trueup'
14854
+ | 'carrier_charge'
14733
14855
  | 'all';
14734
14856
  type BillingStatementBatchFileKey = 'summary';
14735
14857
  type BillingTransactionStatus = 'pending' | 'pending_proof' | 'posted';
@@ -14754,7 +14876,9 @@ declare namespace io.flow.billing.internal.v0.enums {
14754
14876
  | 'channel_billed'
14755
14877
  | 'tax'
14756
14878
  | 'duty'
14757
- | 'trueup';
14879
+ | 'trueup'
14880
+ | 'carrier_charge';
14881
+ type CarrierChargeTransactionType = 'adjustment' | 'reversal' | 'charge';
14758
14882
  type ChannelBilledTransactionType =
14759
14883
  | 'adjustment'
14760
14884
  | 'reversal'
@@ -14800,6 +14924,7 @@ declare namespace io.flow.billing.internal.v0.enums {
14800
14924
  | 'fulfillment_external'
14801
14925
  | 'fulfillment_order_combined_shipment'
14802
14926
  | 'fulfillment_order_time'
14927
+ | 'return_refund'
14803
14928
  | 'label_tracking_summary'
14804
14929
  | 'label_invoice_request'
14805
14930
  | 'carrier_charge'
@@ -14811,6 +14936,7 @@ declare namespace io.flow.billing.internal.v0.enums {
14811
14936
  | 'refund'
14812
14937
  | 'refund_over_capture'
14813
14938
  | 'sales_record'
14939
+ | 'refund_record'
14814
14940
  | 'statement_batch'
14815
14941
  | 'statement_email'
14816
14942
  | 'statement_summary_email'
@@ -15111,6 +15237,7 @@ declare namespace io.flow.billing.internal.v0.models {
15111
15237
  readonly tax: io.flow.common.v0.models.Price;
15112
15238
  readonly duty: io.flow.common.v0.models.Price;
15113
15239
  readonly trueup: io.flow.common.v0.models.Price;
15240
+ readonly carrier_charge: io.flow.common.v0.models.Price;
15114
15241
  readonly ending_balance: io.flow.common.v0.models.Price;
15115
15242
  }
15116
15243
 
@@ -15125,6 +15252,19 @@ declare namespace io.flow.billing.internal.v0.models {
15125
15252
  readonly statement?: io.flow.billing.internal.v0.models.BillingStatementReference;
15126
15253
  }
15127
15254
 
15255
+ interface CarrierChargeTransaction {
15256
+ readonly discriminator: 'carrier_charge_transaction';
15257
+ readonly order: io.flow.billing.internal.v0.models.BillingOrderTransactionOrderReference;
15258
+ readonly id: string;
15259
+ readonly type: io.flow.billing.internal.v0.enums.BillingTransactionType;
15260
+ readonly status: io.flow.billing.internal.v0.enums.BillingTransactionStatus;
15261
+ readonly posted_at?: string;
15262
+ readonly value: io.flow.common.v0.models.Price;
15263
+ readonly description: string;
15264
+ readonly statement?: io.flow.billing.internal.v0.models.BillingStatementReference;
15265
+ readonly created_at: string;
15266
+ }
15267
+
15128
15268
  interface ChannelAccount {
15129
15269
  readonly channel: io.flow.common.v0.models.ChannelReference;
15130
15270
  readonly id: string;
@@ -15867,7 +16007,8 @@ declare namespace io.flow.billing.internal.v0.unions {
15867
16007
  | io.flow.billing.internal.v0.models.ChannelBilledTransaction
15868
16008
  | io.flow.billing.internal.v0.models.TaxTransaction
15869
16009
  | io.flow.billing.internal.v0.models.DutyTransaction
15870
- | io.flow.billing.internal.v0.models.TrueupTransaction;
16010
+ | io.flow.billing.internal.v0.models.TrueupTransaction
16011
+ | io.flow.billing.internal.v0.models.CarrierChargeTransaction;
15871
16012
  }
15872
16013
 
15873
16014
  declare namespace io.flow.billing.v0.enums {
@@ -15901,6 +16042,7 @@ declare namespace io.flow.billing.v0.enums {
15901
16042
  | 'shipping_label'
15902
16043
  | 'shipping_label_service'
15903
16044
  | 'trueup'
16045
+ | 'carrier_charge'
15904
16046
  | 'shipping_label_revenue_share'
15905
16047
  | 'platform_fee'
15906
16048
  | 'tax'
@@ -16168,6 +16310,13 @@ declare namespace io.flow.billing.v0.models {
16168
16310
  readonly updated_at: string;
16169
16311
  }
16170
16312
 
16313
+ interface TransactionMetadataCarrierCharge {
16314
+ readonly discriminator: 'carrier_charge';
16315
+ readonly reason: io.flow.trueup.v0.enums.CarrierChargeReason;
16316
+ readonly carrier_id: string;
16317
+ readonly carrier_tracking_number: string;
16318
+ }
16319
+
16171
16320
  interface TransactionMetadataChannel {
16172
16321
  readonly discriminator: 'channel';
16173
16322
  readonly method: string;
@@ -16266,6 +16415,7 @@ declare namespace io.flow.billing.v0.unions {
16266
16415
  | io.flow.billing.v0.models.TransactionMetadataShippingLabel
16267
16416
  | io.flow.billing.v0.models.TransactionMetadataChannel
16268
16417
  | io.flow.billing.v0.models.TransactionMetadataTrueup
16418
+ | io.flow.billing.v0.models.TransactionMetadataCarrierCharge
16269
16419
  | io.flow.billing.v0.models.TransactionMetadataManual;
16270
16420
  }
16271
16421
 
@@ -18079,7 +18229,10 @@ declare namespace io.flow.internal.v0.enums {
18079
18229
  | 'capture_transactions_ignored_fully_refunded_count'
18080
18230
  | 'capture_transactions_ignored_other_count'
18081
18231
  | 'capture_transactions_ignored_previously_processed_count'
18232
+ | 'capture_queued_count'
18082
18233
  | 'capture_transactions_total'
18234
+ | 'carrier_charge_transactions_count'
18235
+ | 'carrier_charge_transactions_total'
18083
18236
  | 'channel_transactions_processing_count'
18084
18237
  | 'channel_transactions_processing_total'
18085
18238
  | 'channel_transactions_adjustment_count'
@@ -18109,6 +18262,7 @@ declare namespace io.flow.internal.v0.enums {
18109
18262
  | 'refund_transactions_ignored_fully_refunded_count'
18110
18263
  | 'refund_transactions_ignored_other_count'
18111
18264
  | 'refund_transactions_ignored_previously_processed_count'
18265
+ | 'refund_queued_count'
18112
18266
  | 'refund_transactions_total'
18113
18267
  | 'reversal_order_cancellations_transactions_count'
18114
18268
  | 'reversal_order_cancellations_transactions_total'
@@ -18154,7 +18308,12 @@ declare namespace io.flow.internal.v0.enums {
18154
18308
  | 'percentage_billable_label_transactions_with_carrier_charge_20_days'
18155
18309
  | 'percentage_billable_label_transactions_with_carrier_charge_30_days'
18156
18310
  | 'percentage_billable_label_transactions_with_carrier_charge_60_days'
18157
- | 'percentage_billable_label_transactions_with_carrier_charge_90_days';
18311
+ | 'percentage_billable_label_transactions_with_carrier_charge_90_days'
18312
+ | 'percentage_bank_account_updates'
18313
+ | 'percentage_bank_account_unique_updates'
18314
+ | 'negative_balance_number_accounts'
18315
+ | 'negative_balance_total'
18316
+ | 'negative_balance_single_account_max';
18158
18317
  type BillingStatementAttachmentKey =
18159
18318
  | 'invoice'
18160
18319
  | 'statement'
@@ -18171,6 +18330,7 @@ declare namespace io.flow.internal.v0.enums {
18171
18330
  | 'tax'
18172
18331
  | 'duty'
18173
18332
  | 'trueup'
18333
+ | 'carrier_charge'
18174
18334
  | 'all';
18175
18335
  type BillingStatementBatchFileKey = 'summary';
18176
18336
  type BillingTransactionStatus = 'pending' | 'pending_proof' | 'posted';
@@ -18195,7 +18355,8 @@ declare namespace io.flow.internal.v0.enums {
18195
18355
  | 'channel_billed'
18196
18356
  | 'tax'
18197
18357
  | 'duty'
18198
- | 'trueup';
18358
+ | 'trueup'
18359
+ | 'carrier_charge';
18199
18360
  type BlazeCheckoutEvent =
18200
18361
  | 'begin_checkout'
18201
18362
  | 'select_promotion'
@@ -18209,8 +18370,9 @@ declare namespace io.flow.internal.v0.enums {
18209
18370
  | 'dtce'
18210
18371
  | 'dtce_two_calls'
18211
18372
  | 'dtce_with_deminimis'
18212
- | 'dtce_merged_with_tax';
18213
- type CarrierChargeOtherReason = 'return_to_origin' | 'other';
18373
+ | 'dtce_merged_with_tax'
18374
+ | 'dtce_with_inclusive_pricing';
18375
+ type CarrierChargeTransactionType = 'adjustment' | 'reversal' | 'charge';
18214
18376
  type CarrierLabelGenerationMethod = 'direct' | 'easypost';
18215
18377
  type CarrierValidationStatus = 'success' | 'error';
18216
18378
  type CatalogImportType =
@@ -18266,6 +18428,7 @@ declare namespace io.flow.internal.v0.enums {
18266
18428
  | 'usps_first_mile'
18267
18429
  | 'oversize_piece'
18268
18430
  | 'incoterm_dap'
18431
+ | 'emergency_situation'
18269
18432
  | 'remote_area_delivery';
18270
18433
  type ChargebackPaymentStatus = 'captured' | 'refunded';
18271
18434
  type ChargebackProcessStatus = 'inquiry' | 'open' | 'closed';
@@ -18661,6 +18824,8 @@ declare namespace io.flow.internal.v0.enums {
18661
18824
  | 'daily_value_deleted'
18662
18825
  | 'sales_record_upserted'
18663
18826
  | 'sales_record_deleted'
18827
+ | 'revenue_record_upserted'
18828
+ | 'revenue_record_deleted'
18664
18829
  | 'calculator_organization_settings_upserted'
18665
18830
  | 'calculator_organization_settings_deleted'
18666
18831
  | 'carrier_account_upserted_v2'
@@ -19112,6 +19277,7 @@ declare namespace io.flow.internal.v0.enums {
19112
19277
  | 'dtce'
19113
19278
  | 'restrictions'
19114
19279
  | 'organization_status'
19280
+ | 'category_constraints'
19115
19281
  | 'miscellaneous';
19116
19282
  type OnboardingAutomationProcessState =
19117
19283
  | 'not_started'
@@ -19242,6 +19408,7 @@ declare namespace io.flow.internal.v0.enums {
19242
19408
  | 'refund'
19243
19409
  | 'refund_over_capture'
19244
19410
  | 'sales_record'
19411
+ | 'refund_record'
19245
19412
  | 'statement_batch'
19246
19413
  | 'statement_email'
19247
19414
  | 'statement_summary_email'
@@ -19278,6 +19445,7 @@ declare namespace io.flow.internal.v0.enums {
19278
19445
  | 'sales_record'
19279
19446
  | 'trueup_overview'
19280
19447
  | 'non_channel_payment_bank_account';
19448
+ type ReportingFulfillmentIsVirtual = 'all' | 'mixed' | 'none';
19281
19449
  type ReportingScheme =
19282
19450
  | 'immediate_reporting_to_tax_authority'
19283
19451
  | 'periodic_reporting_to_tax_authority'
@@ -19292,6 +19460,7 @@ declare namespace io.flow.internal.v0.enums {
19292
19460
  | 'escalated'
19293
19461
  | 'accepted'
19294
19462
  | 'restricted';
19463
+ type RevenueRecordType = 'sales' | 'refund';
19295
19464
  type RiskCheck = 'three_d_secure';
19296
19465
  type RiskEvaluation =
19297
19466
  | 'Pending'
@@ -19340,7 +19509,8 @@ declare namespace io.flow.internal.v0.enums {
19340
19509
  | 'online_payment'
19341
19510
  | 'order_update'
19342
19511
  | 'product_restriction_result'
19343
- | 'product_sync';
19512
+ | 'product_sync'
19513
+ | 'webhook_registrations';
19344
19514
  type ShopifyMarketsTradeSector =
19345
19515
  | 'apparel_and_accessories'
19346
19516
  | 'beauty_and_cosmetics'
@@ -20454,6 +20624,7 @@ declare namespace io.flow.internal.v0.models {
20454
20624
  readonly tax: io.flow.common.v0.models.Price;
20455
20625
  readonly duty: io.flow.common.v0.models.Price;
20456
20626
  readonly trueup: io.flow.common.v0.models.Price;
20627
+ readonly carrier_charge: io.flow.common.v0.models.Price;
20457
20628
  readonly ending_balance: io.flow.common.v0.models.Price;
20458
20629
  }
20459
20630
 
@@ -20896,7 +21067,7 @@ declare namespace io.flow.internal.v0.models {
20896
21067
  interface CarrierChargeFormOther {
20897
21068
  readonly discriminator: 'other';
20898
21069
  readonly id: string;
20899
- readonly reason: io.flow.internal.v0.enums.CarrierChargeOtherReason;
21070
+ readonly reason: io.flow.trueup.v0.enums.CarrierChargeReason;
20900
21071
  readonly organization_id: string;
20901
21072
  readonly order_number: string;
20902
21073
  readonly carrier_id: string;
@@ -20911,6 +21082,19 @@ declare namespace io.flow.internal.v0.models {
20911
21082
  readonly attributes?: Record<string, string>;
20912
21083
  }
20913
21084
 
21085
+ interface CarrierChargeTransaction {
21086
+ readonly discriminator: 'carrier_charge_transaction';
21087
+ readonly order: io.flow.internal.v0.models.BillingOrderTransactionOrderReference;
21088
+ readonly id: string;
21089
+ readonly type: io.flow.internal.v0.enums.BillingTransactionType;
21090
+ readonly status: io.flow.internal.v0.enums.BillingTransactionStatus;
21091
+ readonly posted_at?: string;
21092
+ readonly value: io.flow.common.v0.models.Price;
21093
+ readonly description: string;
21094
+ readonly statement?: io.flow.internal.v0.models.BillingStatementReference;
21095
+ readonly created_at: string;
21096
+ }
21097
+
20914
21098
  interface CarrierChargeUnits {
20915
21099
  readonly currency: string;
20916
21100
  readonly weight: io.flow.units.v0.enums.UnitOfWeight;
@@ -25824,6 +26008,17 @@ declare namespace io.flow.internal.v0.models {
25824
26008
  readonly items: io.flow.order.management.v0.models.FulfillmentItem[];
25825
26009
  }
25826
26010
 
26011
+ interface FulfillmentShopperBreakdown {
26012
+ readonly shipping: io.flow.internal.v0.models.ReportingMonetaryValue;
26013
+ readonly fees: io.flow.internal.v0.models.ReportingShopperFees;
26014
+ readonly product: io.flow.internal.v0.models.ReportingMonetaryValue;
26015
+ readonly subtotal: io.flow.internal.v0.models.ReportingMonetaryValue;
26016
+ readonly tax: io.flow.internal.v0.models.ReportingMonetaryValue;
26017
+ readonly duty: io.flow.internal.v0.models.ReportingMonetaryValue;
26018
+ readonly discount: io.flow.internal.v0.models.ReportingMonetaryValue;
26019
+ readonly total: io.flow.internal.v0.models.ReportingMonetaryValue;
26020
+ }
26021
+
25827
26022
  interface FulfillmentSnapshot {
25828
26023
  readonly tracking_source: string;
25829
26024
  readonly fulfillment_status?: string;
@@ -27300,6 +27495,11 @@ declare namespace io.flow.internal.v0.models {
27300
27495
  readonly shipped_item_values: io.flow.internal.v0.models.ShippedItemValue[];
27301
27496
  }
27302
27497
 
27498
+ interface JeanDemoItem {
27499
+ readonly id: string;
27500
+ readonly name: string;
27501
+ }
27502
+
27303
27503
  interface Key {
27304
27504
  readonly id: string;
27305
27505
  readonly created_at: string;
@@ -28002,6 +28202,11 @@ declare namespace io.flow.internal.v0.models {
28002
28202
  readonly number: string;
28003
28203
  }
28004
28204
 
28205
+ interface MarkedAsFinal {
28206
+ readonly products: boolean;
28207
+ readonly shipping: boolean;
28208
+ }
28209
+
28005
28210
  interface MarketingGatewayChannel {
28006
28211
  readonly id: string;
28007
28212
  readonly platform: io.flow.internal.v0.enums.MarketingGatewayPlatform;
@@ -30339,6 +30544,10 @@ declare namespace io.flow.internal.v0.models {
30339
30544
  readonly orders_since_submitted_at?: string;
30340
30545
  }
30341
30546
 
30547
+ interface RecordReference {
30548
+ readonly id: string;
30549
+ }
30550
+
30342
30551
  interface Redirect {
30343
30552
  readonly id: string;
30344
30553
  readonly post_payment_redirect_urls: io.flow.payment.v0.models.PostPaymentRedirectUrls;
@@ -30407,6 +30616,52 @@ declare namespace io.flow.internal.v0.models {
30407
30616
  readonly task_id: string;
30408
30617
  }
30409
30618
 
30619
+ interface ReportingAuthorizationReference {
30620
+ readonly id: string;
30621
+ }
30622
+
30623
+ interface ReportingBusiness {
30624
+ readonly vat_registration_number: string;
30625
+ readonly name?: string;
30626
+ }
30627
+
30628
+ interface ReportingConversionRates {
30629
+ readonly merchant: number;
30630
+ readonly entity: number;
30631
+ readonly usd: number;
30632
+ readonly eur: number;
30633
+ }
30634
+
30635
+ interface ReportingCountry {
30636
+ readonly code: string;
30637
+ readonly is_eu: boolean;
30638
+ }
30639
+
30640
+ interface ReportingCurrencies {
30641
+ readonly transaction: string;
30642
+ readonly merchant: string;
30643
+ readonly entity: string;
30644
+ }
30645
+
30646
+ interface ReportingDebug {
30647
+ readonly console_order_link: string;
30648
+ readonly allocation_order_totals_delta?: number;
30649
+ readonly allocation_order_item_discount_delta?: number;
30650
+ readonly missing_item_subsidies?: io.flow.internal.v0.models.ReportingDebugMissingSubsidies;
30651
+ readonly missing_shipping_subsidies?: io.flow.internal.v0.models.ReportingDebugMissingSubsidies;
30652
+ }
30653
+
30654
+ interface ReportingDebugMissingSubsidies {
30655
+ readonly price?: boolean;
30656
+ readonly tax?: boolean;
30657
+ readonly duty?: boolean;
30658
+ }
30659
+
30660
+ interface ReportingDestination {
30661
+ readonly country: io.flow.internal.v0.models.ReportingCountry;
30662
+ readonly province?: io.flow.internal.v0.models.ReportingProvince;
30663
+ }
30664
+
30410
30665
  interface ReportingDetails {
30411
30666
  readonly accounting_transactions?: any /*object*/[];
30412
30667
  readonly fulfillments?: any /*object*/[];
@@ -30415,6 +30670,166 @@ declare namespace io.flow.internal.v0.models {
30415
30670
  readonly refund_records?: any /*object*/[];
30416
30671
  }
30417
30672
 
30673
+ interface ReportingEntity {
30674
+ readonly id: string;
30675
+ }
30676
+
30677
+ interface ReportingFulfillment {
30678
+ readonly id: string;
30679
+ readonly sequence_number: number;
30680
+ readonly fulfilled_at: string;
30681
+ readonly completes_order: boolean;
30682
+ readonly payment: io.flow.internal.v0.models.ReportingPayment;
30683
+ readonly refund?: io.flow.internal.v0.models.ReportingRefundReference;
30684
+ readonly value: io.flow.internal.v0.models.FulfillmentShopperBreakdown;
30685
+ readonly dispatch_country?: io.flow.internal.v0.models.ReportingCountry;
30686
+ readonly destination?: io.flow.internal.v0.models.ReportingDestination;
30687
+ readonly shipment?: io.flow.internal.v0.models.ReportingShipment;
30688
+ readonly is: io.flow.internal.v0.models.ReportingFulfillmentIs;
30689
+ readonly has: io.flow.internal.v0.models.ReportingFulfillmentHas;
30690
+ readonly fx: io.flow.internal.v0.models.ReportingFx;
30691
+ readonly business?: io.flow.internal.v0.models.ReportingBusiness;
30692
+ }
30693
+
30694
+ interface ReportingFulfillmentHas {
30695
+ readonly zero_vat_product: boolean;
30696
+ }
30697
+
30698
+ interface ReportingFulfillmentIs {
30699
+ readonly replacement: boolean;
30700
+ readonly virtual: io.flow.internal.v0.enums.ReportingFulfillmentIsVirtual;
30701
+ readonly duties_guaranteed: boolean;
30702
+ readonly wyol: boolean;
30703
+ readonly b2b: boolean;
30704
+ readonly domestic: boolean;
30705
+ }
30706
+
30707
+ interface ReportingFx {
30708
+ readonly shipping: io.flow.internal.v0.models.ReportingUsd;
30709
+ readonly fees: io.flow.internal.v0.models.ReportingUsd;
30710
+ readonly product: io.flow.internal.v0.models.ReportingUsd;
30711
+ readonly tax: io.flow.internal.v0.models.ReportingUsd;
30712
+ readonly duty: io.flow.internal.v0.models.ReportingUsd;
30713
+ readonly total: io.flow.internal.v0.models.ReportingUsd;
30714
+ }
30715
+
30716
+ interface ReportingMerchantBreakdown {
30717
+ readonly subsidies: io.flow.internal.v0.models.ReportingMerchantSubsidies;
30718
+ readonly fees: io.flow.internal.v0.models.ReportingMerchantFees;
30719
+ readonly transactions: io.flow.internal.v0.models.ReportingMerchantTransactions;
30720
+ }
30721
+
30722
+ interface ReportingMerchantFees {
30723
+ readonly duty_guarantee: io.flow.internal.v0.models.ReportingMonetaryValue;
30724
+ readonly mor: io.flow.internal.v0.models.ReportingMonetaryValue;
30725
+ readonly fraud: io.flow.internal.v0.models.ReportingMonetaryValue;
30726
+ readonly fx: io.flow.internal.v0.models.ReportingMonetaryValue;
30727
+ readonly processing: io.flow.internal.v0.models.ReportingMonetaryValue;
30728
+ readonly rate_lock: io.flow.internal.v0.models.ReportingMonetaryValue;
30729
+ readonly transfer: io.flow.internal.v0.models.ReportingMonetaryValue;
30730
+ }
30731
+
30732
+ interface ReportingMerchantSubsidies {
30733
+ readonly shipping: io.flow.internal.v0.models.ReportingMonetaryValue;
30734
+ readonly tax: io.flow.internal.v0.models.ReportingMonetaryValue;
30735
+ readonly duty: io.flow.internal.v0.models.ReportingMonetaryValue;
30736
+ readonly ccf: io.flow.internal.v0.models.ReportingMonetaryValue;
30737
+ }
30738
+
30739
+ interface ReportingMerchantTransactions {
30740
+ readonly adjustment: io.flow.internal.v0.models.ReportingMonetaryValue;
30741
+ readonly reversal: io.flow.internal.v0.models.ReportingMonetaryValue;
30742
+ readonly tax: io.flow.internal.v0.models.ReportingMonetaryValue;
30743
+ readonly duty: io.flow.internal.v0.models.ReportingMonetaryValue;
30744
+ readonly freight: io.flow.internal.v0.models.ReportingMonetaryValue;
30745
+ readonly refund: io.flow.internal.v0.models.ReportingMonetaryValue;
30746
+ }
30747
+
30748
+ interface ReportingMonetaryValue {
30749
+ readonly transaction: number;
30750
+ readonly merchant: number;
30751
+ readonly entity: number;
30752
+ readonly usd: number;
30753
+ readonly eur: number;
30754
+ }
30755
+
30756
+ interface ReportingOrderSummary {
30757
+ readonly id: string;
30758
+ readonly number: string;
30759
+ readonly submitted_at: string;
30760
+ }
30761
+
30762
+ interface ReportingOrganizationSummary {
30763
+ readonly id: string;
30764
+ readonly name: string;
30765
+ }
30766
+
30767
+ interface ReportingPayment {
30768
+ readonly metadata?: io.flow.internal.v0.models.ReportingPaymentMetadata;
30769
+ readonly psp: io.flow.internal.v0.models.ReportingMonetaryValue;
30770
+ readonly credit: io.flow.internal.v0.models.ReportingMonetaryValue;
30771
+ readonly total: io.flow.internal.v0.models.ReportingMonetaryValue;
30772
+ }
30773
+
30774
+ interface ReportingPaymentMetadata {
30775
+ readonly gateway: io.flow.internal.v0.enums.Processor;
30776
+ readonly method: string;
30777
+ readonly psp_reference?: string;
30778
+ readonly authorization?: io.flow.internal.v0.models.ReportingAuthorizationReference;
30779
+ readonly settlement_date: string;
30780
+ readonly additional_authorizations?: io.flow.internal.v0.models.ReportingPaymentMetadataAdditionalAuthorizations;
30781
+ }
30782
+
30783
+ interface ReportingPaymentMetadataAdditionalAuthorizations {
30784
+ readonly ids: string;
30785
+ }
30786
+
30787
+ interface ReportingProvince {
30788
+ readonly code?: string;
30789
+ readonly name: string;
30790
+ }
30791
+
30792
+ interface ReportingReconciliation {
30793
+ readonly date: string;
30794
+ readonly month: number;
30795
+ readonly year: number;
30796
+ }
30797
+
30798
+ interface ReportingRefundReference {
30799
+ readonly id: string;
30800
+ }
30801
+
30802
+ interface ReportingShipment {
30803
+ readonly carrier: string;
30804
+ readonly tracking_number?: string;
30805
+ }
30806
+
30807
+ interface ReportingShopperFees {
30808
+ readonly fuel: io.flow.internal.v0.models.ReportingMonetaryValue;
30809
+ readonly remote_area: io.flow.internal.v0.models.ReportingMonetaryValue;
30810
+ readonly oversize: io.flow.internal.v0.models.ReportingMonetaryValue;
30811
+ readonly ccf: io.flow.internal.v0.models.ReportingMonetaryValue;
30812
+ readonly emergency: io.flow.internal.v0.models.ReportingMonetaryValue;
30813
+ readonly peak: io.flow.internal.v0.models.ReportingMonetaryValue;
30814
+ }
30815
+
30816
+ interface ReportingUsd {
30817
+ readonly usd: number;
30818
+ }
30819
+
30820
+ interface ReportingVatRemittance {
30821
+ readonly currency: string;
30822
+ readonly rate: io.flow.internal.v0.models.ReportingVatRemittanceRate;
30823
+ }
30824
+
30825
+ interface ReportingVatRemittanceRate {
30826
+ readonly entity: number;
30827
+ }
30828
+
30829
+ interface ReportingVendor {
30830
+ readonly id: string;
30831
+ }
30832
+
30418
30833
  interface RequeueRequestForm {
30419
30834
  readonly product_ids?: string[];
30420
30835
  readonly hs6_codes?: string[];
@@ -30467,6 +30882,7 @@ declare namespace io.flow.internal.v0.models {
30467
30882
  readonly status?: io.flow.internal.v0.enums.RestrictionStatus;
30468
30883
  readonly statuses?: io.flow.internal.v0.enums.RestrictionStatus[];
30469
30884
  readonly rule_ids?: string[];
30885
+ readonly user_ids?: string[];
30470
30886
  readonly categories?: string[];
30471
30887
  readonly product_name_query?: string;
30472
30888
  readonly positive_keywords?: string[];
@@ -30689,6 +31105,7 @@ declare namespace io.flow.internal.v0.models {
30689
31105
  readonly posting_cutoff: string;
30690
31106
  readonly trigger: io.flow.internal.v0.unions.ReturnTrigger;
30691
31107
  readonly returned_at: string;
31108
+ readonly completes_order: boolean;
30692
31109
  }
30693
31110
 
30694
31111
  interface ReturnPolicyDeleted {
@@ -30735,6 +31152,40 @@ declare namespace io.flow.internal.v0.models {
30735
31152
  readonly refund: io.flow.payment.v0.models.RefundReference;
30736
31153
  }
30737
31154
 
31155
+ interface RevenueRecord {
31156
+ readonly id: string;
31157
+ readonly organization: io.flow.internal.v0.models.ReportingOrganizationSummary;
31158
+ readonly parent?: io.flow.internal.v0.models.RecordReference;
31159
+ readonly type: io.flow.internal.v0.enums.RevenueRecordType;
31160
+ readonly order: io.flow.internal.v0.models.ReportingOrderSummary;
31161
+ readonly entity: io.flow.internal.v0.models.ReportingEntity;
31162
+ readonly vendor: io.flow.internal.v0.models.ReportingVendor;
31163
+ readonly currencies: io.flow.internal.v0.models.ReportingCurrencies;
31164
+ readonly conversion_rate: io.flow.internal.v0.models.ReportingConversionRates;
31165
+ readonly reconciliation: io.flow.internal.v0.models.ReportingReconciliation;
31166
+ readonly merchant: io.flow.internal.v0.models.ReportingMerchantBreakdown;
31167
+ readonly fulfillment: io.flow.internal.v0.models.ReportingFulfillment;
31168
+ readonly vat_remittance: io.flow.internal.v0.models.ReportingVatRemittance;
31169
+ readonly marked_as_final: io.flow.internal.v0.models.MarkedAsFinal;
31170
+ readonly debug: io.flow.internal.v0.models.ReportingDebug;
31171
+ }
31172
+
31173
+ interface RevenueRecordDeleted {
31174
+ readonly discriminator: 'revenue_record_deleted';
31175
+ readonly event_id: string;
31176
+ readonly timestamp: string;
31177
+ readonly organization: string;
31178
+ readonly id: string;
31179
+ }
31180
+
31181
+ interface RevenueRecordUpserted {
31182
+ readonly discriminator: 'revenue_record_upserted';
31183
+ readonly event_id: string;
31184
+ readonly timestamp: string;
31185
+ readonly organization: string;
31186
+ readonly revenue_record: io.flow.internal.v0.models.RevenueRecord;
31187
+ }
31188
+
30738
31189
  interface RoutingAccount {
30739
31190
  readonly discriminator: 'routing_account';
30740
31191
  readonly processor: io.flow.internal.v0.enums.Processor;
@@ -33167,6 +33618,8 @@ declare namespace io.flow.internal.v0.unions {
33167
33618
  | io.flow.internal.v0.models.DailyValueDeleted
33168
33619
  | io.flow.internal.v0.models.SalesRecordUpserted
33169
33620
  | io.flow.internal.v0.models.SalesRecordDeleted
33621
+ | io.flow.internal.v0.models.RevenueRecordUpserted
33622
+ | io.flow.internal.v0.models.RevenueRecordDeleted
33170
33623
  | io.flow.internal.v0.models.CalculatorOrganizationSettingsUpserted
33171
33624
  | io.flow.internal.v0.models.CalculatorOrganizationSettingsDeleted
33172
33625
  | io.flow.internal.v0.models.CarrierAccountUpsertedV2
@@ -33704,7 +34157,8 @@ declare namespace io.flow.internal.v0.unions {
33704
34157
  | io.flow.internal.v0.models.ChannelBilledTransaction
33705
34158
  | io.flow.internal.v0.models.TaxTransaction
33706
34159
  | io.flow.internal.v0.models.DutyTransaction
33707
- | io.flow.internal.v0.models.TrueupTransaction;
34160
+ | io.flow.internal.v0.models.TrueupTransaction
34161
+ | io.flow.internal.v0.models.CarrierChargeTransaction;
33708
34162
  type TransactionSummary =
33709
34163
  | io.flow.internal.v0.models.PaymentSummaryV2
33710
34164
  | io.flow.internal.v0.models.FraudSummary;
@@ -34120,8 +34574,10 @@ export type CarrierChargeFormLabel =
34120
34574
  io.flow.internal.v0.models.CarrierChargeFormLabel;
34121
34575
  export type CarrierChargeFormOther =
34122
34576
  io.flow.internal.v0.models.CarrierChargeFormOther;
34123
- export type CarrierChargeOtherReason =
34124
- io.flow.internal.v0.enums.CarrierChargeOtherReason;
34577
+ export type CarrierChargeTransaction =
34578
+ io.flow.internal.v0.models.CarrierChargeTransaction;
34579
+ export type CarrierChargeTransactionType =
34580
+ io.flow.internal.v0.enums.CarrierChargeTransactionType;
34125
34581
  export type CarrierChargeUnits = io.flow.internal.v0.models.CarrierChargeUnits;
34126
34582
  export type CarrierCredentials = io.flow.internal.v0.unions.CarrierCredentials;
34127
34583
  export type CarrierInvoice = io.flow.internal.v0.models.CarrierInvoice;
@@ -35855,6 +36311,8 @@ export type FulfillmentReference =
35855
36311
  io.flow.internal.v0.models.FulfillmentReference;
35856
36312
  export type FulfillmentShipmentTracking =
35857
36313
  io.flow.internal.v0.models.FulfillmentShipmentTracking;
36314
+ export type FulfillmentShopperBreakdown =
36315
+ io.flow.internal.v0.models.FulfillmentShopperBreakdown;
35858
36316
  export type FulfillmentSnapshot =
35859
36317
  io.flow.internal.v0.models.FulfillmentSnapshot;
35860
36318
  export type FulfillmentSubsidyBreakdown =
@@ -36151,6 +36609,7 @@ export type ItemSummary = io.flow.internal.v0.models.ItemSummary;
36151
36609
  export type ItemType = io.flow.internal.v0.enums.ItemType;
36152
36610
  export type ItemValuesForm = io.flow.internal.v0.models.ItemValuesForm;
36153
36611
  export type ItemsShipped = io.flow.internal.v0.models.ItemsShipped;
36612
+ export type JeanDemoItem = io.flow.internal.v0.models.JeanDemoItem;
36154
36613
  export type Key = io.flow.internal.v0.models.Key;
36155
36614
  export type KeyReference = io.flow.internal.v0.models.KeyReference;
36156
36615
  export type KeywordType = io.flow.internal.v0.enums.KeywordType;
@@ -36319,6 +36778,7 @@ export type ManualTransactionForm =
36319
36778
  io.flow.internal.v0.models.ManualTransactionForm;
36320
36779
  export type ManualTransactionFormOrder =
36321
36780
  io.flow.internal.v0.models.ManualTransactionFormOrder;
36781
+ export type MarkedAsFinal = io.flow.internal.v0.models.MarkedAsFinal;
36322
36782
  export type MarketingGatewayAccountConnectionStatus =
36323
36783
  io.flow.internal.v0.enums.MarketingGatewayAccountConnectionStatus;
36324
36784
  export type MarketingGatewayChannel =
@@ -36993,6 +37453,7 @@ export type ReboundConfigurationForm =
36993
37453
  io.flow.internal.v0.models.ReboundConfigurationForm;
36994
37454
  export type ReboundConfigurationStatus =
36995
37455
  io.flow.internal.v0.enums.ReboundConfigurationStatus;
37456
+ export type RecordReference = io.flow.internal.v0.models.RecordReference;
36996
37457
  export type Redirect = io.flow.internal.v0.models.Redirect;
36997
37458
  export type RedirectActionCompleted =
36998
37459
  io.flow.internal.v0.models.RedirectActionCompleted;
@@ -37012,8 +37473,64 @@ export type ReportRuleDecision = io.flow.internal.v0.models.ReportRuleDecision;
37012
37473
  export type ReportStatus = io.flow.internal.v0.enums.ReportStatus;
37013
37474
  export type ReportSummary = io.flow.internal.v0.models.ReportSummary;
37014
37475
  export type ReportType = io.flow.internal.v0.enums.ReportType;
37476
+ export type ReportingAuthorizationReference =
37477
+ io.flow.internal.v0.models.ReportingAuthorizationReference;
37478
+ export type ReportingBusiness = io.flow.internal.v0.models.ReportingBusiness;
37479
+ export type ReportingConversionRates =
37480
+ io.flow.internal.v0.models.ReportingConversionRates;
37481
+ export type ReportingCountry = io.flow.internal.v0.models.ReportingCountry;
37482
+ export type ReportingCurrencies =
37483
+ io.flow.internal.v0.models.ReportingCurrencies;
37484
+ export type ReportingDebug = io.flow.internal.v0.models.ReportingDebug;
37485
+ export type ReportingDebugMissingSubsidies =
37486
+ io.flow.internal.v0.models.ReportingDebugMissingSubsidies;
37487
+ export type ReportingDestination =
37488
+ io.flow.internal.v0.models.ReportingDestination;
37015
37489
  export type ReportingDetails = io.flow.internal.v0.models.ReportingDetails;
37490
+ export type ReportingEntity = io.flow.internal.v0.models.ReportingEntity;
37491
+ export type ReportingFulfillment =
37492
+ io.flow.internal.v0.models.ReportingFulfillment;
37493
+ export type ReportingFulfillmentHas =
37494
+ io.flow.internal.v0.models.ReportingFulfillmentHas;
37495
+ export type ReportingFulfillmentIs =
37496
+ io.flow.internal.v0.models.ReportingFulfillmentIs;
37497
+ export type ReportingFulfillmentIsVirtual =
37498
+ io.flow.internal.v0.enums.ReportingFulfillmentIsVirtual;
37499
+ export type ReportingFx = io.flow.internal.v0.models.ReportingFx;
37500
+ export type ReportingMerchantBreakdown =
37501
+ io.flow.internal.v0.models.ReportingMerchantBreakdown;
37502
+ export type ReportingMerchantFees =
37503
+ io.flow.internal.v0.models.ReportingMerchantFees;
37504
+ export type ReportingMerchantSubsidies =
37505
+ io.flow.internal.v0.models.ReportingMerchantSubsidies;
37506
+ export type ReportingMerchantTransactions =
37507
+ io.flow.internal.v0.models.ReportingMerchantTransactions;
37508
+ export type ReportingMonetaryValue =
37509
+ io.flow.internal.v0.models.ReportingMonetaryValue;
37510
+ export type ReportingOrderSummary =
37511
+ io.flow.internal.v0.models.ReportingOrderSummary;
37512
+ export type ReportingOrganizationSummary =
37513
+ io.flow.internal.v0.models.ReportingOrganizationSummary;
37514
+ export type ReportingPayment = io.flow.internal.v0.models.ReportingPayment;
37515
+ export type ReportingPaymentMetadata =
37516
+ io.flow.internal.v0.models.ReportingPaymentMetadata;
37517
+ export type ReportingPaymentMetadataAdditionalAuthorizations =
37518
+ io.flow.internal.v0.models.ReportingPaymentMetadataAdditionalAuthorizations;
37519
+ export type ReportingProvince = io.flow.internal.v0.models.ReportingProvince;
37520
+ export type ReportingReconciliation =
37521
+ io.flow.internal.v0.models.ReportingReconciliation;
37522
+ export type ReportingRefundReference =
37523
+ io.flow.internal.v0.models.ReportingRefundReference;
37016
37524
  export type ReportingScheme = io.flow.internal.v0.enums.ReportingScheme;
37525
+ export type ReportingShipment = io.flow.internal.v0.models.ReportingShipment;
37526
+ export type ReportingShopperFees =
37527
+ io.flow.internal.v0.models.ReportingShopperFees;
37528
+ export type ReportingUsd = io.flow.internal.v0.models.ReportingUsd;
37529
+ export type ReportingVatRemittance =
37530
+ io.flow.internal.v0.models.ReportingVatRemittance;
37531
+ export type ReportingVatRemittanceRate =
37532
+ io.flow.internal.v0.models.ReportingVatRemittanceRate;
37533
+ export type ReportingVendor = io.flow.internal.v0.models.ReportingVendor;
37017
37534
  export type RequeueRequestForm = io.flow.internal.v0.models.RequeueRequestForm;
37018
37535
  export type ResponsibleParty = io.flow.internal.v0.enums.ResponsibleParty;
37019
37536
  export type RestrictionAction = io.flow.internal.v0.enums.RestrictionAction;
@@ -37088,6 +37605,12 @@ export type ReturnSummary = io.flow.internal.v0.models.ReturnSummary;
37088
37605
  export type ReturnTrigger = io.flow.internal.v0.unions.ReturnTrigger;
37089
37606
  export type ReturnTriggerRefund =
37090
37607
  io.flow.internal.v0.models.ReturnTriggerRefund;
37608
+ export type RevenueRecord = io.flow.internal.v0.models.RevenueRecord;
37609
+ export type RevenueRecordDeleted =
37610
+ io.flow.internal.v0.models.RevenueRecordDeleted;
37611
+ export type RevenueRecordType = io.flow.internal.v0.enums.RevenueRecordType;
37612
+ export type RevenueRecordUpserted =
37613
+ io.flow.internal.v0.models.RevenueRecordUpserted;
37091
37614
  export type RiskCheck = io.flow.internal.v0.enums.RiskCheck;
37092
37615
  export type RiskEvaluation = io.flow.internal.v0.enums.RiskEvaluation;
37093
37616
  export type RoutingAccount = io.flow.internal.v0.models.RoutingAccount;