flowcommerce 0.2.72 → 0.2.73

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0c296881cf6d8fa3dfc509541d5313f1463a8e6d
4
- data.tar.gz: e86daad54cd2da5fbb1ccf32fd234353f7b7fb86
2
+ SHA256:
3
+ metadata.gz: 30aa7cc649828d108b4f26eff6350b423d387649a21a109a08a4141df45eee74
4
+ data.tar.gz: 923496f61bec9cfca2f25f8d4e1d56ddc8f48da3bc63bda57766bd840ed192b6
5
5
  SHA512:
6
- metadata.gz: a97d59d7956316b017f4c5b069fe9a4caa6287afe2e177f248145bf6dbcee724b178e82ed602b2b87ea1a6d6863a8fcdf66da3a22a462833fa1be92acc93c930
7
- data.tar.gz: 7204d6752565d871579bde44b3207a2faeccce631794118b85b8a4a02ea19694b52c6d540fa08bb4d47a28dd6a043370c5e58509ba5bd89c5298c5ab86c70e48
6
+ metadata.gz: 329337f1cdcafc77d59c733eff620c3122f5c292ceac7aecc666fd9138f61384930357ef8ef7a884c592c64659fb802beab7e9c5a4b973cbba0d554ea7e38ea5
7
+ data.tar.gz: 6aaad5c1713a65485fd48863f528056e86a98621c94e7ff8741a80eb77fe0b583cc770faab187e3d7105134e08d909dc885afe070e532b8a1aa08bf33600600d
@@ -1,6 +1,6 @@
1
1
  # Generated by API Builder - https://www.apibuilder.io
2
- # Service version: 0.6.19
3
- # apibuilder 0.14.3 app.apibuilder.io/flow/api/0.6.44/ruby_client
2
+ # Service version: 0.6.58
3
+ # apibuilder 0.14.3 app.apibuilder.io/flow/api/0.6.62/ruby_client
4
4
 
5
5
  require 'cgi'
6
6
  require 'net/http'
@@ -25,8 +25,8 @@ module Io
25
25
 
26
26
  BASE_URL = 'https://api.flow.io' unless defined?(Constants::BASE_URL)
27
27
  NAMESPACE = 'io.flow.v0' unless defined?(Constants::NAMESPACE)
28
- USER_AGENT = 'apibuilder 0.14.3 app.apibuilder.io/flow/api/0.6.44/ruby_client' unless defined?(Constants::USER_AGENT)
29
- VERSION = '0.6.19' unless defined?(Constants::VERSION)
28
+ USER_AGENT = 'apibuilder 0.14.3 app.apibuilder.io/flow/api/0.6.62/ruby_client' unless defined?(Constants::USER_AGENT)
29
+ VERSION = '0.6.58' unless defined?(Constants::VERSION)
30
30
  VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
31
31
 
32
32
  end
@@ -4208,6 +4208,7 @@ module Io
4208
4208
  HttpClient::Preconditions.assert_class('key', key, String)
4209
4209
  opts = HttpClient::Helper.symbolize_keys(incoming)
4210
4210
  query = {
4211
+ :experience => (x = opts.delete(:experience); x.nil? ? nil : HttpClient::Preconditions.assert_class('experience', x, String)),
4211
4212
  :expand => (x = opts.delete(:expand); x.nil? ? nil : HttpClient::Preconditions.assert_class('expand', x, Array).map { |v| HttpClient::Preconditions.assert_class('expand', v, String) })
4212
4213
  }.delete_if { |k, v| v.nil? }
4213
4214
  r = @client.request("/#{CGI.escape(organization)}/shipping/configuration/#{CGI.escape(key)}").with_query(query).get
@@ -5363,13 +5364,6 @@ module Io
5363
5364
  r.map { |x| ::Io::Flow::V0::Models::FlowRole.from_json(x) }
5364
5365
  end
5365
5366
 
5366
- # List roles in use by this partner.
5367
- def get_partners_and_roles_by_partner(partner)
5368
- HttpClient::Preconditions.assert_class('partner', partner, String)
5369
- r = @client.request("/permission/partners/#{CGI.escape(partner)}/roles").get
5370
- r.map { |x| ::Io::Flow::V0::Models::FlowRole.from_json(x) }
5371
- end
5372
-
5373
5367
  end
5374
5368
 
5375
5369
  class Fulfillments
@@ -6590,6 +6584,7 @@ module Io
6590
6584
 
6591
6585
  module Types
6592
6586
  GOOGLE_PAY_AUTHORIZATION_PAYLOAD = 'google_pay_authorization_payload' unless defined?(GOOGLE_PAY_AUTHORIZATION_PAYLOAD)
6587
+ APPLE_PAY_MERCHANT_VALIDATION_PAYLOAD = 'apple_pay_merchant_validation_payload' unless defined?(APPLE_PAY_MERCHANT_VALIDATION_PAYLOAD)
6593
6588
  end
6594
6589
 
6595
6590
  attr_reader :discriminator
@@ -6601,7 +6596,7 @@ module Io
6601
6596
  end
6602
6597
 
6603
6598
  def subtype_to_hash
6604
- raise 'Cannot serialize an instance of authorization_payload_parameters directly - must use one of the specific types: google_pay_authorization_payload'
6599
+ raise 'Cannot serialize an instance of authorization_payload_parameters directly - must use one of the specific types: google_pay_authorization_payload, apple_pay_merchant_validation_payload'
6605
6600
  end
6606
6601
 
6607
6602
  def to_hash
@@ -6616,6 +6611,7 @@ module Io
6616
6611
  end
6617
6612
  case discriminator
6618
6613
  when Types::GOOGLE_PAY_AUTHORIZATION_PAYLOAD; GooglePayAuthorizationPayload.new(hash)
6614
+ when Types::APPLE_PAY_MERCHANT_VALIDATION_PAYLOAD; ApplePayMerchantValidationPayload.new(hash)
6619
6615
  else AuthorizationPayloadParametersUndefinedType.new(:discriminator => discriminator)
6620
6616
  end
6621
6617
  end
@@ -7163,6 +7159,8 @@ module Io
7163
7159
  SUBCATALOG_DELETED = 'subcatalog_deleted' unless defined?(SUBCATALOG_DELETED)
7164
7160
  CATALOG_ITEM_UPSERTED = 'catalog_item_upserted' unless defined?(CATALOG_ITEM_UPSERTED)
7165
7161
  CATALOG_ITEM_DELETED = 'catalog_item_deleted' unless defined?(CATALOG_ITEM_DELETED)
7162
+ CATALOG_ITEM_UPSERTED_V2 = 'catalog_item_upserted_v2' unless defined?(CATALOG_ITEM_UPSERTED_V2)
7163
+ CATALOG_ITEM_DELETED_V2 = 'catalog_item_deleted_v2' unless defined?(CATALOG_ITEM_DELETED_V2)
7166
7164
  SUBCATALOG_ITEM_UPSERTED = 'subcatalog_item_upserted' unless defined?(SUBCATALOG_ITEM_UPSERTED)
7167
7165
  SUBCATALOG_ITEM_DELETED = 'subcatalog_item_deleted' unless defined?(SUBCATALOG_ITEM_DELETED)
7168
7166
  B2B_INVOICE_UPSERTED = 'b2b_invoice_upserted' unless defined?(B2B_INVOICE_UPSERTED)
@@ -7244,8 +7242,10 @@ module Io
7244
7242
  MANIFESTED_LABEL_DELETED = 'manifested_label_deleted' unless defined?(MANIFESTED_LABEL_DELETED)
7245
7243
  LOCAL_ITEM_UPSERTED = 'local_item_upserted' unless defined?(LOCAL_ITEM_UPSERTED)
7246
7244
  LOCAL_ITEM_DELETED = 'local_item_deleted' unless defined?(LOCAL_ITEM_DELETED)
7247
- MEMBERSHIP_UPSERTED = 'membership_upserted' unless defined?(MEMBERSHIP_UPSERTED)
7248
- MEMBERSHIP_DELETED = 'membership_deleted' unless defined?(MEMBERSHIP_DELETED)
7245
+ CHECKOUT_OPTIN_RESPONSES_UPSERTED = 'checkout_optin_responses_upserted' unless defined?(CHECKOUT_OPTIN_RESPONSES_UPSERTED)
7246
+ CHECKOUT_OPTIN_RESPONSES_DELETED = 'checkout_optin_responses_deleted' unless defined?(CHECKOUT_OPTIN_RESPONSES_DELETED)
7247
+ BROWSE_OPTIN_RESPONSES_UPSERTED = 'browse_optin_responses_upserted' unless defined?(BROWSE_OPTIN_RESPONSES_UPSERTED)
7248
+ BROWSE_OPTIN_RESPONSES_DELETED = 'browse_optin_responses_deleted' unless defined?(BROWSE_OPTIN_RESPONSES_DELETED)
7249
7249
  MEMBERSHIP_UPSERTED_V2 = 'membership_upserted_v2' unless defined?(MEMBERSHIP_UPSERTED_V2)
7250
7250
  MEMBERSHIP_DELETED_V2 = 'membership_deleted_v2' unless defined?(MEMBERSHIP_DELETED_V2)
7251
7251
  ORGANIZATION_UPSERTED = 'organization_upserted' unless defined?(ORGANIZATION_UPSERTED)
@@ -7260,7 +7260,9 @@ module Io
7260
7260
  # from fraud review.
7261
7261
  AUTHORIZATION_STATUS_CHANGED = 'authorization_status_changed' unless defined?(AUTHORIZATION_STATUS_CHANGED)
7262
7262
  CARD_AUTHORIZATION_UPSERTED_V2 = 'card_authorization_upserted_v2' unless defined?(CARD_AUTHORIZATION_UPSERTED_V2)
7263
+ CARD_AUTHORIZATION_DELETED_V2 = 'card_authorization_deleted_v2' unless defined?(CARD_AUTHORIZATION_DELETED_V2)
7263
7264
  ONLINE_AUTHORIZATION_UPSERTED_V2 = 'online_authorization_upserted_v2' unless defined?(ONLINE_AUTHORIZATION_UPSERTED_V2)
7265
+ ONLINE_AUTHORIZATION_DELETED_V2 = 'online_authorization_deleted_v2' unless defined?(ONLINE_AUTHORIZATION_DELETED_V2)
7264
7266
  CAPTURE_UPSERTED_V2 = 'capture_upserted_v2' unless defined?(CAPTURE_UPSERTED_V2)
7265
7267
  CAPTURE_DELETED = 'capture_deleted' unless defined?(CAPTURE_DELETED)
7266
7268
  CARD_UPSERTED_V2 = 'card_upserted_v2' unless defined?(CARD_UPSERTED_V2)
@@ -7268,6 +7270,7 @@ module Io
7268
7270
  PAYMENT_UPSERTED = 'payment_upserted' unless defined?(PAYMENT_UPSERTED)
7269
7271
  PAYMENT_DELETED = 'payment_deleted' unless defined?(PAYMENT_DELETED)
7270
7272
  REFUND_UPSERTED_V2 = 'refund_upserted_v2' unless defined?(REFUND_UPSERTED_V2)
7273
+ REFUND_DELETED_V2 = 'refund_deleted_v2' unless defined?(REFUND_DELETED_V2)
7271
7274
  REFUND_CAPTURE_UPSERTED_V2 = 'refund_capture_upserted_v2' unless defined?(REFUND_CAPTURE_UPSERTED_V2)
7272
7275
  REVERSAL_UPSERTED = 'reversal_upserted' unless defined?(REVERSAL_UPSERTED)
7273
7276
  REVERSAL_DELETED = 'reversal_deleted' unless defined?(REVERSAL_DELETED)
