@flowio/types 11.24.79 → 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.
@@ -2400,10 +2400,18 @@ declare namespace io.flow.billing.csv.v0.models {
2400
2400
  interface BillingCsvTransactionMetadata {
2401
2401
  readonly channel?: io.flow.billing.csv.v0.models.BillingCsvTransactionMetadataChannel;
2402
2402
  readonly shipping_label?: io.flow.billing.csv.v0.models.BillingCsvTransactionMetadataShippingLabel;
2403
+ readonly shipping_label_revenue_share?: io.flow.billing.csv.v0.models.BillingCsvTransactionMetadataShippingLabelRevenueShare;
2403
2404
  readonly trueup?: io.flow.billing.csv.v0.models.BillingCsvTransactionMetadataTrueup;
2405
+ readonly carrier_charge?: io.flow.billing.csv.v0.models.BillingCsvTransactionMetadataCarrierCharge;
2404
2406
  readonly manual?: io.flow.billing.csv.v0.models.BillingCsvTransactionMetadataManual;
2405
2407
  }
2406
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
+
2407
2415
  interface BillingCsvTransactionMetadataChannel {
2408
2416
  readonly method: string;
2409
2417
  readonly card?: io.flow.billing.v0.models.TransactionMetadataChannelCardMetadata;
@@ -2418,6 +2426,12 @@ declare namespace io.flow.billing.csv.v0.models {
2418
2426
  readonly request_method?: io.flow.label.v0.enums.LabelRequestMethod;
2419
2427
  }
2420
2428
 
2429
+ interface BillingCsvTransactionMetadataShippingLabelRevenueShare {
2430
+ readonly label_id: string;
2431
+ readonly base_amount?: number;
2432
+ readonly percentage?: number;
2433
+ }
2434
+
2421
2435
  interface BillingCsvTransactionMetadataTrueup {
2422
2436
  readonly original: io.flow.billing.v0.models.TransactionMetadataOriginalTransaction;
2423
2437
  }
@@ -7250,6 +7264,19 @@ declare namespace io.flow.shopify.external.v0.models {
7250
7264
  }
7251
7265
 
7252
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';
7253
7280
  type CancelReason = 'customer' | 'fraud' | 'inventory' | 'declined' | 'other';
7254
7281
  type FulfillmentOrderDeliveryMethodType =
7255
7282
  | 'local'
@@ -7428,7 +7455,8 @@ declare namespace io.flow.shopify.markets.v0.enums {
7428
7455
  | 'shop/redact'
7429
7456
  | 'themes/create'
7430
7457
  | 'themes/publish'
7431
- | 'themes/update';
7458
+ | 'themes/update'
7459
+ | 'bulk_operations/finish';
7432
7460
  }
7433
7461
 
7434
7462
  declare namespace io.flow.shopify.markets.v0.models {
@@ -7502,6 +7530,15 @@ declare namespace io.flow.shopify.markets.v0.models {
7502
7530
  readonly amount?: number;
7503
7531
  }
7504
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
+
7505
7542
  interface ShopifyCountryHarmonizedSystemCode {
7506
7543
  readonly country_code: string;
7507
7544
  readonly harmonized_system_code: string;
@@ -8571,6 +8608,8 @@ declare namespace io.flow.payment.gateway.v0.models {
8571
8608
  readonly status: io.flow.payment.gateway.v0.models.PaymentAuthorizationStatus;
8572
8609
  readonly amount: number;
8573
8610
  readonly currency: string;
8611
+ readonly base_amount?: number;
8612
+ readonly base_currency?: string;
8574
8613
  }
8575
8614
 
8576
8615
  interface PaymentAuthorizationStatus {
@@ -8582,6 +8621,8 @@ declare namespace io.flow.payment.gateway.v0.models {
8582
8621
  readonly id: string;
8583
8622
  readonly amount: number;
8584
8623
  readonly currency: string;
8624
+ readonly base_amount?: number;
8625
+ readonly base_currency?: string;
8585
8626
  readonly created_at: string;
8586
8627
  readonly updated_at: string;
8587
8628
  readonly status: io.flow.payment.gateway.v0.models.PaymentCaptureStatus;
@@ -8888,6 +8929,8 @@ declare namespace io.flow.payment.gateway.v0.models {
8888
8929
  readonly id: string;
8889
8930
  readonly amount: number;
8890
8931
  readonly currency: string;
8932
+ readonly base_amount?: number;
8933
+ readonly base_currency?: string;
8891
8934
  readonly created_at: string;
8892
8935
  readonly updated_at: string;
8893
8936
  readonly status: io.flow.payment.gateway.v0.models.PaymentRefundStatus;
@@ -8913,6 +8956,8 @@ declare namespace io.flow.payment.gateway.v0.models {
8913
8956
  readonly next_action?: io.flow.payment.gateway.v0.unions.Action;
8914
8957
  readonly amount: number;
8915
8958
  readonly currency: string;
8959
+ readonly base_amount?: number;
8960
+ readonly base_currency?: string;
8916
8961
  readonly order_information: io.flow.payment.gateway.v0.unions.OrderInformation;
8917
8962
  readonly device_details: io.flow.payment.v0.unions.DeviceDetails;
8918
8963
  readonly locale?: string;
@@ -8958,6 +9003,8 @@ declare namespace io.flow.payment.gateway.v0.models {
8958
9003
  readonly id: string;
8959
9004
  readonly amount: number;
8960
9005
  readonly currency: string;
9006
+ readonly base_amount?: number;
9007
+ readonly base_currency?: string;
8961
9008
  readonly created_at: string;
8962
9009
  readonly updated_at: string;
8963
9010
  readonly status: io.flow.payment.gateway.v0.models.PaymentReversalStatus;
@@ -9201,6 +9248,11 @@ declare namespace io.flow.channel.internal.v0.models {
9201
9248
  readonly order_updated_at?: string;
9202
9249
  }
9203
9250
 
9251
+ interface ChannelOrderAcceptanceDetails {
9252
+ readonly order_acceptance: io.flow.channel.internal.v0.models.ChannelOrderAcceptance;
9253
+ readonly external_order: any /*object*/;
9254
+ }
9255
+
9204
9256
  interface ChannelOrderAcceptanceForm {
9205
9257
  readonly status: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus;
9206
9258
  }
@@ -9215,806 +9267,1050 @@ declare namespace io.flow.channel.internal.v0.models {
9215
9267
  }
9216
9268
  }
9217
9269
 
9218
- declare namespace io.flow.payment.internal.v0.enums {
9219
- type AdyenIntegrationType =
9220
- | 'hosted_payment_page'
9221
- | 'checkout_payments_api'
9222
- | 'classic_authorise_api';
9223
- type ChargebackPaymentStatus = 'captured' | 'refunded';
9224
- type ChargebackProcessStatus = 'inquiry' | 'open' | 'closed';
9225
- type HttpMethod = 'get' | 'post';
9226
- type OrganizationCapability = 'organization' | 'flow' | 'dynamic';
9227
- type OrganizationPaymentStatus = 'active' | 'archived';
9228
- type Owner = 'flow' | 'organization';
9229
- type Processor =
9230
- | 'adyen'
9231
- | 'afterpay'
9232
- | 'bitpay'
9233
- | 'stripe'
9234
- | 'paypal'
9235
- | 'flow_sandbox'
9236
- | 'fiserv'
9237
- | 'crypto';
9238
- type ProcessorEntityStatus = 'active' | 'draft' | 'archived';
9239
- type RedirectReason = 'three_d_secure';
9240
- type RiskCheck = 'three_d_secure';
9270
+ declare namespace io.flow.partner.v0.enums {
9271
+ type LabelFormat = 'pdf' | 'zpl' | 'all';
9241
9272
  }
9242
9273
 
9243
- declare namespace io.flow.payment.internal.v0.models {
9244
- interface AdyenAccount {
9245
- readonly discriminator: 'adyen_account';
9246
- readonly id: string;
9247
- readonly organization_id: string;
9248
- readonly key: string;
9249
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9250
- readonly name: string;
9251
- readonly ui_reference: string;
9252
- readonly authentication: io.flow.payment.internal.v0.models.AdyenAuthentication;
9253
- readonly country: string;
9254
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9255
- readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9256
- readonly created_at: string;
9257
- 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;
9258
9278
  }
9259
9279
 
9260
- interface AdyenAccountModificationForm {
9261
- readonly discriminator: 'adyen_account_modification_form';
9262
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9263
- readonly name: string;
9264
- readonly ui_reference: string;
9265
- readonly country: string;
9266
- 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;
9267
9286
  }
9268
9287
 
9269
- interface AdyenAccountPutForm {
9270
- readonly discriminator: 'adyen_account_put_form';
9271
- readonly owner?: io.flow.payment.internal.v0.enums.Owner;
9272
- readonly name: string;
9273
- readonly ui_reference: string;
9274
- readonly authentication: io.flow.payment.internal.v0.models.AdyenAuthenticationForm;
9275
- readonly country: string;
9276
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9277
- 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;
9278
9292
  }
9279
9293
 
9280
- interface AdyenAuthentication {
9281
- readonly username: string;
9282
- readonly password_reference: string;
9283
- 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[];
9284
9303
  }
9285
9304
 
9286
- interface AdyenAuthenticationDataReference {
9287
- readonly account_id: string;
9288
- readonly merchant_account: string;
9289
- readonly origin_key?: string;
9290
- 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;
9291
9327
  }
9292
9328
 
9293
- interface AdyenAuthenticationForm {
9294
- readonly username: string;
9295
- readonly password: string;
9296
- 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;
9297
9335
  }
9298
9336
 
9299
- interface AdyenMerchant {
9300
- readonly discriminator: 'adyen_merchant';
9301
- readonly id: string;
9337
+ interface PartnerBridgeManifestForm {
9338
+ readonly order_numbers: string[];
9339
+ }
9340
+
9341
+ interface PartnerFulfillment {
9342
+ readonly organization: string;
9302
9343
  readonly key: string;
9303
- readonly organization_id: string;
9304
- readonly external_id: string;
9305
- readonly processor_account_reference: io.flow.payment.internal.v0.models.ProcessorAccountReference;
9306
- readonly country: string;
9307
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9308
- readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9309
- readonly created_at: string;
9310
- 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[];
9311
9347
  }
9312
9348
 
9313
- interface AdyenMerchantModificationForm {
9314
- readonly discriminator: 'adyen_merchant_modification_form';
9315
- readonly external_id: string;
9316
- readonly country: string;
9317
- 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[];
9318
9353
  }
9319
9354
 
9320
- interface AdyenMerchantPutForm {
9321
- readonly discriminator: 'adyen_merchant_put_form';
9322
- readonly organization_id: string;
9323
- readonly external_id: string;
9324
- readonly country: string;
9325
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9326
- 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;
9327
9358
  }
9328
9359
 
9329
- interface AdyenPaymentDetailsForm {
9330
- readonly fingerprint?: string;
9331
- 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;
9332
9367
  }
9333
9368
 
9334
- interface AdyenRefundForm {
9335
- readonly discriminator: 'adyen_refund_form';
9336
- readonly amount: number;
9337
- readonly authorization_id: string;
9338
- readonly capture_id: string;
9339
- readonly currency: string;
9340
- readonly psp_reference: string;
9341
- readonly key?: string;
9369
+ interface PartnerManifestForm {
9370
+ readonly tracking_numbers: string[];
9371
+ readonly service?: string;
9342
9372
  }
9343
9373
 
9344
- interface AfterpayAccount {
9345
- readonly discriminator: 'afterpay_account';
9374
+ interface PartnerOrderIdentifier {
9346
9375
  readonly id: string;
9347
- readonly organization_id: string;
9348
- readonly key: string;
9349
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9350
- readonly country: string;
9351
- readonly authentication: io.flow.payment.internal.v0.models.AfterpayAuthentication;
9352
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9353
- readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9354
- readonly created_at: string;
9355
- 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;
9356
9379
  }
9357
9380
 
9358
- interface AfterpayAccountModificationForm {
9359
- readonly discriminator: 'afterpay_account_modification_form';
9360
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9361
- readonly country: string;
9362
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9381
+ interface PartnerOrderIdentifierForm {
9382
+ readonly number: string;
9383
+ readonly order_number: string;
9363
9384
  }
9364
9385
 
9365
- interface AfterpayAccountPutForm {
9366
- readonly discriminator: 'afterpay_account_put_form';
9367
- readonly owner?: io.flow.payment.internal.v0.enums.Owner;
9368
- readonly country: string;
9369
- readonly authentication: io.flow.payment.internal.v0.models.AfterpayAuthenticationForm;
9370
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9371
- readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
9386
+ interface PartnerOrderIdentifierPutForm {
9387
+ readonly order_number: string;
9372
9388
  }
9373
9389
 
9374
- interface AfterpayAuthentication {
9375
- readonly username: string;
9376
- readonly password_reference: string;
9390
+ interface PartnerOrderReference {
9391
+ readonly id: string;
9392
+ readonly number: string;
9377
9393
  }
9378
9394
 
9379
- interface AfterpayAuthenticationDataReference {
9380
- readonly account_id: string;
9395
+ interface PartnerOrganizationReference {
9396
+ readonly id: string;
9381
9397
  }
9382
9398
 
9383
- interface AfterpayAuthenticationForm {
9384
- readonly username: string;
9385
- 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;
9386
9406
  }
9407
+ }
9387
9408
 
9388
- interface ApplePayAuthorizationPayload {
9389
- readonly discriminator: 'apple_pay_authorization_payload';
9390
- 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;
9391
9510
  }
9392
9511
 
9393
- interface AuthenticationForm {
9394
- 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;
9395
9520
  }
9396
9521
 
9397
- interface AuthorizationBundle {
9522
+ interface CatalogItemReference {
9398
9523
  readonly id: string;
9399
- readonly organization_id: string;
9400
- readonly authorization_reference: io.flow.payment.v0.models.AuthorizationReference;
9401
- readonly payment_request_reference: io.flow.payment.gateway.v0.models.PaymentRequestReference;
9402
- readonly billing?: io.flow.payment.request.bundle.v0.models.PaymentRequestBilling;
9524
+ readonly number: string;
9403
9525
  }
9404
9526
 
9405
- interface AuthorizationMetadata {
9406
- readonly limit?: number;
9527
+ interface CatalogItemSummary {
9528
+ readonly number: string;
9529
+ readonly name: string;
9530
+ readonly attributes: Record<string, string>;
9407
9531
  }
9408
9532
 
9409
- interface AuthorizationParameters {
9410
- readonly method: string;
9411
- readonly parameters: any /*object*/;
9533
+ interface ChannelReference {
9534
+ readonly id: string;
9412
9535
  }
9413
9536
 
9414
- interface AuthorizationParametersForm {
9415
- readonly order_number: string;
9416
- readonly amount: number;
9417
- readonly currency: string;
9418
- readonly billing_address?: io.flow.common.v0.models.BillingAddress;
9419
- readonly ip?: string;
9420
- readonly origin_url?: string;
9537
+ interface CheckoutReference {
9538
+ readonly id: string;
9421
9539
  }
9422
9540
 
9423
- interface BitpayAccount {
9424
- readonly discriminator: 'bitpay_account';
9425
- readonly id: string;
9426
- readonly organization_id: string;
9427
- readonly key: string;
9428
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9429
- readonly authentication: io.flow.payment.internal.v0.models.BitpayAuthentication;
9430
- readonly country: string;
9431
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9432
- readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9433
- readonly created_at: string;
9434
- 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;
9435
9546
  }
9436
9547
 
9437
- interface BitpayAccountModificationForm {
9438
- readonly discriminator: 'bitpay_account_modification_form';
9439
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9440
- readonly country: string;
9441
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9548
+ interface CustomerInvoice {
9549
+ readonly address?: io.flow.common.v0.models.BillingAddress;
9442
9550
  }
9443
9551
 
9444
- interface BitpayAccountPutForm {
9445
- readonly discriminator: 'bitpay_account_put_form';
9446
- readonly owner?: io.flow.payment.internal.v0.enums.Owner;
9447
- readonly authentication: io.flow.payment.internal.v0.models.BitpayAuthenticationForm;
9448
- readonly country: string;
9449
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9450
- readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
9552
+ interface CustomerReference {
9553
+ readonly number: string;
9451
9554
  }
9452
9555
 
9453
- interface BitpayAuthentication {
9454
- readonly api_token: string;
9455
- readonly public_key: string;
9456
- readonly secret_key_reference: string;
9556
+ interface DatetimeRange {
9557
+ readonly from: string;
9558
+ readonly to: string;
9457
9559
  }
9458
9560
 
9459
- interface BitpayAuthenticationDataReference {
9460
- 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;
9461
9567
  }
9462
9568
 
9463
- interface BitpayAuthenticationForm {
9464
- readonly api_token: string;
9465
- readonly public_key: string;
9466
- 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;
9467
9572
  }
9468
9573
 
9469
- interface Chargeback {
9470
- readonly id: string;
9471
- readonly key: string;
9472
- readonly authorization: io.flow.payment.v0.models.AuthorizationReference;
9473
- readonly amount: number;
9474
- readonly currency: string;
9475
- readonly base?: io.flow.common.v0.models.Money;
9476
- readonly chargeback_issued_at: string;
9477
- readonly created_at: string;
9478
- readonly payment_status: io.flow.payment.internal.v0.enums.ChargebackPaymentStatus;
9479
- readonly process_status: io.flow.payment.internal.v0.enums.ChargebackProcessStatus;
9480
- readonly processor: io.flow.payment.internal.v0.enums.Processor;
9481
- readonly processor_reason: string;
9482
- readonly processor_status: string;
9483
- readonly processor_reference?: string;
9484
- readonly provider_reference?: string;
9485
- 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;
9486
9578
  }
9487
9579
 
9488
- interface ChargebackVersion {
9489
- readonly id: string;
9490
- readonly timestamp: string;
9491
- readonly type: io.flow.common.v0.enums.ChangeType;
9492
- 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;
9493
9583
  }
9494
9584
 
9495
- interface Cipher {
9496
- readonly id: string;
9497
- readonly attributes: Record<string, string>;
9585
+ interface DiscountOfferPercent {
9586
+ readonly discriminator: 'discount_offer_percent';
9587
+ readonly percent: number;
9498
9588
  }
9499
9589
 
9500
- interface CipherForm {
9501
- readonly text: string;
9502
- readonly attributes?: Record<string, string>;
9503
- readonly password?: string;
9590
+ interface DiscountsForm {
9591
+ readonly discounts: io.flow.common.v0.models.DiscountForm[];
9504
9592
  }
9505
9593
 
9506
- interface CipherReference {
9507
- readonly id: string;
9594
+ interface Duration {
9595
+ readonly unit: io.flow.common.v0.enums.UnitOfTime;
9596
+ readonly value: number;
9508
9597
  }
9509
9598
 
9510
- interface ClassicPaymentRedirectForm {
9511
- readonly MD: string;
9512
- readonly PaRes: string;
9599
+ interface EntityIdentifier {
9600
+ readonly name: io.flow.common.v0.enums.EntityIdentifierType;
9601
+ readonly number: string;
9602
+ readonly issuing_country?: string;
9513
9603
  }
9514
9604
 
9515
- interface CryptoAccount {
9516
- 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 {
9517
9611
  readonly id: string;
9518
- readonly organization_id: string;
9519
9612
  readonly key: string;
9520
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9521
- readonly authentication: io.flow.payment.internal.v0.models.CryptoAuthentication;
9522
- readonly country: string;
9523
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9524
- readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9525
- readonly created_at: string;
9526
- readonly updated_at: string;
9613
+ readonly name: string;
9614
+ readonly country?: string;
9615
+ readonly currency?: string;
9616
+ readonly language?: string;
9527
9617
  }
9528
9618
 
9529
- interface CryptoAccountModificationForm {
9530
- readonly discriminator: 'crypto_account_modification_form';
9531
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9532
- readonly country: string;
9533
- 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;
9534
9622
  }
9535
9623
 
9536
- interface CryptoAccountPutForm {
9537
- readonly discriminator: 'crypto_account_put_form';
9538
- readonly owner?: io.flow.payment.internal.v0.enums.Owner;
9539
- readonly authentication: io.flow.payment.internal.v0.models.CryptoAuthenticationForm;
9540
- readonly country: string;
9541
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9542
- readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
9624
+ interface InputForm {
9625
+ readonly values?: Record<string, string>;
9543
9626
  }
9544
9627
 
9545
- interface CryptoAuthentication {
9546
- readonly public_key: string;
9547
- readonly secret_key_reference: string;
9548
- 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;
9549
9631
  }
9550
9632
 
9551
- interface CryptoAuthenticationForm {
9552
- readonly public_key: string;
9553
- readonly secret_key: string;
9554
- 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;
9555
9637
  }
9556
9638
 
9557
- interface DecryptCipherForm {
9558
- readonly id: string;
9559
- readonly password: string;
9639
+ interface InputSpecificationLimitationMax {
9640
+ readonly discriminator: 'input_specification_limitation_max';
9641
+ readonly max: number;
9560
9642
  }
9561
9643
 
9562
- interface DecryptedCipher {
9563
- readonly id: string;
9564
- 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;
9565
9656
  readonly attributes: Record<string, string>;
9657
+ readonly center?: string;
9658
+ readonly discount?: io.flow.common.v0.models.Money;
9566
9659
  }
9567
9660
 
9568
- interface Encryption {
9569
- readonly id: string;
9570
- readonly key: io.flow.payment.internal.v0.models.KeyReference;
9571
- readonly iv: string;
9572
- readonly cipher: string;
9573
- readonly passphrase_ids: string[];
9661
+ interface LineItemAttributesForm {
9662
+ readonly attributes: Record<string, string>;
9574
9663
  }
9575
9664
 
9576
- interface FinancialMerchantCategory {
9577
- readonly id: string;
9578
- readonly iso_18245_4: string;
9579
- readonly title: string;
9580
- readonly category_group: string;
9581
- 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;
9582
9674
  }
9583
9675
 
9584
- interface FiservAccount {
9585
- readonly discriminator: 'fiserv_account';
9586
- readonly id: string;
9587
- readonly organization_id: string;
9588
- readonly key: string;
9589
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9590
- readonly region: string;
9591
- readonly authentication: io.flow.payment.internal.v0.models.FiservAuthentication;
9592
- readonly country: string;
9593
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9594
- readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9595
- readonly created_at: string;
9596
- readonly updated_at: string;
9676
+ interface LineItemQuantityForm {
9677
+ readonly quantity: number;
9597
9678
  }
9598
9679
 
9599
- interface FiservAccountModificationForm {
9600
- readonly discriminator: 'fiserv_account_modification_form';
9601
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9602
- readonly region: string;
9603
- readonly country: string;
9604
- 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;
9605
9685
  }
9606
9686
 
9607
- interface FiservAccountPutForm {
9608
- readonly discriminator: 'fiserv_account_put_form';
9609
- readonly owner?: io.flow.payment.internal.v0.enums.Owner;
9610
- readonly region: string;
9611
- readonly authentication: io.flow.payment.internal.v0.models.FiservAuthenticationForm;
9612
- readonly country: string;
9613
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9614
- 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;
9615
9691
  }
9616
9692
 
9617
- interface FiservAuthentication {
9618
- readonly public_key: string;
9619
- readonly secret_key_reference: string;
9693
+ interface LogoImageSvg {
9694
+ readonly discriminator: 'svg';
9695
+ readonly url: string;
9620
9696
  }
9621
9697
 
9622
- interface FiservAuthenticationDataReference {
9623
- readonly account_id: string;
9624
- readonly store_id: string;
9698
+ interface Margin {
9699
+ readonly type: io.flow.common.v0.enums.MarginType;
9700
+ readonly value: number;
9625
9701
  }
9626
9702
 
9627
- interface FiservAuthenticationForm {
9628
- readonly public_key: string;
9629
- readonly secret_key: string;
9703
+ interface Measurement {
9704
+ readonly value: string;
9705
+ readonly units: io.flow.common.v0.enums.UnitOfMeasurement;
9630
9706
  }
9631
9707
 
9632
- interface FiservMerchant {
9633
- readonly discriminator: 'fiserv_merchant';
9634
- readonly id: string;
9635
- readonly key: string;
9636
- readonly organization_id: string;
9637
- readonly external_id: string;
9638
- readonly processor_account_reference: io.flow.payment.internal.v0.models.ProcessorAccountReference;
9639
- readonly base_currency: string;
9640
- 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;
9641
9717
  readonly country: string;
9642
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9643
- readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9644
- readonly created_at: string;
9645
- readonly updated_at: string;
9718
+ readonly phone?: string;
9719
+ readonly email?: string;
9646
9720
  }
9647
9721
 
9648
- interface FiservMerchantModificationForm {
9649
- readonly discriminator: 'fiserv_merchant_modification_form';
9650
- readonly external_id: string;
9651
- readonly base_currency: string;
9652
- readonly funding_currency: string;
9722
+ interface MerchantOfRecordEntityRegistration {
9723
+ readonly number: string;
9653
9724
  readonly country: string;
9654
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9655
9725
  }
9656
9726
 
9657
- interface FiservMerchantPutForm {
9658
- readonly discriminator: 'fiserv_merchant_put_form';
9659
- readonly organization_id: string;
9660
- readonly external_id: string;
9661
- readonly base_currency: string;
9662
- readonly funding_currency: string;
9663
- readonly country: string;
9664
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9665
- readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
9727
+ interface Money {
9728
+ readonly amount: number;
9729
+ readonly currency: string;
9666
9730
  }
9667
9731
 
9668
- interface InternalAdyenAuthorizationDetails {
9669
- readonly discriminator: 'internal_adyen_authorization_details';
9670
- 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;
9671
9736
  }
9672
9737
 
9673
- interface InternalAfterpayAuthorizationDetails {
9674
- readonly discriminator: 'internal_afterpay_authorization_details';
9675
- 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;
9676
9742
  }
9677
9743
 
9678
- interface InternalBitpayAuthorizationDetails {
9679
- readonly discriminator: 'internal_bitpay_authorization_details';
9680
- readonly bitpay_authentication_data: io.flow.payment.internal.v0.models.BitpayAuthenticationDataReference;
9744
+ interface Name {
9745
+ readonly first?: string;
9746
+ readonly last?: string;
9681
9747
  }
9682
9748
 
9683
- interface InternalFiservAuthorizationDetails {
9684
- readonly discriminator: 'internal_fiserv_authorization_details';
9685
- 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;
9686
9756
  }
9687
9757
 
9688
- interface InternalPaymentRequest {
9689
- readonly payment_request: io.flow.payment.gateway.v0.models.PaymentRequest;
9690
- 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;
9691
9765
  }
9692
9766
 
9693
- interface InternalPaypalAuthorizationDetails {
9694
- readonly discriminator: 'internal_paypal_authorization_details';
9695
- 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;
9696
9777
  }
9697
9778
 
9698
- interface InternalStripeAuthorizationDetails {
9699
- readonly discriminator: 'internal_stripe_authorization_details';
9700
- 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;
9701
9785
  }
9702
9786
 
9703
- interface InternalTransactionDetailsCard {
9704
- readonly type: 'card';
9705
- readonly address_verification_result?: io.flow.payment.v0.models.AddressVerificationResult;
9706
- readonly cvv_result?: io.flow.payment.v0.models.CvvResult;
9707
- readonly network_details?: io.flow.payment.v0.models.TransactionNetworkDetailsCard;
9787
+ interface OrganizationReference {
9788
+ readonly discriminator: 'organization_reference';
9789
+ readonly id: string;
9708
9790
  }
9709
9791
 
9710
- interface Key {
9792
+ interface OrganizationSummary {
9711
9793
  readonly id: string;
9712
- readonly created_at: string;
9794
+ readonly name: string;
9795
+ readonly environment: io.flow.common.v0.enums.Environment;
9713
9796
  }
9714
9797
 
9715
- interface KeyReference {
9798
+ interface PartnerReference {
9716
9799
  readonly id: string;
9717
9800
  }
9718
9801
 
9719
- interface KlarnaAuthorizationParameters {
9720
- readonly discriminator: 'klarna_authorization_parameters';
9721
- readonly client_token: string;
9722
- 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;
9723
9806
  }
9724
9807
 
9725
- interface KlarnaPaymentMethodCategory {
9726
- readonly id: string;
9727
- readonly name?: string;
9728
- readonly standard_asset_urls?: string;
9729
- readonly descriptive_asset_urls?: string;
9808
+ interface PriceForm {
9809
+ readonly amount: number;
9810
+ readonly currency: string;
9730
9811
  }
9731
9812
 
9732
- interface OnlineAuthorizationCompleted {
9733
- 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 {
9734
9826
  readonly id: string;
9735
- readonly organization: string;
9736
9827
  readonly key: string;
9737
- readonly expires_at: string;
9738
9828
  }
9739
9829
 
9740
- interface OrganizationPaymentSetting {
9741
- readonly id: string;
9742
- readonly organization_id: string;
9743
- readonly default_capture_option: io.flow.payment.gateway.v0.unions.PaymentCaptureOption;
9744
- readonly status: io.flow.payment.internal.v0.enums.OrganizationPaymentStatus;
9745
- readonly checkout_domain?: string;
9746
- readonly merchant_category_code?: string;
9747
- readonly payment_statement_suffix?: string;
9748
- readonly payment_statement_condensed?: string;
9749
- readonly created_at: string;
9750
- readonly updated_at: string;
9830
+ interface PriceSourceProvided {
9831
+ readonly discriminator: 'provided';
9832
+ readonly price: io.flow.common.v0.models.Money;
9751
9833
  }
9752
9834
 
9753
- interface OrganizationPaymentSettingForm {
9754
- readonly default_capture_option: io.flow.payment.gateway.v0.unions.PaymentCaptureOption;
9755
- readonly status: io.flow.payment.internal.v0.enums.OrganizationPaymentStatus;
9756
- readonly checkout_domain?: string;
9757
- readonly merchant_category_code?: string;
9758
- 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;
9759
9840
  }
9760
9841
 
9761
- interface OrganizationPaymentSettingVersion {
9762
- readonly id: string;
9763
- readonly timestamp: string;
9764
- readonly type: io.flow.common.v0.enums.ChangeType;
9765
- readonly organization_payment_setting: io.flow.payment.internal.v0.models.OrganizationPaymentSetting;
9842
+ interface RepeatDaily {
9843
+ readonly discriminator: 'repeat_daily';
9844
+ readonly interval: number;
9766
9845
  }
9767
9846
 
9768
- interface Passphrase {
9769
- readonly id: string;
9770
- readonly tribe: io.flow.payment.internal.v0.models.Tribe;
9771
- readonly salt: string;
9772
- readonly iv: string;
9773
- readonly challenge_cipher: string;
9774
- readonly challenge_text: string;
9847
+ interface RepeatHourly {
9848
+ readonly discriminator: 'repeat_hourly';
9849
+ readonly interval: number;
9775
9850
  }
9776
9851
 
9777
- interface PassphraseForm {
9778
- readonly tribe: string;
9779
- readonly current_password?: string;
9780
- readonly new_password: string;
9852
+ interface RepeatMonthly {
9853
+ readonly discriminator: 'repeat_monthly';
9854
+ readonly interval: number;
9855
+ readonly days: number[];
9781
9856
  }
9782
9857
 
9783
- interface PassphraseSummary {
9784
- readonly id: string;
9785
- 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[];
9786
9862
  }
9787
9863
 
9788
- interface PaymentMethodDetail {
9789
- readonly method: io.flow.reference.v0.models.PaymentMethod;
9790
- 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;
9791
9868
  }
9792
9869
 
9793
- interface PaymentMethodOption {
9794
- readonly id: string;
9795
- readonly name: string;
9796
- 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;
9797
9877
  }
9798
9878
 
9799
- interface PaymentOrganizationSettings {
9879
+ interface SessionReference {
9800
9880
  readonly id: string;
9801
- readonly enable_auto_capture: boolean;
9802
- readonly link_capture_to_vcc: boolean;
9803
- readonly purge_ciphers: boolean;
9804
- readonly domain?: string;
9805
- readonly merchant_category_code?: number;
9806
- readonly payment_statement_suffix?: string;
9807
- readonly payment_statement_condensed?: string;
9808
9881
  }
9809
9882
 
9810
- interface PaymentOrganizationSettingsPutForm {
9811
- readonly enable_auto_capture?: boolean;
9812
- readonly link_capture_to_vcc?: boolean;
9813
- readonly purge_ciphers?: boolean;
9814
- readonly domain?: string;
9815
- readonly merchant_category_code?: number;
9816
- 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;
9817
9889
  }
9818
9890
 
9819
- interface PaypalAccount {
9820
- readonly discriminator: 'paypal_account';
9891
+ interface UserReference {
9892
+ readonly discriminator: 'user_reference';
9821
9893
  readonly id: string;
9822
- readonly organization_id: string;
9823
- readonly key: string;
9824
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9825
- readonly country: string;
9826
- readonly authentication: io.flow.payment.internal.v0.models.PaypalAuthentication;
9827
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9828
- readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9829
- readonly created_at: string;
9830
- readonly updated_at: string;
9831
9894
  }
9832
9895
 
9833
- interface PaypalAccountModificationForm {
9834
- readonly discriminator: 'paypal_account_modification_form';
9835
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9896
+ interface Zone {
9897
+ readonly postals?: string[];
9898
+ readonly provinces?: string[];
9836
9899
  readonly country: string;
9837
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9838
9900
  }
9901
+ }
9839
9902
 
9840
- interface PaypalAccountPutForm {
9841
- readonly discriminator: 'paypal_account_put_form';
9842
- readonly owner?: io.flow.payment.internal.v0.enums.Owner;
9843
- readonly country: string;
9844
- readonly authentication: io.flow.payment.internal.v0.models.PaypalAuthenticationForm;
9845
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9846
- readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
9847
- }
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
+ }
9848
9928
 
9849
- interface PaypalAccountReference {
9850
- readonly id: string;
9851
- readonly flow_merchant_id?: string;
9852
- }
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
+ }
9853
9942
 
9854
- interface PaypalAuthentication {
9855
- readonly username: string;
9856
- 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;
9857
9953
  }
9858
9954
 
9859
- interface PaypalAuthenticationForm {
9860
- readonly username: string;
9861
- readonly password: string;
9955
+ interface MarkedAsFinal {
9956
+ readonly products: boolean;
9957
+ readonly shipping: boolean;
9862
9958
  }
9863
9959
 
9864
- interface PaypalAuthorizationPayload {
9865
- readonly discriminator: 'paypal_authorization_payload';
9866
- readonly payment_id: string;
9867
- 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;
9868
9964
  }
9869
9965
 
9870
- interface PaypalMerchant {
9871
- readonly discriminator: 'paypal_merchant';
9966
+ interface RecordReference {
9872
9967
  readonly id: string;
9873
- readonly key: string;
9874
- readonly organization_id: string;
9875
- readonly external_id: string;
9876
- readonly processor_account_reference: io.flow.payment.internal.v0.models.ProcessorAccountReference;
9877
- readonly country: string;
9878
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9879
- readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9880
- readonly created_at: string;
9881
- readonly updated_at: string;
9882
9968
  }
9883
9969
 
9884
- interface PaypalMerchantModificationForm {
9885
- readonly discriminator: 'paypal_merchant_modification_form';
9886
- readonly external_id: string;
9887
- readonly country: string;
9888
- 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;
9889
9978
  }
9890
9979
 
9891
- interface PaypalMerchantPutForm {
9892
- readonly discriminator: 'paypal_merchant_put_form';
9893
- readonly organization_id: string;
9894
- readonly external_id: string;
9895
- readonly country: string;
9896
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9897
- 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;
9898
9983
  }
9899
9984
 
9900
- 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 {
9901
9997
  readonly id: string;
9902
- readonly organization_id: string;
9903
- readonly key: string;
9904
- readonly processor: io.flow.payment.internal.v0.enums.Processor;
9905
- readonly country: string;
9906
- readonly owner: io.flow.payment.internal.v0.enums.Owner;
9907
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9908
- readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9998
+ readonly created_at: string;
9909
9999
  }
9910
10000
 
9911
- interface ProcessorEntityStatusForm {
9912
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10001
+ interface ReportingAuthorizationReference {
10002
+ readonly id: string;
9913
10003
  }
9914
10004
 
9915
- 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 {
9916
10048
  readonly id: string;
9917
- readonly organization_id: string;
9918
- readonly key: string;
9919
- readonly processor: io.flow.payment.internal.v0.enums.Processor;
9920
- readonly country: string;
9921
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9922
- readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9923
10049
  }
9924
10050
 
9925
- interface Redirect {
10051
+ interface ReportingFulfillment {
9926
10052
  readonly id: string;
9927
- readonly post_payment_redirect_urls: io.flow.payment.v0.models.PostPaymentRedirectUrls;
9928
- 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;
9929
10066
  }
9930
10067
 
9931
- interface RedirectActionCompleted {
9932
- 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 {
9933
10131
  readonly id: string;
9934
- readonly organization: string;
9935
- readonly key: string;
9936
- readonly expires_at: string;
9937
- readonly post_payment_redirect_urls: io.flow.payment.v0.models.PostPaymentRedirectUrls;
9938
- readonly inline_notification_urls?: io.flow.payment.v0.models.PostPaymentRedirectUrls;
10132
+ readonly number: string;
10133
+ readonly submitted_at: string;
9939
10134
  }
9940
10135
 
9941
- interface RoutingAccount {
9942
- readonly discriminator: 'routing_account';
9943
- readonly processor: io.flow.payment.internal.v0.enums.Processor;
9944
- readonly processor_account: io.flow.payment.internal.v0.models.ProcessorAccountReference;
10136
+ interface ReportingOrganizationSummary {
10137
+ readonly id: string;
10138
+ readonly name: string;
9945
10139
  }
9946
10140
 
9947
- interface RoutingMerchant {
9948
- readonly discriminator: 'routing_merchant';
9949
- readonly processor: io.flow.payment.internal.v0.enums.Processor;
9950
- readonly processor_account: io.flow.payment.internal.v0.models.ProcessorAccountReference;
9951
- 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;
9952
10146
  }
9953
10147
 
9954
- interface RoutingProcessor {
9955
- readonly discriminator: 'routing_processor';
9956
- 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;
9957
10155
  }
9958
10156
 
9959
- interface StripeAccount {
9960
- 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';
9961
10254
  readonly id: string;
9962
10255
  readonly organization_id: string;
9963
10256
  readonly key: string;
9964
10257
  readonly owner: io.flow.payment.internal.v0.enums.Owner;
9965
10258
  readonly name: string;
9966
- readonly external_id: string;
10259
+ readonly ui_reference: string;
10260
+ readonly authentication: io.flow.payment.internal.v0.models.AdyenAuthentication;
9967
10261
  readonly country: string;
9968
- readonly authentication: io.flow.payment.internal.v0.models.StripeAuthentication;
9969
10262
  readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9970
10263
  readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
9971
10264
  readonly created_at: string;
9972
10265
  readonly updated_at: string;
9973
10266
  }
9974
10267
 
9975
- interface StripeAccountModificationForm {
9976
- readonly discriminator: 'stripe_account_modification_form';
10268
+ interface AdyenAccountModificationForm {
10269
+ readonly discriminator: 'adyen_account_modification_form';
9977
10270
  readonly owner: io.flow.payment.internal.v0.enums.Owner;
9978
10271
  readonly name: string;
9979
- readonly external_id: string;
10272
+ readonly ui_reference: string;
9980
10273
  readonly country: string;
9981
10274
  readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9982
10275
  }
9983
10276
 
9984
- interface StripeAccountPutForm {
9985
- readonly discriminator: 'stripe_account_put_form';
10277
+ interface AdyenAccountPutForm {
10278
+ readonly discriminator: 'adyen_account_put_form';
9986
10279
  readonly owner?: io.flow.payment.internal.v0.enums.Owner;
9987
10280
  readonly name: string;
9988
- readonly external_id: string;
10281
+ readonly ui_reference: string;
10282
+ readonly authentication: io.flow.payment.internal.v0.models.AdyenAuthenticationForm;
9989
10283
  readonly country: string;
9990
- readonly authentication: io.flow.payment.internal.v0.models.StripeAuthenticationForm;
9991
10284
  readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
9992
10285
  readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
9993
10286
  }
9994
10287
 
9995
- interface StripeAuthentication {
9996
- readonly public_key: string;
9997
- readonly secret_key_reference: string;
10288
+ interface AdyenAuthentication {
10289
+ readonly username: string;
10290
+ readonly password_reference: string;
10291
+ readonly signature_secret_reference: string;
9998
10292
  }
9999
10293
 
10000
- interface StripeAuthenticationDataReference {
10001
- 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;
10002
10299
  }
10003
10300
 
10004
- interface StripeAuthenticationForm {
10005
- readonly public_key: string;
10006
- readonly secret_key: string;
10301
+ interface AdyenAuthenticationForm {
10302
+ readonly username: string;
10303
+ readonly password: string;
10304
+ readonly signature_secret: string;
10007
10305
  }
10008
10306
 
10009
- interface StripeMerchant {
10010
- readonly discriminator: 'stripe_merchant';
10307
+ interface AdyenMerchant {
10308
+ readonly discriminator: 'adyen_merchant';
10011
10309
  readonly id: string;
10012
10310
  readonly key: string;
10013
10311
  readonly organization_id: string;
10014
10312
  readonly external_id: string;
10015
10313
  readonly processor_account_reference: io.flow.payment.internal.v0.models.ProcessorAccountReference;
10016
- readonly name: string;
10017
- readonly account_type: io.flow.stripe.v0.enums.AccountType;
10018
10314
  readonly country: string;
10019
10315
  readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10020
10316
  readonly organization_capability: io.flow.payment.internal.v0.enums.OrganizationCapability;
@@ -10022,775 +10318,828 @@ declare namespace io.flow.payment.internal.v0.models {
10022
10318
  readonly updated_at: string;
10023
10319
  }
10024
10320
 
10025
- interface StripeMerchantForm {
10026
- readonly discriminator: 'stripe_merchant_form';
10027
- readonly key?: string;
10028
- readonly organization_id: string;
10029
- readonly name: string;
10030
- readonly account_type: io.flow.stripe.v0.enums.AccountType;
10031
- readonly country: string;
10032
- readonly payment_statement: string;
10033
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10034
- }
10035
-
10036
- interface StripeMerchantModificationForm {
10037
- readonly discriminator: 'stripe_merchant_modification_form';
10321
+ interface AdyenMerchantModificationForm {
10322
+ readonly discriminator: 'adyen_merchant_modification_form';
10038
10323
  readonly external_id: string;
10039
- readonly name: string;
10040
- readonly account_type: io.flow.stripe.v0.enums.AccountType;
10041
- readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10042
10324
  readonly country: string;
10325
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10043
10326
  }
10044
10327
 
10045
- interface StripeMerchantPutForm {
10046
- readonly discriminator: 'stripe_merchant_put_form';
10328
+ interface AdyenMerchantPutForm {
10329
+ readonly discriminator: 'adyen_merchant_put_form';
10047
10330
  readonly organization_id: string;
10048
10331
  readonly external_id: string;
10049
- readonly name: string;
10050
- readonly account_type: io.flow.stripe.v0.enums.AccountType;
10051
- readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10052
10332
  readonly country: string;
10333
+ readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10053
10334
  readonly organization_capability?: io.flow.payment.internal.v0.enums.OrganizationCapability;
10054
10335
  }
10055
10336
 
10056
- interface Tribe {
10057
- readonly id: string;
10058
- readonly description: string;
10337
+ interface AdyenPaymentDetailsForm {
10338
+ readonly fingerprint?: string;
10339
+ readonly challenge_result?: string;
10059
10340
  }
10060
10341
 
10061
- 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';
10062
10354
  readonly id: string;
10063
10355
  readonly organization_id: string;
10064
- readonly provider: string;
10065
- 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;
10066
10362
  readonly created_at: string;
10067
10363
  readonly updated_at: string;
10068
10364
  }
10069
- }
10070
-
10071
- declare namespace io.flow.payment.internal.v0.unions {
10072
- type AuthorizationPayload =
10073
- | io.flow.payment.internal.v0.models.ApplePayAuthorizationPayload
10074
- | io.flow.payment.internal.v0.models.PaypalAuthorizationPayload;
10075
- type InlineAuthorizationParameters =
10076
- io.flow.payment.internal.v0.models.KlarnaAuthorizationParameters;
10077
- type InternalAuthorizationDetails =
10078
- | io.flow.payment.internal.v0.models.InternalPaypalAuthorizationDetails
10079
- | io.flow.payment.internal.v0.models.InternalBitpayAuthorizationDetails
10080
- | io.flow.payment.internal.v0.models.InternalStripeAuthorizationDetails
10081
- | io.flow.payment.internal.v0.models.InternalAdyenAuthorizationDetails
10082
- | io.flow.payment.internal.v0.models.InternalAfterpayAuthorizationDetails
10083
- | io.flow.payment.internal.v0.models.InternalFiservAuthorizationDetails;
10084
- type InternalRefundForm = io.flow.payment.internal.v0.models.AdyenRefundForm;
10085
- type InternalTransactionDetails =
10086
- io.flow.payment.internal.v0.models.InternalTransactionDetailsCard;
10087
- type PaymentRedirect =
10088
- | io.flow.payment.internal.v0.models.OnlineAuthorizationCompleted
10089
- | io.flow.payment.internal.v0.models.RedirectActionCompleted;
10090
- type ProcessorAccount =
10091
- | io.flow.payment.internal.v0.models.StripeAccount
10092
- | io.flow.payment.internal.v0.models.AdyenAccount
10093
- | io.flow.payment.internal.v0.models.PaypalAccount
10094
- | io.flow.payment.internal.v0.models.AfterpayAccount
10095
- | io.flow.payment.internal.v0.models.BitpayAccount
10096
- | io.flow.payment.internal.v0.models.FiservAccount
10097
- | io.flow.payment.internal.v0.models.CryptoAccount;
10098
- type ProcessorAccountModificationForm =
10099
- | io.flow.payment.internal.v0.models.StripeAccountModificationForm
10100
- | io.flow.payment.internal.v0.models.AdyenAccountModificationForm
10101
- | io.flow.payment.internal.v0.models.PaypalAccountModificationForm
10102
- | io.flow.payment.internal.v0.models.AfterpayAccountModificationForm
10103
- | io.flow.payment.internal.v0.models.BitpayAccountModificationForm
10104
- | io.flow.payment.internal.v0.models.FiservAccountModificationForm
10105
- | io.flow.payment.internal.v0.models.CryptoAccountModificationForm;
10106
- type ProcessorAccountPutForm =
10107
- | io.flow.payment.internal.v0.models.StripeAccountPutForm
10108
- | io.flow.payment.internal.v0.models.AdyenAccountPutForm
10109
- | io.flow.payment.internal.v0.models.PaypalAccountPutForm
10110
- | io.flow.payment.internal.v0.models.AfterpayAccountPutForm
10111
- | io.flow.payment.internal.v0.models.BitpayAccountPutForm
10112
- | io.flow.payment.internal.v0.models.FiservAccountPutForm
10113
- | io.flow.payment.internal.v0.models.CryptoAccountPutForm;
10114
- type ProcessorMerchant =
10115
- | io.flow.payment.internal.v0.models.StripeMerchant
10116
- | io.flow.payment.internal.v0.models.AdyenMerchant
10117
- | io.flow.payment.internal.v0.models.FiservMerchant
10118
- | io.flow.payment.internal.v0.models.PaypalMerchant;
10119
- type ProcessorMerchantForm =
10120
- io.flow.payment.internal.v0.models.StripeMerchantForm;
10121
- type ProcessorMerchantModificationForm =
10122
- | io.flow.payment.internal.v0.models.StripeMerchantModificationForm
10123
- | io.flow.payment.internal.v0.models.AdyenMerchantModificationForm
10124
- | io.flow.payment.internal.v0.models.FiservMerchantModificationForm
10125
- | io.flow.payment.internal.v0.models.PaypalMerchantModificationForm;
10126
- type ProcessorMerchantPutForm =
10127
- | io.flow.payment.internal.v0.models.StripeMerchantPutForm
10128
- | io.flow.payment.internal.v0.models.AdyenMerchantPutForm
10129
- | io.flow.payment.internal.v0.models.FiservMerchantPutForm
10130
- | io.flow.payment.internal.v0.models.PaypalMerchantPutForm;
10131
- type RoutingEntity =
10132
- | io.flow.payment.internal.v0.models.RoutingProcessor
10133
- | io.flow.payment.internal.v0.models.RoutingAccount
10134
- | io.flow.payment.internal.v0.models.RoutingMerchant;
10135
- }
10136
10365
 
10137
- declare namespace io.flow.partner.v0.enums {
10138
- type LabelFormat = 'pdf' | 'zpl' | 'all';
10139
- }
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
+ }
10140
10372
 
10141
- declare namespace io.flow.partner.v0.models {
10142
- interface BridgeHub {
10143
- readonly hub_code: string;
10144
- 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;
10145
10380
  }
10146
10381
 
10147
- interface BridgeLabelForm {
10148
- readonly discriminator: 'bridge_label_form';
10149
- readonly organization: string;
10150
- readonly order_number: string;
10151
- readonly package: io.flow.partner.v0.models.BridgeLabelPackage;
10152
- readonly hub?: io.flow.partner.v0.models.BridgeHub;
10382
+ interface AfterpayAuthentication {
10383
+ readonly username: string;
10384
+ readonly password_reference: string;
10153
10385
  }
10154
10386
 
10155
- interface BridgeLabelPackage {
10156
- readonly dimensions?: io.flow.common.v0.models.Dimension;
10157
- readonly items: io.flow.common.v0.models.LineItemForm[];
10158
- readonly reference_number: string;
10387
+ interface AfterpayAuthenticationDataReference {
10388
+ readonly account_id: string;
10159
10389
  }
10160
10390
 
10161
- interface DetailedLabelForm {
10162
- readonly discriminator: 'detailed_label_form';
10163
- readonly organization: string;
10164
- readonly destination: io.flow.fulfillment.v0.models.ShippingAddress;
10165
- readonly order_number: string;
10166
- readonly origin: io.flow.fulfillment.v0.models.ShippingAddress;
10167
- readonly package: io.flow.label.v0.models.ShippingLabelPackage;
10168
- readonly service?: string;
10169
- readonly references?: string[];
10391
+ interface AfterpayAuthenticationForm {
10392
+ readonly username: string;
10393
+ readonly password: string;
10170
10394
  }
10171
10395
 
10172
- interface Label {
10173
- readonly id: string;
10174
- readonly organization: io.flow.partner.v0.models.PartnerOrganizationReference;
10175
- readonly order_number: string;
10176
- readonly package: io.flow.label.v0.models.ShippingLabelPackage;
10177
- readonly carrier_tracking_number: string;
10178
- readonly carrier_tracking_number_url: string;
10179
- readonly destination: io.flow.fulfillment.v0.models.ShippingAddress;
10180
- readonly flow_tracking_number: string;
10181
- readonly flow_tracking_number_url: string;
10182
- readonly origin: io.flow.fulfillment.v0.models.ShippingAddress;
10183
- readonly service: io.flow.fulfillment.v0.models.ServiceSummary;
10184
- readonly window: io.flow.common.v0.models.DatetimeRange;
10185
- readonly zpl?: string;
10186
- readonly pdf?: string;
10187
- readonly png?: string;
10188
- readonly commercial_invoice?: string;
10189
- readonly references?: string[];
10190
- readonly label?: io.flow.label.v0.models.ShippingLabelDocument;
10191
- readonly invoice?: io.flow.label.v0.models.ShippingLabelDocument;
10192
- readonly cost?: io.flow.common.v0.models.Price;
10193
- 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;
10194
10399
  }
10195
10400
 
10196
- interface PartnerBridgeManifest {
10197
- readonly id: string;
10198
- readonly organization: io.flow.partner.v0.models.PartnerOrganizationReference;
10199
- readonly service: io.flow.fulfillment.v0.models.ServiceSummary;
10200
- readonly pdf: string;
10201
- readonly data: string;
10401
+ interface AuthenticationForm {
10402
+ readonly password: string;
10202
10403
  }
10203
10404
 
10204
- interface PartnerBridgeManifestForm {
10205
- 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;
10206
10411
  }
10207
10412
 
10208
- interface PartnerFulfillment {
10209
- readonly organization: string;
10210
- readonly key: string;
10211
- readonly number: string;
10212
- readonly items: io.flow.order.management.v0.models.FulfillmentItem[];
10213
- readonly center?: io.flow.fulfillment.v0.models.CenterSummary[];
10413
+ interface AuthorizationMetadata {
10414
+ readonly limit?: number;
10214
10415
  }
10215
10416
 
10216
- interface PartnerFulfillmentCancellationForm {
10217
- readonly change_source: io.flow.order.management.v0.enums.OrderChangeSource;
10218
- readonly reason: io.flow.order.management.v0.enums.CancelReason;
10219
- readonly lines: io.flow.order.management.v0.models.FulfillmentLineCancelForm[];
10417
+ interface AuthorizationParameters {
10418
+ readonly method: string;
10419
+ readonly parameters: any /*object*/;
10220
10420
  }
10221
10421
 
10222
- interface PartnerFulfillmentCompleteCancellationForm {
10223
- readonly change_source: io.flow.order.management.v0.enums.OrderChangeSource;
10224
- 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;
10225
10429
  }
10226
10430
 
10227
- interface PartnerManifest {
10431
+ interface BitpayAccount {
10432
+ readonly discriminator: 'bitpay_account';
10228
10433
  readonly id: string;
10229
- readonly organization: io.flow.partner.v0.models.PartnerOrganizationReference;
10230
- readonly service?: io.flow.fulfillment.v0.models.ServiceSummary;
10231
- readonly timestamp: string;
10232
- readonly shipping_labels: io.flow.label.v0.models.ShippingLabelSummary[];
10233
- 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;
10234
10443
  }
10235
10444
 
10236
- interface PartnerManifestForm {
10237
- readonly tracking_numbers: string[];
10238
- 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;
10239
10450
  }
10240
10451
 
10241
- 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 {
10242
10468
  readonly id: string;
10243
- readonly organization: io.flow.partner.v0.models.PartnerOrganizationReference;
10244
- readonly order: io.flow.partner.v0.models.PartnerOrderReference;
10245
- readonly number: string;
10246
10469
  }
10247
10470
 
10248
- interface PartnerOrderIdentifierForm {
10249
- readonly number: string;
10250
- readonly order_number: string;
10471
+ interface BitpayAuthenticationForm {
10472
+ readonly api_token: string;
10473
+ readonly public_key: string;
10474
+ readonly secret_key: string;
10251
10475
  }
10252
10476
 
10253
- interface PartnerOrderIdentifierPutForm {
10254
- 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;
10255
10494
  }
10256
10495
 
10257
- interface PartnerOrderReference {
10496
+ interface ChargebackVersion {
10258
10497
  readonly id: string;
10259
- 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;
10260
10501
  }
10261
10502
 
10262
- interface PartnerOrganizationReference {
10503
+ interface Cipher {
10263
10504
  readonly id: string;
10505
+ readonly attributes: Record<string, string>;
10264
10506
  }
10265
10507
 
10266
- interface SummaryLabelForm {
10267
- readonly discriminator: 'summary_label_form';
10268
- readonly organization: string;
10269
- readonly order_number: string;
10270
- readonly items?: io.flow.common.v0.models.LineItemForm[];
10271
- readonly package?: io.flow.label.v0.models.ShippingLabelPackage;
10272
- readonly center_key?: string;
10508
+ interface CipherForm {
10509
+ readonly text: string;
10510
+ readonly attributes?: Record<string, string>;
10511
+ readonly password?: string;
10273
10512
  }
10274
- }
10275
10513
 
10276
- declare namespace io.flow.partner.v0.unions {
10277
- type LabelForm =
10278
- | io.flow.partner.v0.models.DetailedLabelForm
10279
- | io.flow.partner.v0.models.SummaryLabelForm
10280
- | io.flow.partner.v0.models.BridgeLabelForm;
10281
- }
10514
+ interface CipherReference {
10515
+ readonly id: string;
10516
+ }
10282
10517
 
10283
- declare namespace io.flow.common.v0.enums {
10284
- type AttributeDataType =
10285
- | 'boolean'
10286
- | 'integer'
10287
- | 'decimal'
10288
- | 'string'
10289
- | 'json_array';
10290
- type AvailabilityStatus = 'enabled' | 'disabled';
10291
- type Calendar = 'weekdays' | 'everyday';
10292
- type Capability = 'crossdock';
10293
- type ChangeType = 'insert' | 'update' | 'delete';
10294
- type CurrencyLabelFormatter =
10295
- | 'strip_trailing_zeros'
10296
- | 'symbol_prefix'
10297
- | 'symbol_suffix';
10298
- type CurrencySymbolFormat = 'narrow' | 'primary';
10299
- type DayOfWeek =
10300
- | 'sunday'
10301
- | 'monday'
10302
- | 'tuesday'
10303
- | 'wednesday'
10304
- | 'thursday'
10305
- | 'friday'
10306
- | 'saturday';
10307
- type DeliveredDuty = 'paid' | 'unpaid';
10308
- type DiscountTarget = 'item' | 'shipping';
10309
- type EntityIdentifierType = 'ioss' | 'voec';
10310
- type Environment = 'sandbox' | 'production';
10311
- type ExceptionType = 'open' | 'closed';
10312
- type GoodsSupply = 'export' | 'intra_community' | 'local';
10313
- type HolidayCalendar = 'us_bank_holidays' | 'jewish_holidays';
10314
- type IncludedLevyKey = 'duty' | 'vat' | 'vat_and_duty' | 'none';
10315
- type Incoterm =
10316
- | 'EXW'
10317
- | 'FCA'
10318
- | 'CPT'
10319
- | 'CIP'
10320
- | 'DAT'
10321
- | 'DAP'
10322
- | 'DDP'
10323
- | 'FAS'
10324
- | 'FOB'
10325
- | 'CFR'
10326
- | 'CIF'
10327
- | 'DAF'
10328
- | 'DES'
10329
- | 'DEQ'
10330
- | 'DDU';
10331
- type InputSpecificationType = 'text' | 'number';
10332
- type MarginType = 'fixed' | 'percent';
10333
- type MeasurementSystem = 'imperial' | 'metric';
10334
- type MerchantOfRecord = 'flow' | 'organization';
10335
- type OrderMerchantOfRecord = 'flow' | 'organization' | 'mixed';
10336
- type OrganizationStatus =
10337
- | 'active'
10338
- | 'inactive'
10339
- | 'deactivated'
10340
- | 'provisioned';
10341
- type OrganizationType = 'standalone' | 'channel';
10342
- type PriceBookStatus = 'draft' | 'published' | 'archived';
10343
- type Role = 'admin' | 'member';
10344
- type RoundingMethod = 'up' | 'down' | 'nearest';
10345
- type RoundingType = 'pattern' | 'multiple';
10346
- type ScheduleExceptionStatus = 'Open' | 'Closed';
10347
- type SortDirection = 'ascending' | 'descending';
10348
- type UnitOfMeasurement =
10349
- | 'millimeter'
10350
- | 'centimeter'
10351
- | 'inch'
10352
- | 'foot'
10353
- | 'cubic_inch'
10354
- | 'cubic_meter'
10355
- | 'gram'
10356
- | 'kilogram'
10357
- | 'meter'
10358
- | 'ounce'
10359
- | 'pound';
10360
- type UnitOfTime = 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute';
10361
- type UserStatus = 'pending' | 'active' | 'inactive';
10362
- type ValueAddedService = 'Hazardous Material';
10363
- type Visibility = 'public' | 'private';
10364
- }
10518
+ interface ClassicPaymentRedirectForm {
10519
+ readonly MD: string;
10520
+ readonly PaRes: string;
10521
+ }
10365
10522
 
10366
- declare namespace io.flow.common.v0.models {
10367
- interface Address {
10368
- readonly text?: string;
10369
- readonly streets?: string[];
10370
- readonly street_number?: string;
10371
- readonly city?: string;
10372
- readonly province?: string;
10373
- readonly postal?: string;
10374
- readonly country?: string;
10375
- readonly latitude?: string;
10376
- 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;
10377
10535
  }
10378
10536
 
10379
- interface BillingAddress {
10380
- readonly name?: io.flow.common.v0.models.Name;
10381
- readonly streets?: string[];
10382
- readonly city?: string;
10383
- readonly province?: string;
10384
- readonly postal?: string;
10385
- readonly country?: string;
10386
- 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;
10387
10542
  }
10388
10543
 
10389
- 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 {
10390
10566
  readonly id: string;
10391
- readonly number: string;
10567
+ readonly password: string;
10392
10568
  }
10393
10569
 
10394
- interface CatalogItemSummary {
10395
- readonly number: string;
10396
- readonly name: string;
10570
+ interface DecryptedCipher {
10571
+ readonly id: string;
10572
+ readonly cleartext: string;
10397
10573
  readonly attributes: Record<string, string>;
10398
10574
  }
10399
10575
 
10400
- interface ChannelReference {
10576
+ interface Encryption {
10401
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[];
10402
10582
  }
10403
10583
 
10404
- interface CheckoutReference {
10584
+ interface FinancialMerchantCategory {
10405
10585
  readonly id: string;
10586
+ readonly iso_18245_4: string;
10587
+ readonly title: string;
10588
+ readonly category_group: string;
10589
+ readonly description?: string;
10406
10590
  }
10407
10591
 
10408
- interface Contact {
10409
- readonly name: io.flow.common.v0.models.Name;
10410
- readonly company?: string;
10411
- readonly email?: string;
10412
- 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;
10413
10605
  }
10414
10606
 
10415
- interface CustomerInvoice {
10416
- 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;
10417
10613
  }
10418
10614
 
10419
- interface CustomerReference {
10420
- 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;
10421
10623
  }
10422
10624
 
10423
- interface DatetimeRange {
10424
- readonly from: string;
10425
- readonly to: string;
10625
+ interface FiservAuthentication {
10626
+ readonly public_key: string;
10627
+ readonly secret_key_reference: string;
10426
10628
  }
10427
10629
 
10428
- interface Dimension {
10429
- readonly depth?: io.flow.common.v0.models.Measurement;
10430
- readonly diameter?: io.flow.common.v0.models.Measurement;
10431
- readonly length?: io.flow.common.v0.models.Measurement;
10432
- readonly weight?: io.flow.common.v0.models.Measurement;
10433
- readonly width?: io.flow.common.v0.models.Measurement;
10630
+ interface FiservAuthenticationDataReference {
10631
+ readonly account_id: string;
10632
+ readonly store_id: string;
10434
10633
  }
10435
10634
 
10436
- interface Dimensions {
10437
- readonly product?: io.flow.common.v0.models.Dimension;
10438
- readonly packaging?: io.flow.common.v0.models.Dimension;
10635
+ interface FiservAuthenticationForm {
10636
+ readonly public_key: string;
10637
+ readonly secret_key: string;
10439
10638
  }
10440
10639
 
10441
- interface DiscountForm {
10442
- readonly offer: io.flow.common.v0.unions.DiscountOffer;
10443
- readonly target?: io.flow.common.v0.enums.DiscountTarget;
10444
- 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;
10445
10654
  }
10446
10655
 
10447
- interface DiscountOfferFixed {
10448
- readonly discriminator: 'discount_offer_fixed';
10449
- 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;
10450
10663
  }
10451
10664
 
10452
- interface DiscountOfferPercent {
10453
- readonly discriminator: 'discount_offer_percent';
10454
- 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;
10455
10674
  }
10456
10675
 
10457
- interface DiscountsForm {
10458
- 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;
10459
10679
  }
10460
10680
 
10461
- interface Duration {
10462
- readonly unit: io.flow.common.v0.enums.UnitOfTime;
10463
- 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;
10464
10684
  }
10465
10685
 
10466
- interface EntityIdentifier {
10467
- readonly name: io.flow.common.v0.enums.EntityIdentifierType;
10468
- readonly number: string;
10469
- 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;
10470
10689
  }
10471
10690
 
10472
- interface Exception {
10473
- readonly type: io.flow.common.v0.enums.ExceptionType;
10474
- 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;
10475
10694
  }
10476
10695
 
10477
- interface ExperienceSummary {
10478
- readonly id: string;
10479
- readonly key: string;
10480
- readonly name: string;
10481
- readonly country?: string;
10482
- readonly currency?: string;
10483
- 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;
10484
10699
  }
10485
10700
 
10486
- interface IncludedLevies {
10487
- readonly key: io.flow.common.v0.enums.IncludedLevyKey;
10488
- 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;
10489
10704
  }
10490
10705
 
10491
- interface InputForm {
10492
- 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;
10493
10709
  }
10494
10710
 
10495
- interface InputFormSpecification {
10496
- readonly inputs?: io.flow.common.v0.models.InputSpecification[];
10497
- 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;
10498
10716
  }
10499
10717
 
10500
- interface InputSpecification {
10501
- readonly type: io.flow.common.v0.enums.InputSpecificationType;
10502
- readonly name: string;
10503
- readonly display_text?: string;
10718
+ interface Key {
10719
+ readonly id: string;
10720
+ readonly created_at: string;
10504
10721
  }
10505
10722
 
10506
- interface InputSpecificationLimitationMax {
10507
- readonly discriminator: 'input_specification_limitation_max';
10508
- readonly max: number;
10723
+ interface KeyReference {
10724
+ readonly id: string;
10509
10725
  }
10510
10726
 
10511
- interface InputSpecificationLimitations {
10512
- 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[];
10513
10731
  }
10514
10732
 
10515
- interface ItemReference {
10516
- 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;
10517
10738
  }
10518
10739
 
10519
- interface LineItem {
10520
- readonly number: string;
10521
- readonly quantity: number;
10522
- readonly price: io.flow.common.v0.models.Money;
10523
- readonly attributes: Record<string, string>;
10524
- readonly center?: string;
10525
- 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;
10526
10746
  }
10527
10747
 
10528
- interface LineItemAttributesForm {
10529
- 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;
10530
10759
  }
10531
10760
 
10532
- interface LineItemForm {
10533
- readonly number: string;
10534
- readonly quantity: number;
10535
- readonly shipment_estimate?: io.flow.common.v0.models.DatetimeRange;
10536
- readonly price?: io.flow.common.v0.models.Money;
10537
- readonly attributes?: Record<string, string>;
10538
- readonly center?: string;
10539
- readonly discount?: io.flow.common.v0.models.Money;
10540
- 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;
10541
10767
  }
10542
10768
 
10543
- interface LineItemQuantityForm {
10544
- 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;
10545
10774
  }
10546
10775
 
10547
- interface LogoImageSetStatic {
10548
- readonly discriminator: 'static';
10549
- readonly small?: io.flow.common.v0.models.LogoImageStatic;
10550
- readonly medium: io.flow.common.v0.models.LogoImageStatic;
10551
- 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;
10552
10783
  }
10553
10784
 
10554
- interface LogoImageStatic {
10555
- readonly url: string;
10556
- readonly width: number;
10557
- readonly height: number;
10785
+ interface PassphraseForm {
10786
+ readonly tribe: string;
10787
+ readonly current_password?: string;
10788
+ readonly new_password: string;
10558
10789
  }
10559
10790
 
10560
- interface LogoImageSvg {
10561
- readonly discriminator: 'svg';
10562
- readonly url: string;
10791
+ interface PassphraseSummary {
10792
+ readonly id: string;
10793
+ readonly tribe: io.flow.payment.internal.v0.models.Tribe;
10563
10794
  }
10564
10795
 
10565
- interface Margin {
10566
- readonly type: io.flow.common.v0.enums.MarginType;
10567
- 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[];
10568
10799
  }
10569
10800
 
10570
- interface Measurement {
10571
- readonly value: string;
10572
- 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;
10573
10805
  }
10574
10806
 
10575
- interface MerchantOfRecordEntity {
10576
- readonly organization: io.flow.common.v0.models.OrganizationReference;
10577
- readonly name: string;
10578
- readonly vat?: io.flow.common.v0.models.MerchantOfRecordEntityRegistration;
10579
- readonly identifiers?: io.flow.common.v0.models.EntityIdentifier[];
10580
- readonly streets: string[];
10581
- readonly city: string;
10582
- readonly province?: string;
10583
- readonly postal?: string;
10584
- readonly country: string;
10585
- readonly phone?: string;
10586
- 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;
10587
10816
  }
10588
10817
 
10589
- interface MerchantOfRecordEntityRegistration {
10590
- 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;
10591
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;
10592
10839
  }
10593
10840
 
10594
- interface Money {
10595
- readonly amount: number;
10596
- 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;
10597
10846
  }
10598
10847
 
10599
- interface MoneyWithBase {
10600
- readonly currency: string;
10601
- readonly amount: number;
10602
- 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;
10603
10855
  }
10604
10856
 
10605
- interface MoneyWithOptionalBase {
10606
- readonly currency: string;
10607
- readonly amount: number;
10608
- readonly base?: io.flow.common.v0.models.Money;
10857
+ interface PaypalAccountReference {
10858
+ readonly id: string;
10859
+ readonly flow_merchant_id?: string;
10609
10860
  }
10610
10861
 
10611
- interface Name {
10612
- readonly first?: string;
10613
- readonly last?: string;
10862
+ interface PaypalAuthentication {
10863
+ readonly username: string;
10864
+ readonly password_reference: string;
10614
10865
  }
10615
10866
 
10616
- interface OrderCustomer {
10617
- readonly name: io.flow.common.v0.models.Name;
10618
- readonly number?: string;
10619
- readonly phone?: string;
10620
- readonly email?: string;
10621
- readonly address?: io.flow.common.v0.models.BillingAddress;
10622
- readonly invoice?: io.flow.common.v0.models.CustomerInvoice;
10867
+ interface PaypalAuthenticationForm {
10868
+ readonly username: string;
10869
+ readonly password: string;
10623
10870
  }
10624
10871
 
10625
- interface OrderCustomerForm {
10626
- readonly name?: io.flow.common.v0.models.Name;
10627
- readonly number?: string;
10628
- readonly phone?: string;
10629
- readonly email?: string;
10630
- readonly address?: io.flow.common.v0.models.BillingAddress;
10631
- 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;
10632
10876
  }
10633
10877
 
10634
- interface Organization {
10635
- readonly discriminator: 'organization';
10878
+ interface PaypalMerchant {
10879
+ readonly discriminator: 'paypal_merchant';
10636
10880
  readonly id: string;
10637
- readonly name: string;
10638
- readonly environment: io.flow.common.v0.enums.Environment;
10639
- readonly parent?: io.flow.common.v0.models.OrganizationReference;
10640
- readonly defaults?: io.flow.common.v0.models.OrganizationDefaults;
10641
- readonly created_at?: string;
10642
- readonly status?: io.flow.common.v0.enums.OrganizationStatus;
10643
- 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;
10644
10890
  }
10645
10891
 
10646
- interface OrganizationDefaults {
10892
+ interface PaypalMerchantModificationForm {
10893
+ readonly discriminator: 'paypal_merchant_modification_form';
10894
+ readonly external_id: string;
10647
10895
  readonly country: string;
10648
- readonly base_currency: string;
10649
- readonly language: string;
10650
- readonly locale: string;
10651
- readonly timezone: string;
10896
+ readonly status?: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10652
10897
  }
10653
10898
 
10654
- interface OrganizationReference {
10655
- 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 {
10656
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;
10657
10917
  }
10658
10918
 
10659
- interface OrganizationSummary {
10919
+ interface ProcessorEntityStatusForm {
10920
+ readonly status: io.flow.payment.internal.v0.enums.ProcessorEntityStatus;
10921
+ }
10922
+
10923
+ interface ProcessorMerchantReference {
10660
10924
  readonly id: string;
10661
- readonly name: string;
10662
- 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;
10663
10931
  }
10664
10932
 
10665
- interface PartnerReference {
10933
+ interface Redirect {
10666
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;
10667
10937
  }
10668
10938
 
10669
- interface Price {
10670
- readonly amount: number;
10671
- readonly currency: string;
10672
- 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;
10673
10947
  }
10674
10948
 
10675
- interface PriceForm {
10676
- readonly amount: number;
10677
- 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;
10678
10953
  }
10679
10954
 
10680
- interface PriceSourceCatalog {
10681
- readonly discriminator: 'catalog';
10682
- 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;
10683
10960
  }
10684
10961
 
10685
- interface PriceSourcePriceBook {
10686
- readonly discriminator: 'price_book';
10687
- readonly price: io.flow.common.v0.models.Money;
10688
- readonly includes: io.flow.common.v0.models.IncludedLevies;
10689
- 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;
10690
10965
  }
10691
10966
 
10692
- interface PriceSourcePriceBookReference {
10967
+ interface StripeAccount {
10968
+ readonly discriminator: 'stripe_account';
10693
10969
  readonly id: string;
10970
+ readonly organization_id: string;
10694
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;
10695
10981
  }
10696
10982
 
10697
- interface PriceSourceProvided {
10698
- readonly discriminator: 'provided';
10699
- 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;
10700
10990
  }
10701
10991
 
10702
- interface PriceWithBase {
10703
- readonly currency: string;
10704
- readonly amount: number;
10705
- readonly label: string;
10706
- 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;
10707
11001
  }
10708
11002
 
10709
- interface RepeatDaily {
10710
- readonly discriminator: 'repeat_daily';
10711
- readonly interval: number;
11003
+ interface StripeAuthentication {
11004
+ readonly public_key: string;
11005
+ readonly secret_key_reference: string;
10712
11006
  }
10713
11007
 
10714
- interface RepeatHourly {
10715
- readonly discriminator: 'repeat_hourly';
10716
- readonly interval: number;
11008
+ interface StripeAuthenticationDataReference {
11009
+ readonly id: string;
10717
11010
  }
10718
11011
 
10719
- interface RepeatMonthly {
10720
- readonly discriminator: 'repeat_monthly';
10721
- readonly interval: number;
10722
- readonly days: number[];
11012
+ interface StripeAuthenticationForm {
11013
+ readonly public_key: string;
11014
+ readonly secret_key: string;
10723
11015
  }
10724
11016
 
10725
- interface RepeatWeekly {
10726
- readonly discriminator: 'repeat_weekly';
10727
- readonly interval: number;
10728
- 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;
10729
11031
  }
10730
11032
 
10731
- interface Rounding {
10732
- readonly type: io.flow.common.v0.enums.RoundingType;
10733
- readonly method: io.flow.common.v0.enums.RoundingMethod;
10734
- 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;
10735
11042
  }
10736
11043
 
10737
- interface Schedule {
10738
- readonly calendar?: io.flow.common.v0.enums.Calendar;
10739
- readonly holiday: io.flow.common.v0.enums.HolidayCalendar;
10740
- readonly exception: io.flow.common.v0.models.Exception[];
10741
- readonly cutoff?: string;
10742
- readonly min_lead_time?: number;
10743
- 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;
10744
11051
  }
10745
11052
 
10746
- interface SessionReference {
10747
- 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;
10748
11062
  }
10749
11063
 
10750
- interface User {
10751
- readonly discriminator: 'user';
11064
+ interface Tribe {
10752
11065
  readonly id: string;
10753
- readonly email?: string;
10754
- readonly name: io.flow.common.v0.models.Name;
10755
- readonly status: io.flow.common.v0.enums.UserStatus;
11066
+ readonly description: string;
10756
11067
  }
10757
11068
 
10758
- interface UserReference {
10759
- readonly discriminator: 'user_reference';
11069
+ interface VirtualCardProvider {
10760
11070
  readonly id: string;
10761
- }
10762
-
10763
- interface Zone {
10764
- readonly postals?: string[];
10765
- readonly provinces?: string[];
10766
- 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;
10767
11076
  }
10768
11077
  }
10769
11078
 
10770
- declare namespace io.flow.common.v0.unions {
10771
- type DiscountOffer =
10772
- | io.flow.common.v0.models.DiscountOfferFixed
10773
- | io.flow.common.v0.models.DiscountOfferPercent;
10774
- type ExpandableOrganization =
10775
- | io.flow.common.v0.models.Organization
10776
- | io.flow.common.v0.models.OrganizationReference;
10777
- type ExpandableUser =
10778
- | io.flow.common.v0.models.User
10779
- | io.flow.common.v0.models.UserReference;
10780
- type InputSpecificationLimitation =
10781
- io.flow.common.v0.models.InputSpecificationLimitationMax;
10782
- type LogoImage =
10783
- | io.flow.common.v0.models.LogoImageSvg
10784
- | io.flow.common.v0.models.LogoImageSetStatic;
10785
- type PriceSource =
10786
- | io.flow.common.v0.models.PriceSourcePriceBook
10787
- | io.flow.common.v0.models.PriceSourceCatalog
10788
- | io.flow.common.v0.models.PriceSourceProvided;
10789
- type RepeatSchedule =
10790
- | io.flow.common.v0.models.RepeatHourly
10791
- | io.flow.common.v0.models.RepeatDaily
10792
- | io.flow.common.v0.models.RepeatWeekly
10793
- | 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;
10794
11143
  }
10795
11144
 
10796
11145
  declare namespace io.flow.ftp.v0.enums {
@@ -10852,298 +11201,40 @@ declare namespace io.flow.ftp.v0.models {
10852
11201
  }
10853
11202
  }
10854
11203
 
10855
- declare namespace io.flow.billing.reporting.csv.v0.enums {
10856
- type ReportingFulfillmentIsVirtual = 'all' | 'mixed' | 'none';
10857
- }
10858
-
10859
11204
  declare namespace io.flow.billing.reporting.csv.v0.models {
10860
- interface FulfillmentShopperBreakdown {
10861
- readonly shipping: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
10862
- readonly fees: io.flow.billing.reporting.csv.v0.models.ReportingShopperFees;
10863
- readonly product: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
10864
- readonly subtotal: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
10865
- readonly tax: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
10866
- readonly duty: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
10867
- readonly discount: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
10868
- readonly total: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
10869
- }
10870
-
10871
- interface MarkedAsFinal {
10872
- readonly products: boolean;
10873
- readonly shipping: boolean;
10874
- }
10875
-
10876
- interface RefundRecord {
10877
- readonly billing_entity: string;
10878
- readonly order_id: string;
10879
- readonly order_refund_id: string;
10880
- readonly refund_created_at_date: string;
10881
- readonly reconciliation_date: string;
10882
- readonly reconciliation_month: number;
10883
- readonly reconciliation_year: number;
10884
- readonly order_created_at_date: string;
10885
- readonly order_status: string;
10886
- readonly b2b_sale: boolean;
10887
- readonly a_zero_vat_product_exists: boolean;
10888
- readonly payment_merchant_reference?: string;
10889
- readonly merchant_reference?: string;
10890
- readonly merchant_id: string;
10891
- readonly merchant_name: string;
10892
- readonly destination_country: string;
10893
- readonly shopper_country_is_eu: boolean;
10894
- readonly order_refund_reason_name: string;
10895
- readonly order_refund_status_name: string;
10896
- readonly original_ccy: string;
10897
- readonly transaction_ccy: string;
10898
- readonly total_refund_amount_exc_vat_in_transaction_ccy?: number;
10899
- readonly refund_vat_in_transaction_ccy?: number;
10900
- readonly total_refund_amount_inc_vat_in_transaction_ccy?: number;
10901
- readonly merchant_total_products_refund_amount_exc_vat_in_original_ccy: number;
10902
- readonly merchant_shipping_refund_amount_exc_vat_in_transaction_ccy?: number;
10903
- readonly merchant_shipping_refund_amount_exc_vat_in_original_ccy: number;
10904
- readonly total_refund_amount_exc_tax_collected_in_shopper_ccy?: number;
10905
- readonly tax_collected_amount_in_shopper_ccy: number;
10906
- readonly total_refund_amount_inc_tax_collected_in_shopper_ccy?: number;
10907
- readonly payment_gateway: string;
10908
- readonly min_product_customer_vat_rate?: number;
10909
- readonly is_virtual_order: boolean;
10910
- readonly is_mixed_virtual_order: boolean;
10911
- readonly total_refund_amount_exc_tax_collected_in_usd: number;
10912
- readonly tax_collected_amount_in_usd: number;
10913
- readonly total_refund_amount_inc_tax_collected_in_usd: number;
10914
- readonly total_refund_amount_exc_tax_collected_in_eur: number;
10915
- readonly tax_collected_amount_in_eur: number;
10916
- readonly total_refund_amount_inc_tax_collected_in_eur: number;
10917
- readonly is_wyol_order: boolean;
10918
- readonly is_duties_guaranteed: boolean;
10919
- readonly invoice_id?: string;
10920
- readonly total_refund_amount_exc_vat_in_entity_ccy: number;
10921
- readonly refund_vat_in_entity_ccy: number;
10922
- readonly total_refund_amount_inc_vat_in_entity_ccy: number;
10923
- readonly merchant_total_products_refund_amount_exc_vat_in_entity_ccy: number;
10924
- readonly merchant_shipping_refund_amount_exc_vat_in_entity_ccy: number;
10925
- readonly merchant_duties_and_taxes_refund_amount_in_entity_ccy: number;
10926
- readonly merchant_service_gesture_amount_exc_vat_in_entity_ccy: number;
10927
- readonly customer_prepaid_refund_amount_exc_vat_in_entity_ccy: number;
10928
- readonly total_refund_amount_exc_tax_collected_in_entity_ccy: number;
10929
- readonly tax_collected_amount_in_entity_ccy: number;
10930
- readonly total_refund_amount_inc_tax_collected_in_entity_ccy: number;
10931
- readonly conversion_rate_transaction_to_entity_ccy: number;
10932
- readonly merchant_order_id: string;
10933
- readonly transaction_date: string;
10934
- readonly debug_console_order_link: string;
10935
- }
10936
-
10937
- interface ReportingAuthorizationReference {
10938
- readonly id: string;
10939
- }
10940
-
10941
- interface ReportingBusiness {
10942
- readonly vat_registration_number: string;
10943
- readonly name?: string;
10944
- }
10945
-
10946
- interface ReportingConversionRates {
10947
- readonly merchant: number;
10948
- readonly entity: number;
10949
- readonly usd: number;
10950
- readonly eur: number;
10951
- }
10952
-
10953
- interface ReportingCountry {
10954
- readonly code: string;
10955
- readonly is_eu: boolean;
10956
- }
10957
-
10958
- interface ReportingCurrencies {
10959
- readonly transaction: string;
10960
- readonly merchant: string;
10961
- readonly entity: string;
10962
- }
10963
-
10964
- interface ReportingDebug {
10965
- readonly console_order_link: string;
10966
- readonly allocation_order_totals_delta?: number;
10967
- readonly allocation_order_item_discount_delta?: number;
10968
- readonly missing_item_subsidies?: io.flow.billing.reporting.csv.v0.models.ReportingDebugMissingSubsidies;
10969
- readonly missing_shipping_subsidies?: io.flow.billing.reporting.csv.v0.models.ReportingDebugMissingSubsidies;
10970
- }
10971
-
10972
- interface ReportingDebugMissingSubsidies {
10973
- readonly price?: boolean;
10974
- readonly tax?: boolean;
10975
- readonly duty?: boolean;
10976
- }
10977
-
10978
- interface ReportingDestination {
10979
- readonly country: io.flow.billing.reporting.csv.v0.models.ReportingCountry;
10980
- readonly province?: io.flow.billing.reporting.csv.v0.models.ReportingProvince;
10981
- }
10982
-
10983
- interface ReportingEntity {
10984
- readonly id: string;
10985
- }
10986
-
10987
11205
  interface ReportingFulfillment {
10988
11206
  readonly id: string;
10989
11207
  readonly sequence_number: number;
10990
11208
  readonly fulfilled_at: string;
10991
11209
  readonly completes_order: boolean;
10992
- readonly payment: io.flow.billing.reporting.csv.v0.models.ReportingFulfillmentPayment;
10993
- readonly value: io.flow.billing.reporting.csv.v0.models.FulfillmentShopperBreakdown;
10994
- readonly dispatch_country?: io.flow.billing.reporting.csv.v0.models.ReportingCountry;
10995
- 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;
10996
11214
  readonly carrier?: string;
10997
- readonly is: io.flow.billing.reporting.csv.v0.models.ReportingFulfillmentIs;
10998
- readonly has: io.flow.billing.reporting.csv.v0.models.ReportingFulfillmentHas;
10999
- readonly fx: io.flow.billing.reporting.csv.v0.models.ReportingFx;
11000
- readonly business?: io.flow.billing.reporting.csv.v0.models.ReportingBusiness;
11001
- }
11002
-
11003
- interface ReportingFulfillmentHas {
11004
- readonly zero_vat_product: boolean;
11005
- }
11006
-
11007
- interface ReportingFulfillmentIs {
11008
- readonly replacement: boolean;
11009
- readonly virtual: io.flow.billing.reporting.csv.v0.enums.ReportingFulfillmentIsVirtual;
11010
- readonly duties_guaranteed: boolean;
11011
- readonly wyol: boolean;
11012
- readonly b2b: boolean;
11013
- readonly domestic: boolean;
11014
- }
11015
-
11016
- interface ReportingFulfillmentPayment {
11017
- readonly metadata?: io.flow.billing.reporting.csv.v0.models.ReportingFulfillmentPaymentMetadata;
11018
- readonly psp: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11019
- readonly credit: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11020
- readonly total: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11021
- }
11022
-
11023
- interface ReportingFulfillmentPaymentMetadata {
11024
- readonly gateway: io.flow.payment.internal.v0.enums.Processor;
11025
- readonly method: string;
11026
- readonly psp_reference?: string;
11027
- readonly authorization?: io.flow.billing.reporting.csv.v0.models.ReportingAuthorizationReference;
11028
- readonly settlement_date: string;
11029
- readonly additional_authorizations?: io.flow.billing.reporting.csv.v0.models.ReportingFulfillmentPaymentMetadataAdditionalAuthorizations;
11030
- }
11031
-
11032
- interface ReportingFulfillmentPaymentMetadataAdditionalAuthorizations {
11033
- readonly ids: string;
11034
- }
11035
-
11036
- interface ReportingFx {
11037
- readonly shipping: io.flow.billing.reporting.csv.v0.models.ReportingUsd;
11038
- readonly fees: io.flow.billing.reporting.csv.v0.models.ReportingUsd;
11039
- readonly product: io.flow.billing.reporting.csv.v0.models.ReportingUsd;
11040
- readonly tax: io.flow.billing.reporting.csv.v0.models.ReportingUsd;
11041
- readonly duty: io.flow.billing.reporting.csv.v0.models.ReportingUsd;
11042
- readonly total: io.flow.billing.reporting.csv.v0.models.ReportingUsd;
11043
- }
11044
-
11045
- interface ReportingMerchantFees {
11046
- readonly duty_guarantee: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11047
- readonly mor: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11048
- readonly fraud: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11049
- readonly fx: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11050
- readonly processing: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11051
- readonly rate_lock: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11052
- readonly transfer: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11053
- }
11054
-
11055
- interface ReportingMerchantSubsidies {
11056
- readonly shipping: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11057
- readonly tax: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11058
- readonly duty: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11059
- readonly ccf: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11060
- }
11061
-
11062
- interface ReportingMerchantTransactions {
11063
- readonly adjustment: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11064
- readonly reversal: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11065
- readonly tax: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11066
- readonly duty: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11067
- readonly freight: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11068
- }
11069
-
11070
- interface ReportingMonetaryValue {
11071
- readonly transaction: number;
11072
- readonly merchant: number;
11073
- readonly entity: number;
11074
- readonly usd: number;
11075
- readonly eur: number;
11076
- }
11077
-
11078
- interface ReportingOrderSummary {
11079
- readonly id: string;
11080
- readonly number: string;
11081
- readonly submitted_at: string;
11082
- }
11083
-
11084
- interface ReportingOrganizationSummary {
11085
- readonly id: string;
11086
- readonly name: string;
11087
- }
11088
-
11089
- interface ReportingProvince {
11090
- readonly code?: string;
11091
- readonly name: string;
11092
- }
11093
-
11094
- interface ReportingReconciliation {
11095
- readonly date: string;
11096
- readonly month: number;
11097
- readonly year: number;
11098
- }
11099
-
11100
- interface ReportingShopperFees {
11101
- readonly fuel: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11102
- readonly remote_area: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11103
- readonly oversize: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11104
- readonly ccf: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11105
- readonly emergency: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11106
- readonly peak: io.flow.billing.reporting.csv.v0.models.ReportingMonetaryValue;
11107
- }
11108
-
11109
- interface ReportingUsd {
11110
- readonly usd: number;
11111
- }
11112
-
11113
- interface ReportingVatRemittance {
11114
- readonly currency: string;
11115
- readonly rate: io.flow.billing.reporting.csv.v0.models.ReportingVatRemittanceRate;
11116
- }
11117
-
11118
- interface ReportingVatRemittanceRate {
11119
- readonly entity: number;
11120
- }
11121
-
11122
- interface ReportingVendor {
11123
- 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;
11124
11219
  }
11125
11220
 
11126
11221
  interface SalesRecord {
11127
11222
  readonly id: string;
11128
- readonly parent?: io.flow.billing.reporting.csv.v0.models.SalesRecordReference;
11129
- readonly merchant: io.flow.billing.reporting.csv.v0.models.ReportingOrganizationSummary;
11130
- readonly order: io.flow.billing.reporting.csv.v0.models.ReportingOrderSummary;
11131
- readonly entity: io.flow.billing.reporting.csv.v0.models.ReportingEntity;
11132
- readonly vendor: io.flow.billing.reporting.csv.v0.models.ReportingVendor;
11133
- readonly currencies: io.flow.billing.reporting.csv.v0.models.ReportingCurrencies;
11134
- readonly conversion_rate: io.flow.billing.reporting.csv.v0.models.ReportingConversionRates;
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;
11135
11235
  readonly fulfillment: io.flow.billing.reporting.csv.v0.models.ReportingFulfillment;
11136
- readonly reconciliation: io.flow.billing.reporting.csv.v0.models.ReportingReconciliation;
11137
- readonly marked_as_final: io.flow.billing.reporting.csv.v0.models.MarkedAsFinal;
11138
- readonly merchant_subsidies: io.flow.billing.reporting.csv.v0.models.ReportingMerchantSubsidies;
11139
- readonly merchant_fees: io.flow.billing.reporting.csv.v0.models.ReportingMerchantFees;
11140
- readonly merchant_transactions: io.flow.billing.reporting.csv.v0.models.ReportingMerchantTransactions;
11141
- readonly vat_remittance: io.flow.billing.reporting.csv.v0.models.ReportingVatRemittance;
11142
- readonly debug: io.flow.billing.reporting.csv.v0.models.ReportingDebug;
11143
- }
11144
-
11145
- interface SalesRecordReference {
11146
- 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;
11147
11238
  }
11148
11239
  }
11149
11240
 
@@ -12451,6 +12542,12 @@ declare namespace io.flow.experience.v0.unions {
12451
12542
  declare namespace io.flow.payment.request.bundle.v0.models {
12452
12543
  interface PaymentRequestBilling {
12453
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;
12454
12551
  }
12455
12552
 
12456
12553
  interface PaymentRequestBillingFees {
@@ -13458,6 +13555,7 @@ declare namespace io.flow.price.v0.unions {
13458
13555
  }
13459
13556
 
13460
13557
  declare namespace io.flow.trueup.v0.enums {
13558
+ type CarrierChargeReason = 'return_to_origin' | 'rejection' | 'other';
13461
13559
  type TrueupSurchargeType =
13462
13560
  | 'fuel'
13463
13561
  | 'remote_area'
@@ -14753,6 +14851,7 @@ declare namespace io.flow.billing.internal.v0.enums {
14753
14851
  | 'tax'
14754
14852
  | 'duty'
14755
14853
  | 'trueup'
14854
+ | 'carrier_charge'
14756
14855
  | 'all';
14757
14856
  type BillingStatementBatchFileKey = 'summary';
14758
14857
  type BillingTransactionStatus = 'pending' | 'pending_proof' | 'posted';
@@ -14777,7 +14876,9 @@ declare namespace io.flow.billing.internal.v0.enums {
14777
14876
  | 'channel_billed'
14778
14877
  | 'tax'
14779
14878
  | 'duty'
14780
- | 'trueup';
14879
+ | 'trueup'
14880
+ | 'carrier_charge';
14881
+ type CarrierChargeTransactionType = 'adjustment' | 'reversal' | 'charge';
14781
14882
  type ChannelBilledTransactionType =
14782
14883
  | 'adjustment'
14783
14884
  | 'reversal'
@@ -14823,6 +14924,7 @@ declare namespace io.flow.billing.internal.v0.enums {
14823
14924
  | 'fulfillment_external'
14824
14925
  | 'fulfillment_order_combined_shipment'
14825
14926
  | 'fulfillment_order_time'
14927
+ | 'return_refund'
14826
14928
  | 'label_tracking_summary'
14827
14929
  | 'label_invoice_request'
14828
14930
  | 'carrier_charge'
@@ -14834,6 +14936,7 @@ declare namespace io.flow.billing.internal.v0.enums {
14834
14936
  | 'refund'
14835
14937
  | 'refund_over_capture'
14836
14938
  | 'sales_record'
14939
+ | 'refund_record'
14837
14940
  | 'statement_batch'
14838
14941
  | 'statement_email'
14839
14942
  | 'statement_summary_email'
@@ -15134,6 +15237,7 @@ declare namespace io.flow.billing.internal.v0.models {
15134
15237
  readonly tax: io.flow.common.v0.models.Price;
15135
15238
  readonly duty: io.flow.common.v0.models.Price;
15136
15239
  readonly trueup: io.flow.common.v0.models.Price;
15240
+ readonly carrier_charge: io.flow.common.v0.models.Price;
15137
15241
  readonly ending_balance: io.flow.common.v0.models.Price;
15138
15242
  }
15139
15243
 
@@ -15148,6 +15252,19 @@ declare namespace io.flow.billing.internal.v0.models {
15148
15252
  readonly statement?: io.flow.billing.internal.v0.models.BillingStatementReference;
15149
15253
  }
15150
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
+
15151
15268
  interface ChannelAccount {
15152
15269
  readonly channel: io.flow.common.v0.models.ChannelReference;
15153
15270
  readonly id: string;
@@ -15890,7 +16007,8 @@ declare namespace io.flow.billing.internal.v0.unions {
15890
16007
  | io.flow.billing.internal.v0.models.ChannelBilledTransaction
15891
16008
  | io.flow.billing.internal.v0.models.TaxTransaction
15892
16009
  | io.flow.billing.internal.v0.models.DutyTransaction
15893
- | io.flow.billing.internal.v0.models.TrueupTransaction;
16010
+ | io.flow.billing.internal.v0.models.TrueupTransaction
16011
+ | io.flow.billing.internal.v0.models.CarrierChargeTransaction;
15894
16012
  }
15895
16013
 
15896
16014
  declare namespace io.flow.billing.v0.enums {
@@ -15924,6 +16042,7 @@ declare namespace io.flow.billing.v0.enums {
15924
16042
  | 'shipping_label'
15925
16043
  | 'shipping_label_service'
15926
16044
  | 'trueup'
16045
+ | 'carrier_charge'
15927
16046
  | 'shipping_label_revenue_share'
15928
16047
  | 'platform_fee'
15929
16048
  | 'tax'
@@ -16191,6 +16310,13 @@ declare namespace io.flow.billing.v0.models {
16191
16310
  readonly updated_at: string;
16192
16311
  }
16193
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
+
16194
16320
  interface TransactionMetadataChannel {
16195
16321
  readonly discriminator: 'channel';
16196
16322
  readonly method: string;
@@ -16289,6 +16415,7 @@ declare namespace io.flow.billing.v0.unions {
16289
16415
  | io.flow.billing.v0.models.TransactionMetadataShippingLabel
16290
16416
  | io.flow.billing.v0.models.TransactionMetadataChannel
16291
16417
  | io.flow.billing.v0.models.TransactionMetadataTrueup
16418
+ | io.flow.billing.v0.models.TransactionMetadataCarrierCharge
16292
16419
  | io.flow.billing.v0.models.TransactionMetadataManual;
16293
16420
  }
16294
16421
 
@@ -18102,7 +18229,10 @@ declare namespace io.flow.internal.v0.enums {
18102
18229
  | 'capture_transactions_ignored_fully_refunded_count'
18103
18230
  | 'capture_transactions_ignored_other_count'
18104
18231
  | 'capture_transactions_ignored_previously_processed_count'
18232
+ | 'capture_queued_count'
18105
18233
  | 'capture_transactions_total'
18234
+ | 'carrier_charge_transactions_count'
18235
+ | 'carrier_charge_transactions_total'
18106
18236
  | 'channel_transactions_processing_count'
18107
18237
  | 'channel_transactions_processing_total'
18108
18238
  | 'channel_transactions_adjustment_count'
@@ -18132,6 +18262,7 @@ declare namespace io.flow.internal.v0.enums {
18132
18262
  | 'refund_transactions_ignored_fully_refunded_count'
18133
18263
  | 'refund_transactions_ignored_other_count'
18134
18264
  | 'refund_transactions_ignored_previously_processed_count'
18265
+ | 'refund_queued_count'
18135
18266
  | 'refund_transactions_total'
18136
18267
  | 'reversal_order_cancellations_transactions_count'
18137
18268
  | 'reversal_order_cancellations_transactions_total'
@@ -18177,7 +18308,12 @@ declare namespace io.flow.internal.v0.enums {
18177
18308
  | 'percentage_billable_label_transactions_with_carrier_charge_20_days'
18178
18309
  | 'percentage_billable_label_transactions_with_carrier_charge_30_days'
18179
18310
  | 'percentage_billable_label_transactions_with_carrier_charge_60_days'
18180
- | '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';
18181
18317
  type BillingStatementAttachmentKey =
18182
18318
  | 'invoice'
18183
18319
  | 'statement'
@@ -18194,6 +18330,7 @@ declare namespace io.flow.internal.v0.enums {
18194
18330
  | 'tax'
18195
18331
  | 'duty'
18196
18332
  | 'trueup'
18333
+ | 'carrier_charge'
18197
18334
  | 'all';
18198
18335
  type BillingStatementBatchFileKey = 'summary';
18199
18336
  type BillingTransactionStatus = 'pending' | 'pending_proof' | 'posted';
@@ -18218,7 +18355,8 @@ declare namespace io.flow.internal.v0.enums {
18218
18355
  | 'channel_billed'
18219
18356
  | 'tax'
18220
18357
  | 'duty'
18221
- | 'trueup';
18358
+ | 'trueup'
18359
+ | 'carrier_charge';
18222
18360
  type BlazeCheckoutEvent =
18223
18361
  | 'begin_checkout'
18224
18362
  | 'select_promotion'
@@ -18232,8 +18370,9 @@ declare namespace io.flow.internal.v0.enums {
18232
18370
  | 'dtce'
18233
18371
  | 'dtce_two_calls'
18234
18372
  | 'dtce_with_deminimis'
18235
- | 'dtce_merged_with_tax';
18236
- type CarrierChargeOtherReason = 'return_to_origin' | 'other';
18373
+ | 'dtce_merged_with_tax'
18374
+ | 'dtce_with_inclusive_pricing';
18375
+ type CarrierChargeTransactionType = 'adjustment' | 'reversal' | 'charge';
18237
18376
  type CarrierLabelGenerationMethod = 'direct' | 'easypost';
18238
18377
  type CarrierValidationStatus = 'success' | 'error';
18239
18378
  type CatalogImportType =
@@ -18278,6 +18417,19 @@ declare namespace io.flow.internal.v0.enums {
18278
18417
  | 'partial'
18279
18418
  | 'cancelled';
18280
18419
  type ChannelTransactionType = 'adjustment' | 'reversal' | 'processing';
18420
+ type ChargeEstimateSource = 'global-e' | 'shopify';
18421
+ type ChargeInputType =
18422
+ | 'fuelsc'
18423
+ | 'incoterm_ddp'
18424
+ | 'delivery_confirmation'
18425
+ | 'base_charge'
18426
+ | 'package_pickup'
18427
+ | 'insurance'
18428
+ | 'usps_first_mile'
18429
+ | 'oversize_piece'
18430
+ | 'incoterm_dap'
18431
+ | 'emergency_situation'
18432
+ | 'remote_area_delivery';
18281
18433
  type ChargebackPaymentStatus = 'captured' | 'refunded';
18282
18434
  type ChargebackProcessStatus = 'inquiry' | 'open' | 'closed';
18283
18435
  type CheckoutAddAuthorizationErrorCode =
@@ -18672,6 +18824,8 @@ declare namespace io.flow.internal.v0.enums {
18672
18824
  | 'daily_value_deleted'
18673
18825
  | 'sales_record_upserted'
18674
18826
  | 'sales_record_deleted'
18827
+ | 'revenue_record_upserted'
18828
+ | 'revenue_record_deleted'
18675
18829
  | 'calculator_organization_settings_upserted'
18676
18830
  | 'calculator_organization_settings_deleted'
18677
18831
  | 'carrier_account_upserted_v2'
@@ -19123,6 +19277,7 @@ declare namespace io.flow.internal.v0.enums {
19123
19277
  | 'dtce'
19124
19278
  | 'restrictions'
19125
19279
  | 'organization_status'
19280
+ | 'category_constraints'
19126
19281
  | 'miscellaneous';
19127
19282
  type OnboardingAutomationProcessState =
19128
19283
  | 'not_started'
@@ -19241,6 +19396,7 @@ declare namespace io.flow.internal.v0.enums {
19241
19396
  | 'fulfillment_external'
19242
19397
  | 'fulfillment_order_combined_shipment'
19243
19398
  | 'fulfillment_order_time'
19399
+ | 'return_refund'
19244
19400
  | 'label_tracking_summary'
19245
19401
  | 'label_invoice_request'
19246
19402
  | 'carrier_charge'
@@ -19252,6 +19408,7 @@ declare namespace io.flow.internal.v0.enums {
19252
19408
  | 'refund'
19253
19409
  | 'refund_over_capture'
19254
19410
  | 'sales_record'
19411
+ | 'refund_record'
19255
19412
  | 'statement_batch'
19256
19413
  | 'statement_email'
19257
19414
  | 'statement_summary_email'
@@ -19288,6 +19445,7 @@ declare namespace io.flow.internal.v0.enums {
19288
19445
  | 'sales_record'
19289
19446
  | 'trueup_overview'
19290
19447
  | 'non_channel_payment_bank_account';
19448
+ type ReportingFulfillmentIsVirtual = 'all' | 'mixed' | 'none';
19291
19449
  type ReportingScheme =
19292
19450
  | 'immediate_reporting_to_tax_authority'
19293
19451
  | 'periodic_reporting_to_tax_authority'
@@ -19302,6 +19460,7 @@ declare namespace io.flow.internal.v0.enums {
19302
19460
  | 'escalated'
19303
19461
  | 'accepted'
19304
19462
  | 'restricted';
19463
+ type RevenueRecordType = 'sales' | 'refund';
19305
19464
  type RiskCheck = 'three_d_secure';
19306
19465
  type RiskEvaluation =
19307
19466
  | 'Pending'
@@ -19350,7 +19509,8 @@ declare namespace io.flow.internal.v0.enums {
19350
19509
  | 'online_payment'
19351
19510
  | 'order_update'
19352
19511
  | 'product_restriction_result'
19353
- | 'product_sync';
19512
+ | 'product_sync'
19513
+ | 'webhook_registrations';
19354
19514
  type ShopifyMarketsTradeSector =
19355
19515
  | 'apparel_and_accessories'
19356
19516
  | 'beauty_and_cosmetics'
@@ -20464,6 +20624,7 @@ declare namespace io.flow.internal.v0.models {
20464
20624
  readonly tax: io.flow.common.v0.models.Price;
20465
20625
  readonly duty: io.flow.common.v0.models.Price;
20466
20626
  readonly trueup: io.flow.common.v0.models.Price;
20627
+ readonly carrier_charge: io.flow.common.v0.models.Price;
20467
20628
  readonly ending_balance: io.flow.common.v0.models.Price;
20468
20629
  }
20469
20630
 
@@ -20906,7 +21067,7 @@ declare namespace io.flow.internal.v0.models {
20906
21067
  interface CarrierChargeFormOther {
20907
21068
  readonly discriminator: 'other';
20908
21069
  readonly id: string;
20909
- readonly reason: io.flow.internal.v0.enums.CarrierChargeOtherReason;
21070
+ readonly reason: io.flow.trueup.v0.enums.CarrierChargeReason;
20910
21071
  readonly organization_id: string;
20911
21072
  readonly order_number: string;
20912
21073
  readonly carrier_id: string;
@@ -20921,6 +21082,19 @@ declare namespace io.flow.internal.v0.models {
20921
21082
  readonly attributes?: Record<string, string>;
20922
21083
  }
20923
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
+
20924
21098
  interface CarrierChargeUnits {
20925
21099
  readonly currency: string;
20926
21100
  readonly weight: io.flow.units.v0.enums.UnitOfWeight;
@@ -21246,6 +21420,11 @@ declare namespace io.flow.internal.v0.models {
21246
21420
  readonly channel_order_acceptance: io.flow.internal.v0.models.ChannelOrderAcceptance;
21247
21421
  }
21248
21422
 
21423
+ interface ChannelOrderAcceptanceDetails {
21424
+ readonly order_acceptance: io.flow.internal.v0.models.ChannelOrderAcceptance;
21425
+ readonly external_order: any /*object*/;
21426
+ }
21427
+
21249
21428
  interface ChannelOrderAcceptanceForm {
21250
21429
  readonly status: io.flow.internal.v0.enums.ChannelOrderAcceptanceStatus;
21251
21430
  }
@@ -21361,6 +21540,12 @@ declare namespace io.flow.internal.v0.models {
21361
21540
  readonly channel_transaction: io.flow.internal.v0.models.ChannelTransaction;
21362
21541
  }
21363
21542
 
21543
+ interface ChargeInput {
21544
+ readonly charge_input_code: io.flow.internal.v0.enums.ChargeInputType;
21545
+ readonly price: io.flow.common.v0.models.Money;
21546
+ readonly charge_input_source: io.flow.internal.v0.enums.ChargeEstimateSource;
21547
+ }
21548
+
21364
21549
  interface Chargeback {
21365
21550
  readonly id: string;
21366
21551
  readonly key: string;
@@ -25823,6 +26008,17 @@ declare namespace io.flow.internal.v0.models {
25823
26008
  readonly items: io.flow.order.management.v0.models.FulfillmentItem[];
25824
26009
  }
25825
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
+
25826
26022
  interface FulfillmentSnapshot {
25827
26023
  readonly tracking_source: string;
25828
26024
  readonly fulfillment_status?: string;
@@ -27299,6 +27495,11 @@ declare namespace io.flow.internal.v0.models {
27299
27495
  readonly shipped_item_values: io.flow.internal.v0.models.ShippedItemValue[];
27300
27496
  }
27301
27497
 
27498
+ interface JeanDemoItem {
27499
+ readonly id: string;
27500
+ readonly name: string;
27501
+ }
27502
+
27302
27503
  interface Key {
27303
27504
  readonly id: string;
27304
27505
  readonly created_at: string;
@@ -27373,6 +27574,7 @@ declare namespace io.flow.internal.v0.models {
27373
27574
  readonly organization: string;
27374
27575
  readonly shipping_label_form: io.flow.label.v0.unions.ShippingLabelForm;
27375
27576
  readonly shipment_cost?: io.flow.common.v0.models.Money;
27577
+ readonly charges?: io.flow.internal.v0.models.ChargeInput[];
27376
27578
  readonly reference_id?: string;
27377
27579
  }
27378
27580
 
@@ -28000,6 +28202,11 @@ declare namespace io.flow.internal.v0.models {
28000
28202
  readonly number: string;
28001
28203
  }
28002
28204
 
28205
+ interface MarkedAsFinal {
28206
+ readonly products: boolean;
28207
+ readonly shipping: boolean;
28208
+ }
28209
+
28003
28210
  interface MarketingGatewayChannel {
28004
28211
  readonly id: string;
28005
28212
  readonly platform: io.flow.internal.v0.enums.MarketingGatewayPlatform;
@@ -30337,6 +30544,10 @@ declare namespace io.flow.internal.v0.models {
30337
30544
  readonly orders_since_submitted_at?: string;
30338
30545
  }
30339
30546
 
30547
+ interface RecordReference {
30548
+ readonly id: string;
30549
+ }
30550
+
30340
30551
  interface Redirect {
30341
30552
  readonly id: string;
30342
30553
  readonly post_payment_redirect_urls: io.flow.payment.v0.models.PostPaymentRedirectUrls;
@@ -30405,6 +30616,52 @@ declare namespace io.flow.internal.v0.models {
30405
30616
  readonly task_id: string;
30406
30617
  }
30407
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
+
30408
30665
  interface ReportingDetails {
30409
30666
  readonly accounting_transactions?: any /*object*/[];
30410
30667
  readonly fulfillments?: any /*object*/[];
@@ -30413,6 +30670,166 @@ declare namespace io.flow.internal.v0.models {
30413
30670
  readonly refund_records?: any /*object*/[];
30414
30671
  }
30415
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
+
30416
30833
  interface RequeueRequestForm {
30417
30834
  readonly product_ids?: string[];
30418
30835
  readonly hs6_codes?: string[];
@@ -30465,6 +30882,7 @@ declare namespace io.flow.internal.v0.models {
30465
30882
  readonly status?: io.flow.internal.v0.enums.RestrictionStatus;
30466
30883
  readonly statuses?: io.flow.internal.v0.enums.RestrictionStatus[];
30467
30884
  readonly rule_ids?: string[];
30885
+ readonly user_ids?: string[];
30468
30886
  readonly categories?: string[];
30469
30887
  readonly product_name_query?: string;
30470
30888
  readonly positive_keywords?: string[];
@@ -30687,6 +31105,7 @@ declare namespace io.flow.internal.v0.models {
30687
31105
  readonly posting_cutoff: string;
30688
31106
  readonly trigger: io.flow.internal.v0.unions.ReturnTrigger;
30689
31107
  readonly returned_at: string;
31108
+ readonly completes_order: boolean;
30690
31109
  }
30691
31110
 
30692
31111
  interface ReturnPolicyDeleted {
@@ -30733,6 +31152,40 @@ declare namespace io.flow.internal.v0.models {
30733
31152
  readonly refund: io.flow.payment.v0.models.RefundReference;
30734
31153
  }
30735
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
+
30736
31189
  interface RoutingAccount {
30737
31190
  readonly discriminator: 'routing_account';
30738
31191
  readonly processor: io.flow.internal.v0.enums.Processor;
@@ -33165,6 +33618,8 @@ declare namespace io.flow.internal.v0.unions {
33165
33618
  | io.flow.internal.v0.models.DailyValueDeleted
33166
33619
  | io.flow.internal.v0.models.SalesRecordUpserted
33167
33620
  | io.flow.internal.v0.models.SalesRecordDeleted
33621
+ | io.flow.internal.v0.models.RevenueRecordUpserted
33622
+ | io.flow.internal.v0.models.RevenueRecordDeleted
33168
33623
  | io.flow.internal.v0.models.CalculatorOrganizationSettingsUpserted
33169
33624
  | io.flow.internal.v0.models.CalculatorOrganizationSettingsDeleted
33170
33625
  | io.flow.internal.v0.models.CarrierAccountUpsertedV2
@@ -33702,7 +34157,8 @@ declare namespace io.flow.internal.v0.unions {
33702
34157
  | io.flow.internal.v0.models.ChannelBilledTransaction
33703
34158
  | io.flow.internal.v0.models.TaxTransaction
33704
34159
  | io.flow.internal.v0.models.DutyTransaction
33705
- | io.flow.internal.v0.models.TrueupTransaction;
34160
+ | io.flow.internal.v0.models.TrueupTransaction
34161
+ | io.flow.internal.v0.models.CarrierChargeTransaction;
33706
34162
  type TransactionSummary =
33707
34163
  | io.flow.internal.v0.models.PaymentSummaryV2
33708
34164
  | io.flow.internal.v0.models.FraudSummary;
@@ -34118,8 +34574,10 @@ export type CarrierChargeFormLabel =
34118
34574
  io.flow.internal.v0.models.CarrierChargeFormLabel;
34119
34575
  export type CarrierChargeFormOther =
34120
34576
  io.flow.internal.v0.models.CarrierChargeFormOther;
34121
- export type CarrierChargeOtherReason =
34122
- 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;
34123
34581
  export type CarrierChargeUnits = io.flow.internal.v0.models.CarrierChargeUnits;
34124
34582
  export type CarrierCredentials = io.flow.internal.v0.unions.CarrierCredentials;
34125
34583
  export type CarrierInvoice = io.flow.internal.v0.models.CarrierInvoice;
@@ -34205,6 +34663,8 @@ export type ChannelOrderAcceptance =
34205
34663
  io.flow.internal.v0.models.ChannelOrderAcceptance;
34206
34664
  export type ChannelOrderAcceptanceDeleted =
34207
34665
  io.flow.internal.v0.models.ChannelOrderAcceptanceDeleted;
34666
+ export type ChannelOrderAcceptanceDetails =
34667
+ io.flow.internal.v0.models.ChannelOrderAcceptanceDetails;
34208
34668
  export type ChannelOrderAcceptanceErrorAction =
34209
34669
  io.flow.internal.v0.enums.ChannelOrderAcceptanceErrorAction;
34210
34670
  export type ChannelOrderAcceptanceForm =
@@ -34250,6 +34710,10 @@ export type ChannelTransactionType =
34250
34710
  io.flow.internal.v0.enums.ChannelTransactionType;
34251
34711
  export type ChannelTransactionUpserted =
34252
34712
  io.flow.internal.v0.models.ChannelTransactionUpserted;
34713
+ export type ChargeEstimateSource =
34714
+ io.flow.internal.v0.enums.ChargeEstimateSource;
34715
+ export type ChargeInput = io.flow.internal.v0.models.ChargeInput;
34716
+ export type ChargeInputType = io.flow.internal.v0.enums.ChargeInputType;
34253
34717
  export type Chargeback = io.flow.internal.v0.models.Chargeback;
34254
34718
  export type ChargebackDeleted = io.flow.internal.v0.models.ChargebackDeleted;
34255
34719
  export type ChargebackPaymentStatus =
@@ -35847,6 +36311,8 @@ export type FulfillmentReference =
35847
36311
  io.flow.internal.v0.models.FulfillmentReference;
35848
36312
  export type FulfillmentShipmentTracking =
35849
36313
  io.flow.internal.v0.models.FulfillmentShipmentTracking;
36314
+ export type FulfillmentShopperBreakdown =
36315
+ io.flow.internal.v0.models.FulfillmentShopperBreakdown;
35850
36316
  export type FulfillmentSnapshot =
35851
36317
  io.flow.internal.v0.models.FulfillmentSnapshot;
35852
36318
  export type FulfillmentSubsidyBreakdown =
@@ -36143,6 +36609,7 @@ export type ItemSummary = io.flow.internal.v0.models.ItemSummary;
36143
36609
  export type ItemType = io.flow.internal.v0.enums.ItemType;
36144
36610
  export type ItemValuesForm = io.flow.internal.v0.models.ItemValuesForm;
36145
36611
  export type ItemsShipped = io.flow.internal.v0.models.ItemsShipped;
36612
+ export type JeanDemoItem = io.flow.internal.v0.models.JeanDemoItem;
36146
36613
  export type Key = io.flow.internal.v0.models.Key;
36147
36614
  export type KeyReference = io.flow.internal.v0.models.KeyReference;
36148
36615
  export type KeywordType = io.flow.internal.v0.enums.KeywordType;
@@ -36311,6 +36778,7 @@ export type ManualTransactionForm =
36311
36778
  io.flow.internal.v0.models.ManualTransactionForm;
36312
36779
  export type ManualTransactionFormOrder =
36313
36780
  io.flow.internal.v0.models.ManualTransactionFormOrder;
36781
+ export type MarkedAsFinal = io.flow.internal.v0.models.MarkedAsFinal;
36314
36782
  export type MarketingGatewayAccountConnectionStatus =
36315
36783
  io.flow.internal.v0.enums.MarketingGatewayAccountConnectionStatus;
36316
36784
  export type MarketingGatewayChannel =
@@ -36985,6 +37453,7 @@ export type ReboundConfigurationForm =
36985
37453
  io.flow.internal.v0.models.ReboundConfigurationForm;
36986
37454
  export type ReboundConfigurationStatus =
36987
37455
  io.flow.internal.v0.enums.ReboundConfigurationStatus;
37456
+ export type RecordReference = io.flow.internal.v0.models.RecordReference;
36988
37457
  export type Redirect = io.flow.internal.v0.models.Redirect;
36989
37458
  export type RedirectActionCompleted =
36990
37459
  io.flow.internal.v0.models.RedirectActionCompleted;
@@ -37004,8 +37473,64 @@ export type ReportRuleDecision = io.flow.internal.v0.models.ReportRuleDecision;
37004
37473
  export type ReportStatus = io.flow.internal.v0.enums.ReportStatus;
37005
37474
  export type ReportSummary = io.flow.internal.v0.models.ReportSummary;
37006
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;
37007
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;
37008
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;
37009
37534
  export type RequeueRequestForm = io.flow.internal.v0.models.RequeueRequestForm;
37010
37535
  export type ResponsibleParty = io.flow.internal.v0.enums.ResponsibleParty;
37011
37536
  export type RestrictionAction = io.flow.internal.v0.enums.RestrictionAction;
@@ -37080,6 +37605,12 @@ export type ReturnSummary = io.flow.internal.v0.models.ReturnSummary;
37080
37605
  export type ReturnTrigger = io.flow.internal.v0.unions.ReturnTrigger;
37081
37606
  export type ReturnTriggerRefund =
37082
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;
37083
37614
  export type RiskCheck = io.flow.internal.v0.enums.RiskCheck;
37084
37615
  export type RiskEvaluation = io.flow.internal.v0.enums.RiskEvaluation;
37085
37616
  export type RoutingAccount = io.flow.internal.v0.models.RoutingAccount;