@@ -7303,7 +7306,7 @@ module Io
7303
7306
  end
7304
7307
 
7305
7308
  def subtype_to_hash
7306
- raise 'Cannot serialize an instance of event directly - must use one of the specific types: attribute_upserted, attribute_deleted, attribute_upserted_v2, attribute_deleted_v2, catalog_upserted, catalog_deleted, subcatalog_upserted, subcatalog_deleted, catalog_item_upserted, catalog_item_deleted, subcatalog_item_upserted, subcatalog_item_deleted, b2b_invoice_upserted, b2b_invoice_deleted, consumer_invoice_upserted, consumer_invoice_deleted, credit_memo_upserted, credit_memo_deleted, crossdock_shipment_upserted, rate_deleted, rate_upserted, available_promotions_upserted, available_promotions_deleted, available_promotions_upserted_v2, available_promotions_deleted_v2, allocation_deleted_v2, allocation_upserted_v2, currency_format_deleted, currency_format_upserted, experience_deleted, experience_upserted, experience_deleted_v2, experience_upserted_v2, experience_price_book_mapping_deleted, experience_price_book_mapping_upserted, experience_logistics_settings_upserted, experience_logistics_settings_deleted, item_margin_deleted, item_margin_upserted, item_sales_margin_deleted, item_sales_margin_upserted, label_format_deleted, label_format_upserted, order_deleted, order_upserted, order_deleted_v2, order_upserted_v2, order_identifier_deleted, order_identifier_upserted, order_identifier_deleted_v2, order_identifier_upserted_v2, pricing_deleted, pricing_upserted, fraud_status_changed, center_upserted, center_deleted, tier_upserted, tier_deleted, delivery_option_upserted, delivery_option_deleted, shipping_configuration_upserted, shipping_configuration_deleted, tier_upserted_v2, tier_deleted_v2, shipping_lane_upserted, shipping_lane_deleted, hs6_code_upserted, hs6_code_deleted, hs10_code_upserted, hs10_code_deleted, item_origin_upserted, item_origin_deleted, harmonized_item_upserted, harmonized_item_deleted, harmonized_landed_cost_upserted, fully_harmonized_item_upserted, experience_inventory_item_upserted, experience_inventory_item_deleted, rule_upserted, rule_deleted, serial_upserted, serial_deleted, snapshot_upserted, snapshot_deleted, label_upserted, notification_upserted, notification_deleted, manifested_label_upserted, manifested_label_deleted, local_item_upserted, local_item_deleted, membership_upserted, membership_deleted, membership_upserted_v2, membership_deleted_v2, organization_upserted, organization_deleted, organization_upserted_v2, organization_deleted_v2, organization_short_id_upserted, organization_short_id_deleted, authorization_deleted_v2, authorization_status_changed, card_authorization_upserted_v2, online_authorization_upserted_v2, capture_upserted_v2, capture_deleted, card_upserted_v2, card_deleted, payment_upserted, payment_deleted, refund_upserted_v2, refund_capture_upserted_v2, reversal_upserted, reversal_deleted, capture_identifier_upserted, capture_identifier_deleted, refund_identifier_upserted, refund_identifier_deleted, virtual_card_capture_upserted, virtual_card_capture_deleted, virtual_card_refund_upserted, virtual_card_refund_deleted, price_book_upserted, price_book_deleted, price_book_item_upserted, price_book_item_deleted, organization_rates_published, organization_countries_published, organization_ratecard_transit_windows_published, return_upserted, return_deleted, targeting_item_upserted, targeting_item_deleted, targeting_item_deleted_v2, tracking_label_event_upserted'
7309
+ raise 'Cannot serialize an instance of event directly - must use one of the specific types: attribute_upserted, attribute_deleted, attribute_upserted_v2, attribute_deleted_v2, catalog_upserted, catalog_deleted, subcatalog_upserted, subcatalog_deleted, catalog_item_upserted, catalog_item_deleted, catalog_item_upserted_v2, catalog_item_deleted_v2, subcatalog_item_upserted, subcatalog_item_deleted, b2b_invoice_upserted, b2b_invoice_deleted, consumer_invoice_upserted, consumer_invoice_deleted, credit_memo_upserted, credit_memo_deleted, crossdock_shipment_upserted, rate_deleted, rate_upserted, available_promotions_upserted, available_promotions_deleted, available_promotions_upserted_v2, available_promotions_deleted_v2, allocation_deleted_v2, allocation_upserted_v2, currency_format_deleted, currency_format_upserted, experience_deleted, experience_upserted, experience_deleted_v2, experience_upserted_v2, experience_price_book_mapping_deleted, experience_price_book_mapping_upserted, experience_logistics_settings_upserted, experience_logistics_settings_deleted, item_margin_deleted, item_margin_upserted, item_sales_margin_deleted, item_sales_margin_upserted, label_format_deleted, label_format_upserted, order_deleted, order_upserted, order_deleted_v2, order_upserted_v2, order_identifier_deleted, order_identifier_upserted, order_identifier_deleted_v2, order_identifier_upserted_v2, pricing_deleted, pricing_upserted, fraud_status_changed, center_upserted, center_deleted, tier_upserted, tier_deleted, delivery_option_upserted, delivery_option_deleted, shipping_configuration_upserted, shipping_configuration_deleted, tier_upserted_v2, tier_deleted_v2, shipping_lane_upserted, shipping_lane_deleted, hs6_code_upserted, hs6_code_deleted, hs10_code_upserted, hs10_code_deleted, item_origin_upserted, item_origin_deleted, harmonized_item_upserted, harmonized_item_deleted, harmonized_landed_cost_upserted, fully_harmonized_item_upserted, experience_inventory_item_upserted, experience_inventory_item_deleted, rule_upserted, rule_deleted, serial_upserted, serial_deleted, snapshot_upserted, snapshot_deleted, label_upserted, notification_upserted, notification_deleted, manifested_label_upserted, manifested_label_deleted, local_item_upserted, local_item_deleted, checkout_optin_responses_upserted, checkout_optin_responses_deleted, browse_optin_responses_upserted, browse_optin_responses_deleted, membership_upserted_v2, membership_deleted_v2, organization_upserted, organization_deleted, organization_upserted_v2, organization_deleted_v2, organization_short_id_upserted, organization_short_id_deleted, authorization_deleted_v2, authorization_status_changed, card_authorization_upserted_v2, card_authorization_deleted_v2, online_authorization_upserted_v2, online_authorization_deleted_v2, capture_upserted_v2, capture_deleted, card_upserted_v2, card_deleted, payment_upserted, payment_deleted, refund_upserted_v2, refund_deleted_v2, refund_capture_upserted_v2, reversal_upserted, reversal_deleted, capture_identifier_upserted, capture_identifier_deleted, refund_identifier_upserted, refund_identifier_deleted, virtual_card_capture_upserted, virtual_card_capture_deleted, virtual_card_refund_upserted, virtual_card_refund_deleted, price_book_upserted, price_book_deleted, price_book_item_upserted, price_book_item_deleted, organization_rates_published, organization_countries_published, organization_ratecard_transit_windows_published, return_upserted, return_deleted, targeting_item_upserted, targeting_item_deleted, targeting_item_deleted_v2, tracking_label_event_upserted'
7307
7310
  end
7308
7311
 
7309
7312
  def to_hash
@@ -7327,6 +7330,8 @@ module Io
7327
7330
  when Types::SUBCATALOG_DELETED; SubcatalogDeleted.new(hash)
7328
7331
  when Types::CATALOG_ITEM_UPSERTED; CatalogItemUpserted.new(hash)
7329
7332
  when Types::CATALOG_ITEM_DELETED; CatalogItemDeleted.new(hash)
7333
+ when Types::CATALOG_ITEM_UPSERTED_V2; CatalogItemUpsertedV2.new(hash)
7334
+ when Types::CATALOG_ITEM_DELETED_V2; CatalogItemDeletedV2.new(hash)
7330
7335
  when Types::SUBCATALOG_ITEM_UPSERTED; SubcatalogItemUpserted.new(hash)
7331
7336
  when Types::SUBCATALOG_ITEM_DELETED; SubcatalogItemDeleted.new(hash)
7332
7337
  when Types::B2B_INVOICE_UPSERTED; B2bInvoiceUpserted.new(hash)
@@ -7408,8 +7413,10 @@ module Io
7408
7413
  when Types::MANIFESTED_LABEL_DELETED; ManifestedLabelDeleted.new(hash)
7409
7414
  when Types::LOCAL_ITEM_UPSERTED; LocalItemUpserted.new(hash)
7410
7415
  when Types::LOCAL_ITEM_DELETED; LocalItemDeleted.new(hash)
7411
- when Types::MEMBERSHIP_UPSERTED; MembershipUpserted.new(hash)
7412
- when Types::MEMBERSHIP_DELETED; MembershipDeleted.new(hash)
7416
+ when Types::CHECKOUT_OPTIN_RESPONSES_UPSERTED; CheckoutOptinResponsesUpserted.new(hash)
7417
+ when Types::CHECKOUT_OPTIN_RESPONSES_DELETED; CheckoutOptinResponsesDeleted.new(hash)
7418
+ when Types::BROWSE_OPTIN_RESPONSES_UPSERTED; BrowseOptinResponsesUpserted.new(hash)
7419
+ when Types::BROWSE_OPTIN_RESPONSES_DELETED; BrowseOptinResponsesDeleted.new(hash)
7413
7420
  when Types::MEMBERSHIP_UPSERTED_V2; MembershipUpsertedV2.new(hash)
7414
7421
  when Types::MEMBERSHIP_DELETED_V2; MembershipDeletedV2.new(hash)
7415
7422
  when Types::ORGANIZATION_UPSERTED; OrganizationUpserted.new(hash)
@@ -7421,7 +7428,9 @@ module Io
7421
7428
  when Types::AUTHORIZATION_DELETED_V2; AuthorizationDeletedV2.new(hash)
7422
7429
  when Types::AUTHORIZATION_STATUS_CHANGED; AuthorizationStatusChanged.new(hash)
7423
7430
  when Types::CARD_AUTHORIZATION_UPSERTED_V2; CardAuthorizationUpsertedV2.new(hash)
7431
+ when Types::CARD_AUTHORIZATION_DELETED_V2; CardAuthorizationDeletedV2.new(hash)
7424
7432
  when Types::ONLINE_AUTHORIZATION_UPSERTED_V2; OnlineAuthorizationUpsertedV2.new(hash)
7433
+ when Types::ONLINE_AUTHORIZATION_DELETED_V2; OnlineAuthorizationDeletedV2.new(hash)
7425
7434
  when Types::CAPTURE_UPSERTED_V2; CaptureUpsertedV2.new(hash)
7426
7435
  when Types::CAPTURE_DELETED; CaptureDeleted.new(hash)
7427
7436
  when Types::CARD_UPSERTED_V2; CardUpsertedV2.new(hash)
@@ -7429,6 +7438,7 @@ module Io
7429
7438
  when Types::PAYMENT_UPSERTED; PaymentUpserted.new(hash)
7430
7439
  when Types::PAYMENT_DELETED; PaymentDeleted.new(hash)
7431
7440
  when Types::REFUND_UPSERTED_V2; RefundUpsertedV2.new(hash)
7441
+ when Types::REFUND_DELETED_V2; RefundDeletedV2.new(hash)
7432
7442
  when Types::REFUND_CAPTURE_UPSERTED_V2; RefundCaptureUpsertedV2.new(hash)
7433
7443
  when Types::REVERSAL_UPSERTED; ReversalUpserted.new(hash)
7434
7444
  when Types::REVERSAL_DELETED; ReversalDeleted.new(hash)
@@ -11940,7 +11950,7 @@ module Io
11940
11950
  end
11941
11951
 
11942
11952
  def EventType.ALL
11943
- @@all ||= [EventType.attribute_upserted, EventType.attribute_deleted, EventType.attribute_upserted_v2, EventType.attribute_deleted_v2, EventType.catalog_upserted, EventType.catalog_deleted, EventType.subcatalog_upserted, EventType.subcatalog_deleted, EventType.catalog_item_upserted, EventType.catalog_item_deleted, EventType.subcatalog_item_upserted, EventType.subcatalog_item_deleted, EventType.b2b_invoice_upserted, EventType.b2b_invoice_deleted, EventType.consumer_invoice_upserted, EventType.consumer_invoice_deleted, EventType.credit_memo_upserted, EventType.credit_memo_deleted, EventType.crossdock_shipment_upserted, EventType.rate_deleted, EventType.rate_upserted, EventType.available_promotions_upserted, EventType.available_promotions_deleted, EventType.available_promotions_upserted_v2, EventType.available_promotions_deleted_v2, EventType.allocation_deleted_v2, EventType.allocation_upserted_v2, EventType.currency_format_deleted, EventType.currency_format_upserted, EventType.experience_deleted, EventType.experience_upserted, EventType.experience_deleted_v2, EventType.experience_upserted_v2, EventType.experience_price_book_mapping_deleted, EventType.experience_price_book_mapping_upserted, EventType.experience_logistics_settings_upserted, EventType.experience_logistics_settings_deleted, EventType.item_margin_deleted, EventType.item_margin_upserted, EventType.item_sales_margin_deleted, EventType.item_sales_margin_upserted, EventType.label_format_deleted, EventType.label_format_upserted, EventType.order_deleted, EventType.order_upserted, EventType.order_deleted_v2, EventType.order_upserted_v2, EventType.order_identifier_deleted, EventType.order_identifier_upserted, EventType.order_identifier_deleted_v2, EventType.order_identifier_upserted_v2, EventType.pricing_deleted, EventType.pricing_upserted, EventType.fraud_status_changed, EventType.center_upserted, EventType.center_deleted, EventType.tier_upserted, EventType.tier_deleted, EventType.delivery_option_upserted, EventType.delivery_option_deleted, EventType.shipping_configuration_upserted, EventType.shipping_configuration_deleted, EventType.tier_upserted_v2, EventType.tier_deleted_v2, EventType.shipping_lane_upserted, EventType.shipping_lane_deleted, EventType.hs6_code_upserted, EventType.hs6_code_deleted, EventType.hs10_code_upserted, EventType.hs10_code_deleted, EventType.item_origin_upserted, EventType.item_origin_deleted, EventType.harmonized_item_upserted, EventType.harmonized_item_deleted, EventType.harmonized_landed_cost_upserted, EventType.fully_harmonized_item_upserted, EventType.experience_inventory_item_upserted, EventType.experience_inventory_item_deleted, EventType.rule_upserted, EventType.rule_deleted, EventType.serial_upserted, EventType.serial_deleted, EventType.snapshot_upserted, EventType.snapshot_deleted, EventType.label_upserted, EventType.notification_upserted, EventType.notification_deleted, EventType.manifested_label_upserted, EventType.manifested_label_deleted, EventType.local_item_upserted, EventType.local_item_deleted, EventType.membership_upserted, EventType.membership_deleted, EventType.membership_upserted_v2, EventType.membership_deleted_v2, EventType.organization_upserted, EventType.organization_deleted, EventType.organization_upserted_v2, EventType.organization_deleted_v2, EventType.organization_short_id_upserted, EventType.organization_short_id_deleted, EventType.authorization_deleted_v2, EventType.authorization_status_changed, EventType.card_authorization_upserted_v2, EventType.online_authorization_upserted_v2, EventType.capture_upserted_v2, EventType.capture_deleted, EventType.card_upserted_v2, EventType.card_deleted, EventType.payment_upserted, EventType.payment_deleted, EventType.refund_upserted_v2, EventType.refund_capture_upserted_v2, EventType.reversal_upserted, EventType.reversal_deleted, EventType.capture_identifier_upserted, EventType.capture_identifier_deleted, EventType.refund_identifier_upserted, EventType.refund_identifier_deleted, EventType.virtual_card_capture_upserted, EventType.virtual_card_capture_deleted, EventType.virtual_card_refund_upserted, EventType.virtual_card_refund_deleted, EventType.price_book_upserted, EventType.price_book_deleted, EventType.price_book_item_upserted, EventType.price_book_item_deleted, EventType.organization_rates_published, EventType.organization_countries_published, EventType.organization_ratecard_transit_windows_published, EventType.return_upserted, EventType.return_deleted, EventType.targeting_item_upserted, EventType.targeting_item_deleted, EventType.targeting_item_deleted_v2, EventType.tracking_label_event_upserted]
11953
+ @@all ||= [EventType.attribute_upserted, EventType.attribute_deleted, EventType.attribute_upserted_v2, EventType.attribute_deleted_v2, EventType.catalog_upserted, EventType.catalog_deleted, EventType.subcatalog_upserted, EventType.subcatalog_deleted, EventType.catalog_item_upserted, EventType.catalog_item_deleted, EventType.catalog_item_upserted_v2, EventType.catalog_item_deleted_v2, EventType.subcatalog_item_upserted, EventType.subcatalog_item_deleted, EventType.b2b_invoice_upserted, EventType.b2b_invoice_deleted, EventType.consumer_invoice_upserted, EventType.consumer_invoice_deleted, EventType.credit_memo_upserted, EventType.credit_memo_deleted, EventType.crossdock_shipment_upserted, EventType.rate_deleted, EventType.rate_upserted, EventType.available_promotions_upserted, EventType.available_promotions_deleted, EventType.available_promotions_upserted_v2, EventType.available_promotions_deleted_v2, EventType.allocation_deleted_v2, EventType.allocation_upserted_v2, EventType.currency_format_deleted, EventType.currency_format_upserted, EventType.experience_deleted, EventType.experience_upserted, EventType.experience_deleted_v2, EventType.experience_upserted_v2, EventType.experience_price_book_mapping_deleted, EventType.experience_price_book_mapping_upserted, EventType.experience_logistics_settings_upserted, EventType.experience_logistics_settings_deleted, EventType.item_margin_deleted, EventType.item_margin_upserted, EventType.item_sales_margin_deleted, EventType.item_sales_margin_upserted, EventType.label_format_deleted, EventType.label_format_upserted, EventType.order_deleted, EventType.order_upserted, EventType.order_deleted_v2, EventType.order_upserted_v2, EventType.order_identifier_deleted, EventType.order_identifier_upserted, EventType.order_identifier_deleted_v2, EventType.order_identifier_upserted_v2, EventType.pricing_deleted, EventType.pricing_upserted, EventType.fraud_status_changed, EventType.center_upserted, EventType.center_deleted, EventType.tier_upserted, EventType.tier_deleted, EventType.delivery_option_upserted, EventType.delivery_option_deleted, EventType.shipping_configuration_upserted, EventType.shipping_configuration_deleted, EventType.tier_upserted_v2, EventType.tier_deleted_v2, EventType.shipping_lane_upserted, EventType.shipping_lane_deleted, EventType.hs6_code_upserted, EventType.hs6_code_deleted, EventType.hs10_code_upserted, EventType.hs10_code_deleted, EventType.item_origin_upserted, EventType.item_origin_deleted, EventType.harmonized_item_upserted, EventType.harmonized_item_deleted, EventType.harmonized_landed_cost_upserted, EventType.fully_harmonized_item_upserted, EventType.experience_inventory_item_upserted, EventType.experience_inventory_item_deleted, EventType.rule_upserted, EventType.rule_deleted, EventType.serial_upserted, EventType.serial_deleted, EventType.snapshot_upserted, EventType.snapshot_deleted, EventType.label_upserted, EventType.notification_upserted, EventType.notification_deleted, EventType.manifested_label_upserted, EventType.manifested_label_deleted, EventType.local_item_upserted, EventType.local_item_deleted, EventType.checkout_optin_responses_upserted, EventType.checkout_optin_responses_deleted, EventType.browse_optin_responses_upserted, EventType.browse_optin_responses_deleted, EventType.membership_upserted_v2, EventType.membership_deleted_v2, EventType.organization_upserted, EventType.organization_deleted, EventType.organization_upserted_v2, EventType.organization_deleted_v2, EventType.organization_short_id_upserted, EventType.organization_short_id_deleted, EventType.authorization_deleted_v2, EventType.authorization_status_changed, EventType.card_authorization_upserted_v2, EventType.card_authorization_deleted_v2, EventType.online_authorization_upserted_v2, EventType.online_authorization_deleted_v2, EventType.capture_upserted_v2, EventType.capture_deleted, EventType.card_upserted_v2, EventType.card_deleted, EventType.payment_upserted, EventType.payment_deleted, EventType.refund_upserted_v2, EventType.refund_deleted_v2, EventType.refund_capture_upserted_v2, EventType.reversal_upserted, EventType.reversal_deleted, EventType.capture_identifier_upserted, EventType.capture_identifier_deleted, EventType.refund_identifier_upserted, EventType.refund_identifier_deleted, EventType.virtual_card_capture_upserted, EventType.virtual_card_capture_deleted, EventType.virtual_card_refund_upserted, EventType.virtual_card_refund_deleted, EventType.price_book_upserted, EventType.price_book_deleted, EventType.price_book_item_upserted, EventType.price_book_item_deleted, EventType.organization_rates_published, EventType.organization_countries_published, EventType.organization_ratecard_transit_windows_published, EventType.return_upserted, EventType.return_deleted, EventType.targeting_item_upserted, EventType.targeting_item_deleted, EventType.targeting_item_deleted_v2, EventType.tracking_label_event_upserted]
11944
11954
  end
11945
11955
 
11946
11956
  def EventType.attribute_upserted
@@ -11983,6 +11993,14 @@ module Io
11983
11993
  @@_catalog_item_deleted ||= EventType.new('catalog_item_deleted')
11984
11994
  end
11985
11995
 
11996
+ def EventType.catalog_item_upserted_v2
11997
+ @@_catalog_item_upserted_v2 ||= EventType.new('catalog_item_upserted_v2')
11998
+ end
11999
+
12000
+ def EventType.catalog_item_deleted_v2
12001
+ @@_catalog_item_deleted_v2 ||= EventType.new('catalog_item_deleted_v2')
12002
+ end
12003
+
11986
12004
  def EventType.subcatalog_item_upserted
11987
12005
  @@_subcatalog_item_upserted ||= EventType.new('subcatalog_item_upserted')
11988
12006
  end
@@ -12307,12 +12325,20 @@ module Io
12307
12325
  @@_local_item_deleted ||= EventType.new('local_item_deleted')
12308
12326
  end
12309
12327
 
12310
- def EventType.membership_upserted
12311
- @@_membership_upserted ||= EventType.new('membership_upserted')
12328
+ def EventType.checkout_optin_responses_upserted
12329
+ @@_checkout_optin_responses_upserted ||= EventType.new('checkout_optin_responses_upserted')
12312
12330
  end
12313
12331
 
12314
- def EventType.membership_deleted
12315
- @@_membership_deleted ||= EventType.new('membership_deleted')
12332
+ def EventType.checkout_optin_responses_deleted
12333
+ @@_checkout_optin_responses_deleted ||= EventType.new('checkout_optin_responses_deleted')
12334
+ end
12335
+
12336
+ def EventType.browse_optin_responses_upserted
12337
+ @@_browse_optin_responses_upserted ||= EventType.new('browse_optin_responses_upserted')
12338
+ end
12339
+
12340
+ def EventType.browse_optin_responses_deleted
12341
+ @@_browse_optin_responses_deleted ||= EventType.new('browse_optin_responses_deleted')
12316
12342
  end
12317
12343
 
12318
12344
  def EventType.membership_upserted_v2
@@ -12359,10 +12385,18 @@ module Io
12359
12385
  @@_card_authorization_upserted_v2 ||= EventType.new('card_authorization_upserted_v2')
12360
12386
  end
12361
12387
 
12388
+ def EventType.card_authorization_deleted_v2
12389
+ @@_card_authorization_deleted_v2 ||= EventType.new('card_authorization_deleted_v2')
12390
+ end
12391
+
12362
12392
  def EventType.online_authorization_upserted_v2
12363
12393
  @@_online_authorization_upserted_v2 ||= EventType.new('online_authorization_upserted_v2')
12364
12394
  end
12365
12395
 
12396
+ def EventType.online_authorization_deleted_v2
12397
+ @@_online_authorization_deleted_v2 ||= EventType.new('online_authorization_deleted_v2')
12398
+ end
12399
+
12366
12400
  def EventType.capture_upserted_v2
12367
12401
  @@_capture_upserted_v2 ||= EventType.new('capture_upserted_v2')
12368
12402
  end
@@ -12391,6 +12425,10 @@ module Io
12391
12425
  @@_refund_upserted_v2 ||= EventType.new('refund_upserted_v2')
12392
12426
  end
12393
12427
 
12428
+ def EventType.refund_deleted_v2
12429
+ @@_refund_deleted_v2 ||= EventType.new('refund_deleted_v2')
12430
+ end
12431
+
12394
12432
  def EventType.refund_capture_upserted_v2
12395
12433
  @@_refund_capture_upserted_v2 ||= EventType.new('refund_capture_upserted_v2')
12396
12434
  end
@@ -12757,7 +12795,7 @@ module Io
12757
12795
  end
12758
12796
 
12759
12797
  def FlowAddonRole.ALL
12760
- @@all ||= [FlowAddonRole.consumer_data_viewer, FlowAddonRole.membership_manager, FlowAddonRole.flow_operations]
12798
+ @@all ||= [FlowAddonRole.consumer_data_viewer, FlowAddonRole.membership_manager]
12761
12799
  end
12762
12800
 
12763
12801
  # Can view consumer's private data
@@ -12770,12 +12808,6 @@ module Io
12770
12808
  @@_membership_manager ||= FlowAddonRole.new('membership_manager')
12771
12809
  end
12772
12810
 
12773
- # User works at Flow and can perform additional backend functions for an
12774
- # organization.
12775
- def FlowAddonRole.flow_operations
12776
- @@_flow_operations ||= FlowAddonRole.new('flow_operations')
12777
- end
12778
-
12779
12811
  def subtype_to_hash
12780
12812
  value
12781
12813
  end
@@ -12896,7 +12928,7 @@ module Io
12896
12928
  end
12897
12929
 
12898
12930
  def FlowUserRole.ALL
12899
- @@all ||= [FlowUserRole.organization_admin, FlowUserRole.organization_merchant, FlowUserRole.organization_operations, FlowUserRole.partner_operations]
12931
+ @@all ||= [FlowUserRole.organization_admin, FlowUserRole.organization_merchant, FlowUserRole.organization_operations]
12900
12932
  end
12901
12933
 
12902
12934
  # Can fully administrate a merchant organization.
@@ -12914,11 +12946,6 @@ module Io
12914
12946
  @@_organization_operations ||= FlowUserRole.new('organization_operations')
12915
12947
  end
12916
12948
 
12917
- # Can operate a partner (distribution center) account with Flow.
12918
- def FlowUserRole.partner_operations
12919
- @@_partner_operations ||= FlowUserRole.new('partner_operations')
12920
- end
12921
-
12922
12949
  def subtype_to_hash
12923
12950
  value
12924
12951
  end
@@ -14047,6 +14074,52 @@ module Io
14047
14074
 
14048
14075
  end
14049
14076
 
14077
+ class OptinResponseType
14078
+
14079
+ attr_reader :value
14080
+
14081
+ def initialize(value)
14082
+ @value = HttpClient::Preconditions.assert_class('value', value, String)
14083
+ end
14084
+
14085
+ # Returns the instance of OptinResponseType for this value, creating a new instance for an unknown value
14086
+ def OptinResponseType.apply(value)
14087
+ if value.instance_of?(OptinResponseType)
14088
+ value
14089
+ else
14090
+ HttpClient::Preconditions.assert_class_or_nil('value', value, String)
14091
+ value.nil? ? nil : (from_string(value) || OptinResponseType.new(value))
14092
+ end
14093
+ end
14094
+
14095
+ # Returns the instance of OptinResponseType for this value, or nil if not found
14096
+ def OptinResponseType.from_string(value)
14097
+ HttpClient::Preconditions.assert_class('value', value, String)
14098
+ OptinResponseType.ALL.find { |v| v.value == value }
14099
+ end
14100
+
14101
+ def OptinResponseType.ALL
14102
+ @@all ||= [OptinResponseType.not_shown, OptinResponseType.opted_in, OptinResponseType.opted_out]
14103
+ end
14104
+
14105
+ def OptinResponseType.not_shown
14106
+ @@_not_shown ||= OptinResponseType.new('not_shown')
14107
+ end
14108
+
14109
+ def OptinResponseType.opted_in
14110
+ @@_opted_in ||= OptinResponseType.new('opted_in')
14111
+ end
14112
+
14113
+ def OptinResponseType.opted_out
14114
+ @@_opted_out ||= OptinResponseType.new('opted_out')
14115
+ end
14116
+
14117
+ def to_hash
14118
+ value
14119
+ end
14120
+
14121
+ end
14122
+
14050
14123
  class OrderChangeSource
14051
14124
 
14052
14125
  attr_reader :value
@@ -14898,6 +14971,52 @@ module Io
14898
14971
 
14899
14972
  end
14900
14973
 
14974
+ class PhysicalDeliverySpecialSerivce
14975
+
14976
+ attr_reader :value
14977
+
14978
+ def initialize(value)
14979
+ @value = HttpClient::Preconditions.assert_class('value', value, String)
14980
+ end
14981
+
14982
+ # Returns the instance of PhysicalDeliverySpecialSerivce for this value, creating a new instance for an unknown value
14983
+ def PhysicalDeliverySpecialSerivce.apply(value)
14984
+ if value.instance_of?(PhysicalDeliverySpecialSerivce)
14985
+ value
14986
+ else
14987
+ HttpClient::Preconditions.assert_class_or_nil('value', value, String)
14988
+ value.nil? ? nil : (from_string(value) || PhysicalDeliverySpecialSerivce.new(value))
14989
+ end
14990
+ end
14991
+
14992
+ # Returns the instance of PhysicalDeliverySpecialSerivce for this value, or nil if not found
14993
+ def PhysicalDeliverySpecialSerivce.from_string(value)
14994
+ HttpClient::Preconditions.assert_class('value', value, String)
14995
+ PhysicalDeliverySpecialSerivce.ALL.find { |v| v.value == value }
14996
+ end
14997
+
14998
+ def PhysicalDeliverySpecialSerivce.ALL
14999
+ @@all ||= [PhysicalDeliverySpecialSerivce.cold_storage, PhysicalDeliverySpecialSerivce.hazardous, PhysicalDeliverySpecialSerivce.perishable]
15000
+ end
15001
+
15002
+ def PhysicalDeliverySpecialSerivce.cold_storage
15003
+ @@_cold_storage ||= PhysicalDeliverySpecialSerivce.new('cold_storage')
15004
+ end
15005
+
15006
+ def PhysicalDeliverySpecialSerivce.hazardous
15007
+ @@_hazardous ||= PhysicalDeliverySpecialSerivce.new('hazardous')
15008
+ end
15009
+
15010
+ def PhysicalDeliverySpecialSerivce.perishable
15011
+ @@_perishable ||= PhysicalDeliverySpecialSerivce.new('perishable')
15012
+ end
15013
+
15014
+ def to_hash
15015
+ value
15016
+ end
15017
+
15018
+ end
15019
+
14901
15020
  class PriceBookStatus
14902
15021
 
14903
15022
  attr_reader :value
@@ -17891,6 +18010,35 @@ module Io
17891
18010
 
17892
18011
  end
17893
18012
 
18013
+ class ApplePayMerchantValidationPayload < AuthorizationPayloadParameters
18014
+
18015
+ attr_reader :validation_url, :display_name
18016
+
18017
+ def initialize(incoming={})
18018
+ super(:discriminator => AuthorizationPayloadParameters::Types::APPLE_PAY_MERCHANT_VALIDATION_PAYLOAD)
18019
+ opts = HttpClient::Helper.symbolize_keys(incoming)
18020
+ HttpClient::Preconditions.require_keys(opts, [:validation_url], 'ApplePayMerchantValidationPayload')
18021
+ @validation_url = HttpClient::Preconditions.assert_class('validation_url', opts.delete(:validation_url), String)
18022
+ @display_name = (x = opts.delete(:display_name); x.nil? ? nil : HttpClient::Preconditions.assert_class('display_name', x, String))
18023
+ end
18024
+
18025
+ def to_json
18026
+ JSON.dump(to_hash)
18027
+ end
18028
+
18029
+ def copy(incoming={})
18030
+ ApplePayMerchantValidationPayload.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
18031
+ end
18032
+
18033
+ def subtype_to_hash
18034
+ {
18035
+ :validation_url => validation_url,
18036
+ :display_name => display_name
18037
+ }
18038
+ end
18039
+
18040
+ end
18041
+
17894
18042
  # Rule outcome where shipping surfaced in quote is actual cost of the service
17895
18043
  class AtCost < TierRuleOutcome
17896
18044
 
@@ -18385,7 +18533,7 @@ module Io
18385
18533
  # issuing bank).
18386
18534
  class AuthorizationResult
18387
18535
 
18388
- attr_reader :status, :action, :decline_code, :avs, :cvv, :three_d_secure
18536
+ attr_reader :status, :action, :decline_code, :avs, :cvv, :three_d_secure, :description
18389
18537
 
18390
18538
  def initialize(incoming={})
18391
18539
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -18396,6 +18544,7 @@ module Io
18396
18544
  @avs = (x = opts.delete(:avs); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Avs) ? x : ::Io::Flow::V0::Models::Avs.new(x)))
18397
18545
  @cvv = (x = opts.delete(:cvv); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Cvv) ? x : ::Io::Flow::V0::Models::Cvv.new(x)))
18398
18546
  @three_d_secure = (x = opts.delete(:three_d_secure); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ThreeDSecure) ? x : ::Io::Flow::V0::Models::ThreeDSecure.new(x)))
18547
+ @description = (x = opts.delete(:description); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::AuthorizationResultDescription) ? x : ::Io::Flow::V0::Models::AuthorizationResultDescription.new(x)))
18399
18548
  end
18400
18549
 
18401
18550
  def to_json
@@ -18413,7 +18562,8 @@ module Io
18413
18562
  :decline_code => decline_code.nil? ? nil : decline_code.value,
18414
18563
  :avs => avs.nil? ? nil : avs.to_hash,
18415
18564
  :cvv => cvv.nil? ? nil : cvv.to_hash,
18416
- :three_d_secure => three_d_secure.nil? ? nil : three_d_secure.to_hash
18565
+ :three_d_secure => three_d_secure.nil? ? nil : three_d_secure.to_hash,
18566
+ :description => description.nil? ? nil : description.to_hash
18417
18567
  }
18418
18568
  end
18419
18569
 
@@ -18450,6 +18600,32 @@ module Io
18450
18600
 
18451
18601
  end
18452
18602
 
18603
+ class AuthorizationResultDescription
18604
+
18605
+ attr_reader :display
18606
+
18607
+ def initialize(incoming={})
18608
+ opts = HttpClient::Helper.symbolize_keys(incoming)
18609
+ HttpClient::Preconditions.require_keys(opts, [:display], 'AuthorizationResultDescription')
18610
+ @display = HttpClient::Preconditions.assert_class('display', opts.delete(:display), String)
18611
+ end
18612
+
18613
+ def to_json
18614
+ JSON.dump(to_hash)
18615
+ end
18616
+
18617
+ def copy(incoming={})
18618
+ AuthorizationResultDescription.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
18619
+ end
18620
+
18621
+ def to_hash
18622
+ {
18623
+ :display => display
18624
+ }
18625
+ end
18626
+
18627
+ end
18628
+
18453
18629
  class AuthorizationStatusChanged < Event
18454
18630
 
18455
18631
  attr_reader :event_id, :timestamp, :organization, :id, :authorization
@@ -18999,6 +19175,102 @@ module Io
18999
19175
 
19000
19176
  end
19001
19177
 
19178
+ class BrowseOptinResponses
19179
+
19180
+ attr_reader :id, :session_id, :optin_responses
19181
+
19182
+ def initialize(incoming={})
19183
+ opts = HttpClient::Helper.symbolize_keys(incoming)
19184
+ HttpClient::Preconditions.require_keys(opts, [:id, :session_id, :optin_responses], 'BrowseOptinResponses')
19185
+ @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
19186
+ @session_id = HttpClient::Preconditions.assert_class('session_id', opts.delete(:session_id), String)
19187
+ @optin_responses = HttpClient::Preconditions.assert_class('optin_responses', opts.delete(:optin_responses), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::OptinResponse) ? x : ::Io::Flow::V0::Models::OptinResponse.new(x)) }
19188
+ end
19189
+
19190
+ def to_json
19191
+ JSON.dump(to_hash)
19192
+ end
19193
+
19194
+ def copy(incoming={})
19195
+ BrowseOptinResponses.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
19196
+ end
19197
+
19198
+ def to_hash
19199
+ {
19200
+ :id => id,
19201
+ :session_id => session_id,
19202
+ :optin_responses => optin_responses.map { |o| o.to_hash }
19203
+ }
19204
+ end
19205
+
19206
+ end
19207
+
19208
+ class BrowseOptinResponsesDeleted < Event
19209
+
19210
+ attr_reader :event_id, :timestamp, :organization, :id
19211
+
19212
+ def initialize(incoming={})
19213
+ super(:discriminator => Event::Types::BROWSE_OPTIN_RESPONSES_DELETED)
19214
+ opts = HttpClient::Helper.symbolize_keys(incoming)
19215
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :id], 'BrowseOptinResponsesDeleted')
19216
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
19217
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
19218
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
19219
+ @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
19220
+ end
19221
+
19222
+ def to_json
19223
+ JSON.dump(to_hash)
19224
+ end
19225
+
19226
+ def copy(incoming={})
19227
+ BrowseOptinResponsesDeleted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
19228
+ end
19229
+
19230
+ def subtype_to_hash
19231
+ {
19232
+ :event_id => event_id,
19233
+ :timestamp => timestamp,
19234
+ :organization => organization,
19235
+ :id => id
19236
+ }
19237
+ end
19238
+
19239
+ end
19240
+
19241
+ class BrowseOptinResponsesUpserted < Event
19242
+
19243
+ attr_reader :event_id, :timestamp, :organization, :browse_optin_responses
19244
+
19245
+ def initialize(incoming={})
19246
+ super(:discriminator => Event::Types::BROWSE_OPTIN_RESPONSES_UPSERTED)
19247
+ opts = HttpClient::Helper.symbolize_keys(incoming)
19248
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :browse_optin_responses], 'BrowseOptinResponsesUpserted')
19249
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
19250
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
19251
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
19252
+ @browse_optin_responses = (x = opts.delete(:browse_optin_responses); x.is_a?(::Io::Flow::V0::Models::BrowseOptinResponses) ? x : ::Io::Flow::V0::Models::BrowseOptinResponses.new(x))
19253
+ end
19254
+
19255
+ def to_json
19256
+ JSON.dump(to_hash)
19257
+ end
19258
+
19259
+ def copy(incoming={})
19260
+ BrowseOptinResponsesUpserted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
19261
+ end
19262
+
19263
+ def subtype_to_hash
19264
+ {
19265
+ :event_id => event_id,
19266
+ :timestamp => timestamp,
19267
+ :organization => organization,
19268
+ :browse_optin_responses => browse_optin_responses.to_hash
19269
+ }
19270
+ end
19271
+
19272
+ end
19273
+
19002
19274
  # Capture actually transfers funds. You can capture as many times as you'd like
19003
19275
  # up until the total amount of the authorization has been captured or the
19004
19276
  # authorization otherwise becomes unavailable (e.g. expires).
@@ -19452,6 +19724,39 @@ module Io
19452
19724
 
19453
19725
  end
19454
19726
 
19727
+ class CardAuthorizationDeletedV2 < Event
19728
+
19729
+ attr_reader :event_id, :timestamp, :organization, :authorization
19730
+
19731
+ def initialize(incoming={})
19732
+ super(:discriminator => Event::Types::CARD_AUTHORIZATION_DELETED_V2)
19733
+ opts = HttpClient::Helper.symbolize_keys(incoming)
19734
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :authorization], 'CardAuthorizationDeletedV2')
19735
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
19736
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
19737
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
19738
+ @authorization = (x = opts.delete(:authorization); x.is_a?(::Io::Flow::V0::Models::CardAuthorization) ? x : ::Io::Flow::V0::Models::CardAuthorization.new(x))
19739
+ end
19740
+
19741
+ def to_json
19742
+ JSON.dump(to_hash)
19743
+ end
19744
+
19745
+ def copy(incoming={})
19746
+ CardAuthorizationDeletedV2.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
19747
+ end
19748
+
19749
+ def subtype_to_hash
19750
+ {
19751
+ :event_id => event_id,
19752
+ :timestamp => timestamp,
19753
+ :organization => organization,
19754
+ :authorization => authorization.to_hash
19755
+ }
19756
+ end
19757
+
19758
+ end
19759
+
19455
19760
  # Similar to a merchant of record authorization form, but it allows card
19456
19761
  # information to be included rather than tokenizing first. If the amount is $0,
19457
19762
  # then
@@ -20140,6 +20445,39 @@ module Io
20140
20445
 
20141
20446
  end
20142
20447
 
20448
+ class CatalogItemDeletedV2 < Event
20449
+
20450
+ attr_reader :event_id, :timestamp, :organization, :item
20451
+
20452
+ def initialize(incoming={})
20453
+ super(:discriminator => Event::Types::CATALOG_ITEM_DELETED_V2)
20454
+ opts = HttpClient::Helper.symbolize_keys(incoming)
20455
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :item], 'CatalogItemDeletedV2')
20456
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
20457
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
20458
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
20459
+ @item = (x = opts.delete(:item); x.is_a?(::Io::Flow::V0::Models::Item) ? x : ::Io::Flow::V0::Models::Item.new(x))
20460
+ end
20461
+
20462
+ def to_json
20463
+ JSON.dump(to_hash)
20464
+ end
20465
+
20466
+ def copy(incoming={})
20467
+ CatalogItemDeletedV2.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
20468
+ end
20469
+
20470
+ def subtype_to_hash
20471
+ {
20472
+ :event_id => event_id,
20473
+ :timestamp => timestamp,
20474
+ :organization => organization,
20475
+ :item => item.to_hash
20476
+ }
20477
+ end
20478
+
20479
+ end
20480
+
20143
20481
  class CatalogItemDocument < Document
20144
20482
 
20145
20483
  attr_reader :number, :name, :categories, :experiences, :attributes, :images
@@ -20345,6 +20683,39 @@ module Io
20345
20683
 
20346
20684
  end
20347
20685
 
20686
+ class CatalogItemUpsertedV2 < Event
20687
+
20688
+ attr_reader :event_id, :timestamp, :organization, :item
20689
+
20690
+ def initialize(incoming={})
20691
+ super(:discriminator => Event::Types::CATALOG_ITEM_UPSERTED_V2)
20692
+ opts = HttpClient::Helper.symbolize_keys(incoming)
20693
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :item], 'CatalogItemUpsertedV2')
20694
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
20695
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
20696
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
20697
+ @item = (x = opts.delete(:item); x.is_a?(::Io::Flow::V0::Models::Item) ? x : ::Io::Flow::V0::Models::Item.new(x))
20698
+ end
20699
+
20700
+ def to_json
20701
+ JSON.dump(to_hash)
20702
+ end
20703
+
20704
+ def copy(incoming={})
20705
+ CatalogItemUpsertedV2.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
20706
+ end
20707
+
20708
+ def subtype_to_hash
20709
+ {
20710
+ :event_id => event_id,
20711
+ :timestamp => timestamp,
20712
+ :organization => organization,
20713
+ :item => item.to_hash
20714
+ }
20715
+ end
20716
+
20717
+ end
20718
+
20348
20719
  class CatalogReference
20349
20720
 
20350
20721
  attr_reader :id
@@ -20896,6 +21267,104 @@ module Io
20896
21267
 
20897
21268
  end
20898
21269
 
21270
+ class CheckoutOptinResponses
21271
+
21272
+ attr_reader :id, :order_number, :session_id, :optin_responses
21273
+
21274
+ def initialize(incoming={})
21275
+ opts = HttpClient::Helper.symbolize_keys(incoming)
21276
+ HttpClient::Preconditions.require_keys(opts, [:id, :order_number, :session_id, :optin_responses], 'CheckoutOptinResponses')
21277
+ @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
21278
+ @order_number = HttpClient::Preconditions.assert_class('order_number', opts.delete(:order_number), String)
21279
+ @session_id = HttpClient::Preconditions.assert_class('session_id', opts.delete(:session_id), String)
21280
+ @optin_responses = HttpClient::Preconditions.assert_class('optin_responses', opts.delete(:optin_responses), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::OptinResponse) ? x : ::Io::Flow::V0::Models::OptinResponse.new(x)) }
21281
+ end
21282
+
21283
+ def to_json
21284
+ JSON.dump(to_hash)
21285
+ end
21286
+
21287
+ def copy(incoming={})
21288
+ CheckoutOptinResponses.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
21289
+ end
21290
+
21291
+ def to_hash
21292
+ {
21293
+ :id => id,
21294
+ :order_number => order_number,
21295
+ :session_id => session_id,
21296
+ :optin_responses => optin_responses.map { |o| o.to_hash }
21297
+ }
21298
+ end
21299
+
21300
+ end
21301
+
21302
+ class CheckoutOptinResponsesDeleted < Event
21303
+
21304
+ attr_reader :event_id, :timestamp, :organization, :id
21305
+
21306
+ def initialize(incoming={})
21307
+ super(:discriminator => Event::Types::CHECKOUT_OPTIN_RESPONSES_DELETED)
21308
+ opts = HttpClient::Helper.symbolize_keys(incoming)
21309
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :id], 'CheckoutOptinResponsesDeleted')
21310
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
21311
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
21312
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
21313
+ @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
21314
+ end
21315
+
21316
+ def to_json
21317
+ JSON.dump(to_hash)
21318
+ end
21319
+
21320
+ def copy(incoming={})
21321
+ CheckoutOptinResponsesDeleted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
21322
+ end
21323
+
21324
+ def subtype_to_hash
21325
+ {
21326
+ :event_id => event_id,
21327
+ :timestamp => timestamp,
21328
+ :organization => organization,
21329
+ :id => id
21330
+ }
21331
+ end
21332
+
21333
+ end
21334
+
21335
+ class CheckoutOptinResponsesUpserted < Event
21336
+
21337
+ attr_reader :event_id, :timestamp, :organization, :checkout_optin_responses
21338
+
21339
+ def initialize(incoming={})
21340
+ super(:discriminator => Event::Types::CHECKOUT_OPTIN_RESPONSES_UPSERTED)
21341
+ opts = HttpClient::Helper.symbolize_keys(incoming)
21342
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :checkout_optin_responses], 'CheckoutOptinResponsesUpserted')
21343
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
21344
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
21345
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
21346
+ @checkout_optin_responses = (x = opts.delete(:checkout_optin_responses); x.is_a?(::Io::Flow::V0::Models::CheckoutOptinResponses) ? x : ::Io::Flow::V0::Models::CheckoutOptinResponses.new(x))
21347
+ end
21348
+
21349
+ def to_json
21350
+ JSON.dump(to_hash)
21351
+ end
21352
+
21353
+ def copy(incoming={})
21354
+ CheckoutOptinResponsesUpserted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
21355
+ end
21356
+
21357
+ def subtype_to_hash
21358
+ {
21359
+ :event_id => event_id,
21360
+ :timestamp => timestamp,
21361
+ :organization => organization,
21362
+ :checkout_optin_responses => checkout_optin_responses.to_hash
21363
+ }
21364
+ end
21365
+
21366
+ end
21367
+
20899
21368
  # Represents a secure token that can be used to redirect to Checkout UI
20900
21369
  class CheckoutToken
20901
21370
 
@@ -21072,12 +21541,13 @@ module Io
21072
21541
  # order. This may represent either the full order or a partial fulfillment.
21073
21542
  class ConsumerInvoice
21074
21543
 
21075
- attr_reader :id, :status, :date, :key, :order, :entity, :payments, :center, :destination, :billing_address, :lines, :documents, :attributes, :tax_registration
21544
+ attr_reader :id, :number, :status, :date, :key, :order, :entity, :payments, :center, :destination, :billing_address, :lines, :documents, :attributes, :tax_registration
21076
21545
 
21077
21546
  def initialize(incoming={})
21078
21547
  opts = HttpClient::Helper.symbolize_keys(incoming)
21079
21548
  HttpClient::Preconditions.require_keys(opts, [:id, :status, :date, :key, :order, :entity, :payments, :destination, :lines, :documents, :attributes], 'ConsumerInvoice')
21080
21549
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
21550
+ @number = (x = opts.delete(:number); x.nil? ? nil : HttpClient::Preconditions.assert_class('number', x, String))
21081
21551
  @status = (x = opts.delete(:status); x.is_a?(::Io::Flow::V0::Models::ConsumerInvoiceStatus) ? x : ::Io::Flow::V0::Models::ConsumerInvoiceStatus.apply(x))
21082
21552
  @date = HttpClient::Preconditions.assert_class('date', HttpClient::Helper.to_date_time_iso8601(opts.delete(:date)), DateTime)
21083
21553
  @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
@@ -21104,6 +21574,7 @@ module Io
21104
21574
  def to_hash
21105
21575
  {
21106
21576
  :id => id,
21577
+ :number => number,
21107
21578
  :status => status.value,
21108
21579
  :date => date,
21109
21580
  :key => key,
@@ -21687,12 +22158,13 @@ module Io
21687
22158
  # issuance of the refund.
21688
22159
  class CreditMemo
21689
22160
 
21690
- attr_reader :id, :status, :date, :key, :invoice, :entity, :payments, :lines, :documents, :attributes, :tax_registration
22161
+ attr_reader :id, :number, :status, :date, :key, :invoice, :entity, :payments, :lines, :documents, :attributes, :tax_registration
21691
22162
 
21692
22163
  def initialize(incoming={})
21693
22164
  opts = HttpClient::Helper.symbolize_keys(incoming)
21694
22165
  HttpClient::Preconditions.require_keys(opts, [:id, :status, :date, :key, :invoice, :entity, :payments, :lines, :documents, :attributes], 'CreditMemo')
21695
22166
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
22167
+ @number = (x = opts.delete(:number); x.nil? ? nil : HttpClient::Preconditions.assert_class('number', x, String))
21696
22168
  @status = (x = opts.delete(:status); x.is_a?(::Io::Flow::V0::Models::ConsumerInvoiceStatus) ? x : ::Io::Flow::V0::Models::ConsumerInvoiceStatus.apply(x))
21697
22169
  @date = HttpClient::Preconditions.assert_class('date', HttpClient::Helper.to_date_time_iso8601(opts.delete(:date)), DateTime)
21698
22170
  @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
@@ -21716,6 +22188,7 @@ module Io
21716
22188
  def to_hash
21717
22189
  {
21718
22190
  :id => id,
22191
+ :number => number,
21719
22192
  :status => status.value,
21720
22193
  :date => date,
21721
22194
  :key => key,
@@ -22376,16 +22849,15 @@ module Io
22376
22849
  # range and cost
22377
22850
  class DeliveryOption
22378
22851
 
22379
- attr_reader :id, :cost, :cost_details, :delivered_duty, :price, :service, :tier, :window, :rule_outcome, :weight, :send_to
22852
+ attr_reader :id, :cost, :delivered_duty, :price, :service, :tier, :window, :rule_outcome, :weight, :send_to
22380
22853
 
22381
22854
  def initialize(incoming={})
22382
22855
  opts = HttpClient::Helper.symbolize_keys(incoming)
22383
22856
  HttpClient::Preconditions.require_keys(opts, [:id, :cost, :delivered_duty, :price, :service, :tier, :window], 'DeliveryOption')
22384
22857
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
22385
- @cost = (x = opts.delete(:cost); x.is_a?(::Io::Flow::V0::Models::PriceWithBase) ? x : ::Io::Flow::V0::Models::PriceWithBase.new(x))
22386
- @cost_details = (x = opts.delete(:cost_details); x.nil? ? nil : HttpClient::Preconditions.assert_class('cost_details', x, Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::DeliveryOptionCostDetail) ? x : ::Io::Flow::V0::Models::DeliveryOptionCostDetail.new(x)) })
22858
+ @cost = (x = opts.delete(:cost); x.is_a?(::Io::Flow::V0::Models::PriceWithBaseAndDetails) ? x : ::Io::Flow::V0::Models::PriceWithBaseAndDetails.new(x))
22387
22859
  @delivered_duty = (x = opts.delete(:delivered_duty); x.is_a?(::Io::Flow::V0::Models::DeliveredDuty) ? x : ::Io::Flow::V0::Models::DeliveredDuty.apply(x))
22388
- @price = (x = opts.delete(:price); x.is_a?(::Io::Flow::V0::Models::PriceWithBase) ? x : ::Io::Flow::V0::Models::PriceWithBase.new(x))
22860
+ @price = (x = opts.delete(:price); x.is_a?(::Io::Flow::V0::Models::PriceWithBaseAndDetails) ? x : ::Io::Flow::V0::Models::PriceWithBaseAndDetails.new(x))
22389
22861
  @service = (x = opts.delete(:service); x.is_a?(::Io::Flow::V0::Models::ServiceSummary) ? x : ::Io::Flow::V0::Models::ServiceSummary.new(x))
22390
22862
  @tier = (x = opts.delete(:tier); x.is_a?(::Io::Flow::V0::Models::TierSummary) ? x : ::Io::Flow::V0::Models::TierSummary.new(x))
22391
22863
  @window = (x = opts.delete(:window); x.is_a?(::Io::Flow::V0::Models::DeliveryWindow) ? x : ::Io::Flow::V0::Models::DeliveryWindow.new(x))
@@ -22406,7 +22878,6 @@ module Io
22406
22878
  {
22407
22879
  :id => id,
22408
22880
  :cost => cost.to_hash,
22409
- :cost_details => cost_details.nil? ? nil : cost_details.map { |o| o.to_hash },
22410
22881
  :delivered_duty => delivered_duty.value,
22411
22882
  :price => price.to_hash,
22412
22883
  :service => service.to_hash,
@@ -30024,37 +30495,6 @@ module Io
30024
30495
 
30025
30496
  end
30026
30497
 
30027
- class MembershipDeleted < Event
30028
-
30029
- attr_reader :event_id, :timestamp, :id
30030
-
30031
- def initialize(incoming={})
30032
- super(:discriminator => Event::Types::MEMBERSHIP_DELETED)
30033
- opts = HttpClient::Helper.symbolize_keys(incoming)
30034
- HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :id], 'MembershipDeleted')
30035
- @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
30036
- @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
30037
- @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
30038
- end
30039
-
30040
- def to_json
30041
- JSON.dump(to_hash)
30042
- end
30043
-
30044
- def copy(incoming={})
30045
- MembershipDeleted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
30046
- end
30047
-
30048
- def subtype_to_hash
30049
- {
30050
- :event_id => event_id,
30051
- :timestamp => timestamp,
30052
- :id => id
30053
- }
30054
- end
30055
-
30056
- end
30057
-
30058
30498
  class MembershipDeletedV2 < Event
30059
30499
 
30060
30500
  attr_reader :event_id, :timestamp, :membership
@@ -30147,43 +30587,6 @@ module Io
30147
30587
 
30148
30588
  end
30149
30589
 
30150
- class MembershipUpserted < Event
30151
-
30152
- attr_reader :event_id, :timestamp, :id, :organization, :user_id, :role
30153
-
30154
- def initialize(incoming={})
30155
- super(:discriminator => Event::Types::MEMBERSHIP_UPSERTED)
30156
- opts = HttpClient::Helper.symbolize_keys(incoming)
30157
- HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :id, :organization, :user_id, :role], 'MembershipUpserted')
30158
- @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
30159
- @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
30160
- @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
30161
- @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
30162
- @user_id = HttpClient::Preconditions.assert_class('user_id', opts.delete(:user_id), String)
30163
- @role = HttpClient::Preconditions.assert_class('role', opts.delete(:role), String)
30164
- end
30165
-
30166
- def to_json
30167
- JSON.dump(to_hash)
30168
- end
30169
-
30170
- def copy(incoming={})
30171
- MembershipUpserted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
30172
- end
30173
-
30174
- def subtype_to_hash
30175
- {
30176
- :event_id => event_id,
30177
- :timestamp => timestamp,
30178
- :id => id,
30179
- :organization => organization,
30180
- :user_id => user_id,
30181
- :role => role
30182
- }
30183
- end
30184
-
30185
- end
30186
-
30187
30590
  class MembershipUpsertedV2 < Event
30188
30591
 
30189
30592
  attr_reader :event_id, :timestamp, :membership
@@ -30301,11 +30704,12 @@ module Io
30301
30704
  # specific Flow entity serving as merchant of record.
30302
30705
  class MerchantOfRecordEntity
30303
30706
 
30304
- attr_reader :name, :vat, :streets, :city, :province, :postal, :country, :phone, :email
30707
+ attr_reader :organization, :name, :vat, :streets, :city, :province, :postal, :country, :phone, :email
30305
30708
 
30306
30709
  def initialize(incoming={})
30307
30710
  opts = HttpClient::Helper.symbolize_keys(incoming)
30308
- HttpClient::Preconditions.require_keys(opts, [:name, :vat, :streets, :city, :country], 'MerchantOfRecordEntity')
30711
+ HttpClient::Preconditions.require_keys(opts, [:organization, :name, :vat, :streets, :city, :country], 'MerchantOfRecordEntity')
30712
+ @organization = (x = opts.delete(:organization); x.is_a?(::Io::Flow::V0::Models::OrganizationReference) ? x : ::Io::Flow::V0::Models::OrganizationReference.new(x))
30309
30713
  @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
30310
30714
  @vat = (x = opts.delete(:vat); x.is_a?(::Io::Flow::V0::Models::MerchantOfRecordEntityRegistration) ? x : ::Io::Flow::V0::Models::MerchantOfRecordEntityRegistration.new(x))
30311
30715
  @streets = HttpClient::Preconditions.assert_class('streets', opts.delete(:streets), Array).map { |v| HttpClient::Preconditions.assert_class('streets', v, String) }
@@ -30327,6 +30731,7 @@ module Io
30327
30731
 
30328
30732
  def to_hash
30329
30733
  {
30734
+ :organization => organization.to_hash,
30330
30735
  :name => name,
30331
30736
  :vat => vat.to_hash,
30332
30737
  :streets => streets,
@@ -30800,6 +31205,39 @@ module Io
30800
31205
 
30801
31206
  end
30802
31207
 
31208
+ class OnlineAuthorizationDeletedV2 < Event
31209
+
31210
+ attr_reader :event_id, :timestamp, :organization, :authorization
31211
+
31212
+ def initialize(incoming={})
31213
+ super(:discriminator => Event::Types::ONLINE_AUTHORIZATION_DELETED_V2)
31214
+ opts = HttpClient::Helper.symbolize_keys(incoming)
31215
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :authorization], 'OnlineAuthorizationDeletedV2')
31216
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
31217
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
31218
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
31219
+ @authorization = (x = opts.delete(:authorization); x.is_a?(::Io::Flow::V0::Models::OnlineAuthorization) ? x : ::Io::Flow::V0::Models::OnlineAuthorization.new(x))
31220
+ end
31221
+
31222
+ def to_json
31223
+ JSON.dump(to_hash)
31224
+ end
31225
+
31226
+ def copy(incoming={})
31227
+ OnlineAuthorizationDeletedV2.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
31228
+ end
31229
+
31230
+ def subtype_to_hash
31231
+ {
31232
+ :event_id => event_id,
31233
+ :timestamp => timestamp,
31234
+ :organization => organization,
31235
+ :authorization => authorization.to_hash
31236
+ }
31237
+ end
31238
+
31239
+ end
31240
+
30803
31241
  # Represents an authorization for a card payment method
30804
31242
  class OnlineAuthorizationUpsertedV2 < Event
30805
31243
 
@@ -30836,6 +31274,34 @@ module Io
30836
31274
 
30837
31275
  end
30838
31276
 
31277
+ class OptinResponse
31278
+
31279
+ attr_reader :key, :value
31280
+
31281
+ def initialize(incoming={})
31282
+ opts = HttpClient::Helper.symbolize_keys(incoming)
31283
+ HttpClient::Preconditions.require_keys(opts, [:key, :value], 'OptinResponse')
31284
+ @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
31285
+ @value = (x = opts.delete(:value); x.is_a?(::Io::Flow::V0::Models::OptinResponseType) ? x : ::Io::Flow::V0::Models::OptinResponseType.apply(x))
31286
+ end
31287
+
31288
+ def to_json
31289
+ JSON.dump(to_hash)
31290
+ end
31291
+
31292
+ def copy(incoming={})
31293
+ OptinResponse.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
31294
+ end
31295
+
31296
+ def to_hash
31297
+ {
31298
+ :key => key,
31299
+ :value => value.value
31300
+ }
31301
+ end
31302
+
31303
+ end
31304
+
30839
31305
  class OptionWeightEstimates
30840
31306
 
30841
31307
  attr_reader :gravitational, :dimensional
@@ -32357,7 +32823,7 @@ module Io
32357
32823
  # currently operating in.
32358
32824
  class Organization < ExpandableOrganization
32359
32825
 
32360
- attr_reader :id, :name, :environment, :parent
32826
+ attr_reader :id, :name, :environment, :parent, :defaults
32361
32827
 
32362
32828
  def initialize(incoming={})
32363
32829
  super(:discriminator => ExpandableOrganization::Types::ORGANIZATION)
@@ -32367,6 +32833,7 @@ module Io
32367
32833
  @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
32368
32834
  @environment = (x = opts.delete(:environment); x.is_a?(::Io::Flow::V0::Models::Environment) ? x : ::Io::Flow::V0::Models::Environment.apply(x))
32369
32835
  @parent = (x = opts.delete(:parent); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::OrganizationReference) ? x : ::Io::Flow::V0::Models::OrganizationReference.new(x)))
32836
+ @defaults = (x = opts.delete(:defaults); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::OrganizationDefaults) ? x : ::Io::Flow::V0::Models::OrganizationDefaults.new(x)))
32370
32837
  end
32371
32838
 
32372
32839
  def to_json
@@ -32382,7 +32849,8 @@ module Io
32382
32849
  :id => id,
32383
32850
  :name => name,
32384
32851
  :environment => environment.value,
32385
- :parent => parent.nil? ? nil : parent.to_hash
32852
+ :parent => parent.nil? ? nil : parent.to_hash,
32853
+ :defaults => defaults.nil? ? nil : defaults.to_hash
32386
32854
  }
32387
32855
  end
32388
32856
 
@@ -32604,6 +33072,40 @@ module Io
32604
33072
 
32605
33073
  end
32606
33074
 
33075
+ class OrganizationDefaults
33076
+
33077
+ attr_reader :country, :base_currency, :language, :locale, :timezone
33078
+
33079
+ def initialize(incoming={})
33080
+ opts = HttpClient::Helper.symbolize_keys(incoming)
33081
+ HttpClient::Preconditions.require_keys(opts, [:country, :base_currency, :language, :locale, :timezone], 'OrganizationDefaults')
33082
+ @country = HttpClient::Preconditions.assert_class('country', opts.delete(:country), String)
33083
+ @base_currency = HttpClient::Preconditions.assert_class('base_currency', opts.delete(:base_currency), String)
33084
+ @language = HttpClient::Preconditions.assert_class('language', opts.delete(:language), String)
33085
+ @locale = HttpClient::Preconditions.assert_class('locale', opts.delete(:locale), String)
33086
+ @timezone = HttpClient::Preconditions.assert_class('timezone', opts.delete(:timezone), String)
33087
+ end
33088
+
33089
+ def to_json
33090
+ JSON.dump(to_hash)
33091
+ end
33092
+
33093
+ def copy(incoming={})
33094
+ OrganizationDefaults.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
33095
+ end
33096
+
33097
+ def to_hash
33098
+ {
33099
+ :country => country,
33100
+ :base_currency => base_currency,
33101
+ :language => language,
33102
+ :locale => locale,
33103
+ :timezone => timezone
33104
+ }
33105
+ end
33106
+
33107
+ end
33108
+
32607
33109
  class OrganizationDeleted < Event
32608
33110
 
32609
33111
  attr_reader :event_id, :timestamp, :id
@@ -34494,7 +34996,7 @@ module Io
34494
34996
  # collection of items, and metadata about those options
34495
34997
  class PhysicalDelivery < Delivery
34496
34998
 
34497
- attr_reader :id, :center, :items, :options
34999
+ attr_reader :id, :center, :items, :options, :special_services
34498
35000
 
34499
35001
  def initialize(incoming={})
34500
35002
  super(:discriminator => Delivery::Types::PHYSICAL_DELIVERY)
@@ -34504,6 +35006,7 @@ module Io
34504
35006
  @center = (x = opts.delete(:center); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::CenterSummary) ? x : ::Io::Flow::V0::Models::CenterSummary.new(x)))
34505
35007
  @items = HttpClient::Preconditions.assert_class('items', opts.delete(:items), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::DeliveryItem) ? x : ::Io::Flow::V0::Models::DeliveryItem.new(x)) }
34506
35008
  @options = HttpClient::Preconditions.assert_class('options', opts.delete(:options), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::DeliveryOption) ? x : ::Io::Flow::V0::Models::DeliveryOption.new(x)) }
35009
+ @special_services = (x = opts.delete(:special_services); x.nil? ? nil : HttpClient::Preconditions.assert_class('special_services', x, Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::PhysicalDeliverySpecialSerivce) ? x : ::Io::Flow::V0::Models::PhysicalDeliverySpecialSerivce.apply(x)) })
34507
35010
  end
34508
35011
 
34509
35012
  def to_json
@@ -34519,7 +35022,8 @@ module Io
34519
35022
  :id => id,
34520
35023
  :center => center.nil? ? nil : center.to_hash,
34521
35024
  :items => items.map { |o| o.to_hash },
34522
- :options => options.map { |o| o.to_hash }
35025
+ :options => options.map { |o| o.to_hash },
35026
+ :special_services => special_services.nil? ? nil : special_services.map { |o| o.value }
34523
35027
  }
34524
35028
  end
34525
35029
 
@@ -35171,6 +35675,40 @@ module Io
35171
35675
 
35172
35676
  end
35173
35677
 
35678
+ class PriceWithBaseAndDetails
35679
+
35680
+ attr_reader :currency, :amount, :label, :base, :details
35681
+
35682
+ def initialize(incoming={})
35683
+ opts = HttpClient::Helper.symbolize_keys(incoming)
35684
+ HttpClient::Preconditions.require_keys(opts, [:currency, :amount, :label], 'PriceWithBaseAndDetails')
35685
+ @currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
35686
+ @amount = HttpClient::Preconditions.assert_class('amount', opts.delete(:amount), Numeric)
35687
+ @label = HttpClient::Preconditions.assert_class('label', opts.delete(:label), String)
35688
+ @base = (x = opts.delete(:base); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x)))
35689
+ @details = (x = opts.delete(:details); x.nil? ? nil : HttpClient::Preconditions.assert_class('details', x, Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::DeliveryOptionCostDetail) ? x : ::Io::Flow::V0::Models::DeliveryOptionCostDetail.new(x)) })
35690
+ end
35691
+
35692
+ def to_json
35693
+ JSON.dump(to_hash)
35694
+ end
35695
+
35696
+ def copy(incoming={})
35697
+ PriceWithBaseAndDetails.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
35698
+ end
35699
+
35700
+ def to_hash
35701
+ {
35702
+ :currency => currency,
35703
+ :amount => amount,
35704
+ :label => label,
35705
+ :base => base.nil? ? nil : base.to_hash,
35706
+ :details => details.nil? ? nil : details.map { |o| o.to_hash }
35707
+ }
35708
+ end
35709
+
35710
+ end
35711
+
35174
35712
  # Pricing determines how the item price is calculated when items are requests
35175
35713
  # via the experience.
35176
35714
  class Pricing
@@ -36263,6 +36801,39 @@ module Io
36263
36801
 
36264
36802
  end
36265
36803
 
36804
+ class RefundDeletedV2 < Event
36805
+
36806
+ attr_reader :event_id, :timestamp, :organization, :refund
36807
+
36808
+ def initialize(incoming={})
36809
+ super(:discriminator => Event::Types::REFUND_DELETED_V2)
36810
+ opts = HttpClient::Helper.symbolize_keys(incoming)
36811
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :refund], 'RefundDeletedV2')
36812
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
36813
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
36814
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
36815
+ @refund = (x = opts.delete(:refund); x.is_a?(::Io::Flow::V0::Models::Refund) ? x : ::Io::Flow::V0::Models::Refund.new(x))
36816
+ end
36817
+
36818
+ def to_json
36819
+ JSON.dump(to_hash)
36820
+ end
36821
+
36822
+ def copy(incoming={})
36823
+ RefundDeletedV2.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
36824
+ end
36825
+
36826
+ def subtype_to_hash
36827
+ {
36828
+ :event_id => event_id,
36829
+ :timestamp => timestamp,
36830
+ :organization => organization,
36831
+ :refund => refund.to_hash
36832
+ }
36833
+ end
36834
+
36835
+ end
36836
+
36266
36837
  class RefundError
36267
36838
 
36268
36839
  attr_reader :code, :messages, :decline_code
@@ -39319,6 +39890,38 @@ module Io
39319
39890
 
39320
39891
  end
39321
39892
 
39893
+ class ShopifyLine
39894
+
39895
+ attr_reader :variant_id, :quantity, :price, :total
39896
+
39897
+ def initialize(incoming={})
39898
+ opts = HttpClient::Helper.symbolize_keys(incoming)
39899
+ HttpClient::Preconditions.require_keys(opts, [:variant_id, :quantity, :price, :total], 'ShopifyLine')
39900
+ @variant_id = HttpClient::Preconditions.assert_class('variant_id', opts.delete(:variant_id), Integer)
39901
+ @quantity = HttpClient::Preconditions.assert_class('quantity', opts.delete(:quantity), Integer)
39902
+ @price = (x = opts.delete(:price); x.is_a?(::Io::Flow::V0::Models::ShopifyPrice) ? x : ::Io::Flow::V0::Models::ShopifyPrice.new(x))
39903
+ @total = (x = opts.delete(:total); x.is_a?(::Io::Flow::V0::Models::ShopifyPrice) ? x : ::Io::Flow::V0::Models::ShopifyPrice.new(x))
39904
+ end
39905
+
39906
+ def to_json
39907
+ JSON.dump(to_hash)
39908
+ end
39909
+
39910
+ def copy(incoming={})
39911
+ ShopifyLine.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
39912
+ end
39913
+
39914
+ def to_hash
39915
+ {
39916
+ :variant_id => variant_id,
39917
+ :quantity => quantity,
39918
+ :price => price.to_hash,
39919
+ :total => total.to_hash
39920
+ }
39921
+ end
39922
+
39923
+ end
39924
+
39322
39925
  class ShopifyLocalCartItemMetadata
39323
39926
 
39324
39927
  attr_reader :line_price, :price
@@ -39349,7 +39952,7 @@ module Io
39349
39952
 
39350
39953
  class ShopifyLocalCartMetadata
39351
39954
 
39352
- attr_reader :total_price, :promotions, :rules, :subtotal, :vat, :duty
39955
+ attr_reader :total_price, :promotions, :rules, :subtotal, :vat, :duty, :discount
39353
39956
 
39354
39957
  def initialize(incoming={})
39355
39958
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -39360,6 +39963,7 @@ module Io
39360
39963
  @subtotal = (x = opts.delete(:subtotal); x.is_a?(::Io::Flow::V0::Models::PriceWithBase) ? x : ::Io::Flow::V0::Models::PriceWithBase.new(x))
39361
39964
  @vat = (x = opts.delete(:vat); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::PriceWithBase) ? x : ::Io::Flow::V0::Models::PriceWithBase.new(x)))
39362
39965
  @duty = (x = opts.delete(:duty); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::PriceWithBase) ? x : ::Io::Flow::V0::Models::PriceWithBase.new(x)))
39966
+ @discount = (x = opts.delete(:discount); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::PriceWithBase) ? x : ::Io::Flow::V0::Models::PriceWithBase.new(x)))
39363
39967
  end
39364
39968
 
39365
39969
  def to_json
@@ -39377,7 +39981,8 @@ module Io
39377
39981
  :rules => rules.nil? ? nil : rules.to_hash,
39378
39982
  :subtotal => subtotal.to_hash,
39379
39983
  :vat => vat.nil? ? nil : vat.to_hash,
39380
- :duty => duty.nil? ? nil : duty.to_hash
39984
+ :duty => duty.nil? ? nil : duty.to_hash,
39985
+ :discount => discount.nil? ? nil : discount.to_hash
39381
39986
  }
39382
39987
  end
39383
39988
 
@@ -39409,6 +40014,50 @@ module Io
39409
40014
 
39410
40015
  end
39411
40016
 
40017
+ class ShopifyLocalizedOrder
40018
+
40019
+ attr_reader :id, :lines, :prices, :total, :allocation_details, :merchant_of_record, :merchant_of_record_entity, :incoterm, :flow_order_id, :tax_registration
40020
+
40021
+ def initialize(incoming={})
40022
+ opts = HttpClient::Helper.symbolize_keys(incoming)
40023
+ HttpClient::Preconditions.require_keys(opts, [:id, :lines, :prices, :total, :allocation_details], 'ShopifyLocalizedOrder')
40024
+ @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), Integer)
40025
+ @lines = HttpClient::Preconditions.assert_class('lines', opts.delete(:lines), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ShopifyLine) ? x : ::Io::Flow::V0::Models::ShopifyLine.new(x)) }
40026
+ @prices = HttpClient::Preconditions.assert_class('prices', opts.delete(:prices), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ShopifyPrice) ? x : ::Io::Flow::V0::Models::ShopifyPrice.new(x)) }
40027
+ @total = (x = opts.delete(:total); x.is_a?(::Io::Flow::V0::Models::ShopifyPrice) ? x : ::Io::Flow::V0::Models::ShopifyPrice.new(x))
40028
+ @allocation_details = HttpClient::Preconditions.assert_class('allocation_details', opts.delete(:allocation_details), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::AllocationDetail) ? x : ::Io::Flow::V0::Models::AllocationDetail.from_json(x)) }
40029
+ @merchant_of_record = (x = opts.delete(:merchant_of_record); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::OrderMerchantOfRecord) ? x : ::Io::Flow::V0::Models::OrderMerchantOfRecord.apply(x)))
40030
+ @merchant_of_record_entity = (x = opts.delete(:merchant_of_record_entity); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::MerchantOfRecordEntity) ? x : ::Io::Flow::V0::Models::MerchantOfRecordEntity.new(x)))
40031
+ @incoterm = (x = opts.delete(:incoterm); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Incoterm) ? x : ::Io::Flow::V0::Models::Incoterm.apply(x)))
40032
+ @flow_order_id = (x = opts.delete(:flow_order_id); x.nil? ? nil : HttpClient::Preconditions.assert_class('flow_order_id', x, String))
40033
+ @tax_registration = (x = opts.delete(:tax_registration); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::TaxRegistration) ? x : ::Io::Flow::V0::Models::TaxRegistration.new(x)))
40034
+ end
40035
+
40036
+ def to_json
40037
+ JSON.dump(to_hash)
40038
+ end
40039
+
40040
+ def copy(incoming={})
40041
+ ShopifyLocalizedOrder.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
40042
+ end
40043
+
40044
+ def to_hash
40045
+ {
40046
+ :id => id,
40047
+ :lines => lines.map { |o| o.to_hash },
40048
+ :prices => prices.map { |o| o.to_hash },
40049
+ :total => total.to_hash,
40050
+ :allocation_details => allocation_details.map { |o| o.to_hash },
40051
+ :merchant_of_record => merchant_of_record.nil? ? nil : merchant_of_record.value,
40052
+ :merchant_of_record_entity => merchant_of_record_entity.nil? ? nil : merchant_of_record_entity.to_hash,
40053
+ :incoterm => incoterm.nil? ? nil : incoterm.value,
40054
+ :flow_order_id => flow_order_id,
40055
+ :tax_registration => tax_registration.nil? ? nil : tax_registration.to_hash
40056
+ }
40057
+ end
40058
+
40059
+ end
40060
+
39412
40061
  class ShopifyLocalizedVariant
39413
40062
 
39414
40063
  attr_reader :id, :handle, :experience, :prices, :status
@@ -39561,22 +40210,16 @@ module Io
39561
40210
 
39562
40211
  end
39563
40212
 
39564
- # Model to represent details available in an order metafield.
39565
- class ShopifyOrderMetafieldValue
40213
+ # Model to represent item's price attributes metafield
40214
+ class ShopifyOrderPriceAttributesMetafield
39566
40215
 
39567
- attr_reader :merchant_of_record, :merchant_of_record_entity, :items, :prices, :total, :flow_order_id, :incoterm, :tax_registration
40216
+ attr_reader :item_number, :price_attributes
39568
40217
 
39569
40218
  def initialize(incoming={})
39570
40219
  opts = HttpClient::Helper.symbolize_keys(incoming)
39571
- HttpClient::Preconditions.require_keys(opts, [:items, :prices, :total], 'ShopifyOrderMetafieldValue')
39572
- @merchant_of_record = (x = (x = opts.delete(:merchant_of_record); x.nil? ? "flow" : x); x.is_a?(::Io::Flow::V0::Models::OrderMerchantOfRecord) ? x : ::Io::Flow::V0::Models::OrderMerchantOfRecord.apply(x))
39573
- @merchant_of_record_entity = (x = opts.delete(:merchant_of_record_entity); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::MerchantOfRecordEntity) ? x : ::Io::Flow::V0::Models::MerchantOfRecordEntity.new(x)))
39574
- @items = HttpClient::Preconditions.assert_class('items', opts.delete(:items), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::LocalizedLineItem) ? x : ::Io::Flow::V0::Models::LocalizedLineItem.new(x)) }
39575
- @prices = HttpClient::Preconditions.assert_class('prices', opts.delete(:prices), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::OrderPriceDetail) ? x : ::Io::Flow::V0::Models::OrderPriceDetail.new(x)) }
39576
- @total = (x = opts.delete(:total); x.is_a?(::Io::Flow::V0::Models::LocalizedTotal) ? x : ::Io::Flow::V0::Models::LocalizedTotal.new(x))
39577
- @flow_order_id = (x = opts.delete(:flow_order_id); x.nil? ? nil : HttpClient::Preconditions.assert_class('flow_order_id', x, String))
39578
- @incoterm = (x = opts.delete(:incoterm); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Incoterm) ? x : ::Io::Flow::V0::Models::Incoterm.apply(x)))
39579
- @tax_registration = (x = opts.delete(:tax_registration); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::TaxRegistration) ? x : ::Io::Flow::V0::Models::TaxRegistration.new(x)))
40220
+ HttpClient::Preconditions.require_keys(opts, [:item_number, :price_attributes], 'ShopifyOrderPriceAttributesMetafield')
40221
+ @item_number = HttpClient::Preconditions.assert_class('item_number', opts.delete(:item_number), String)
40222
+ @price_attributes = HttpClient::Preconditions.assert_class('price_attributes', opts.delete(:price_attributes), Hash).inject({}) { |h, d| h[d[0]] = (x = d[1]; x.is_a?(::Io::Flow::V0::Models::PriceWithBase) ? x : ::Io::Flow::V0::Models::PriceWithBase.new(x)); h }
39580
40223
  end
39581
40224
 
39582
40225
  def to_json
@@ -39584,19 +40227,13 @@ module Io
39584
40227
  end
39585
40228
 
39586
40229
  def copy(incoming={})
39587
- ShopifyOrderMetafieldValue.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
40230
+ ShopifyOrderPriceAttributesMetafield.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
39588
40231
  end
39589
40232
 
39590
40233
  def to_hash
39591
40234
  {
39592
- :merchant_of_record => merchant_of_record.value,
39593
- :merchant_of_record_entity => merchant_of_record_entity.nil? ? nil : merchant_of_record_entity.to_hash,
39594
- :items => items.map { |o| o.to_hash },
39595
- :prices => prices.map { |o| o.to_hash },
39596
- :total => total.to_hash,
39597
- :flow_order_id => flow_order_id,
39598
- :incoterm => incoterm.nil? ? nil : incoterm.value,
39599
- :tax_registration => tax_registration.nil? ? nil : tax_registration.to_hash
40235
+ :item_number => item_number,
40236
+ :price_attributes => price_attributes.inject({}) { |hash, o| hash[o[0]] = o[1].nil? ? nil : o[1].to_hash; hash }
39600
40237
  }
39601
40238
  end
39602
40239