flowcommerce 0.2.91 → 0.2.94

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
2
  SHA256:
3
- metadata.gz: 067d77ab7176a02bd12f913b31c0a30be7854b1b29c4b918ba25e9794512b983
4
- data.tar.gz: 31da501dc8d3c0be8e32998ff9177b683246703da35b3649b0974435714dc536
3
+ metadata.gz: a60e40c706849d2004856a9c87112aa99fed548a53b95c9ca0d3e60f345a6fae
4
+ data.tar.gz: ab0bd8d5cd7d66234fb6f0fd8f9e63b81e136eb9a1031fe14a57df6ec5a3ce62
5
5
  SHA512:
6
- metadata.gz: 929244d3c0fe76f2f7e206726c3af90e0435cc18967a3784a853643a667b73aaad4b472ec49781e7e2ee5f847f77756527979af526fbe57438304b662a8f88ff
7
- data.tar.gz: ce8a010837c4d6d99f1c9d463936f5dabf1185f28277939252b397f3a81b8709215238002bbfeeeff90fdab84d85f50e9f3dedbecf3875517d7ea717c93effa6
6
+ metadata.gz: b62c42492d6677d2343e352515ed180c2a30a9508a5ca4ecf3bfb367f75a769214ba28721f5d806151bb50d7085ac47884aaaad9d488f1de2c8459fe5de93908
7
+ data.tar.gz: 56ad62ee37d932cb8c2640fb521feb540bfede31cd708d807337d7c601efa52bcd61bbd781323cc166e738ef01daf8a11561ab286285f374c1666be007e9b4a1
@@ -1,5 +1,5 @@
1
1
  # Generated by API Builder - https://www.apibuilder.io
2
- # Service version: 0.9.79
2
+ # Service version: 0.9.96
3
3
  # apibuilder 0.15.11 app.apibuilder.io/flow/api/latest/ruby_client
4
4
 
5
5
  require 'cgi'
@@ -26,7 +26,7 @@ module Io
26
26
  BASE_URL = 'https://api.flow.io' unless defined?(Constants::BASE_URL)
27
27
  NAMESPACE = 'io.flow.v0' unless defined?(Constants::NAMESPACE)
28
28
  USER_AGENT = 'apibuilder 0.15.11 app.apibuilder.io/flow/api/latest/ruby_client' unless defined?(Constants::USER_AGENT)
29
- VERSION = '0.9.79' unless defined?(Constants::VERSION)
29
+ VERSION = '0.9.96' unless defined?(Constants::VERSION)
30
30
  VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
31
31
 
32
32
  end
@@ -2507,6 +2507,21 @@ module Io
2507
2507
  r.map { |x| ::Io::Flow::V0::Models::Country.new(x) }
2508
2508
  end
2509
2509
 
2510
+ # Status of all countries
2511
+ def get_countries_and_statuses_by_organization(organization)
2512
+ HttpClient::Preconditions.assert_class('organization', organization, String)
2513
+ r = @client.request("/#{CGI.escape(organization)}/countries/statuses").get
2514
+ r.map { |x| ::Io::Flow::V0::Models::CountryStatus.new(x) }
2515
+ end
2516
+
2517
+ def put_countries_and_statuses_by_organization_and_country(organization, country, country_status_form)
2518
+ HttpClient::Preconditions.assert_class('organization', organization, String)
2519
+ HttpClient::Preconditions.assert_class('country', country, String)
2520
+ (x = country_status_form; x.is_a?(::Io::Flow::V0::Models::CountryStatusForm) ? x : ::Io::Flow::V0::Models::CountryStatusForm.new(x))
2521
+ r = @client.request("/#{CGI.escape(organization)}/countries/statuses/#{CGI.escape(country)}").with_json(country_status_form.to_json).put
2522
+ ::Io::Flow::V0::Models::CountryStatus.new(r)
2523
+ end
2524
+
2510
2525
  # Search organizations. Always paginated.
2511
2526
  def get(incoming={})
2512
2527
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -4002,6 +4017,14 @@ module Io
4002
4017
  ::Io::Flow::V0::Models::DimensionEstimate.new(r)
4003
4018
  end
4004
4019
 
4020
+ def put_by_id(organization, id, dimension_estimate_form)
4021
+ HttpClient::Preconditions.assert_class('organization', organization, String)
4022
+ HttpClient::Preconditions.assert_class('id', id, String)
4023
+ (x = dimension_estimate_form; x.is_a?(::Io::Flow::V0::Models::DimensionEstimateForm) ? x : ::Io::Flow::V0::Models::DimensionEstimateForm.new(x))
4024
+ r = @client.request("/#{CGI.escape(organization)}/dimension-estimates/#{CGI.escape(id)}").with_json(dimension_estimate_form.to_json).put
4025
+ ::Io::Flow::V0::Models::DimensionEstimate.new(r)
4026
+ end
4027
+
4005
4028
  def delete_by_id(organization, id)
4006
4029
  HttpClient::Preconditions.assert_class('organization', organization, String)
4007
4030
  HttpClient::Preconditions.assert_class('id', id, String)
@@ -4718,7 +4741,8 @@ module Io
4718
4741
  opts = HttpClient::Helper.symbolize_keys(incoming)
4719
4742
  query = {
4720
4743
  :show_commercial_invoice => (x = opts.delete(:show_commercial_invoice); x.nil? ? nil : HttpClient::Preconditions.assert_boolean('show_commercial_invoice', x)),
4721
- :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String))
4744
+ :context => (x = opts.delete(:context); x.nil? ? nil : HttpClient::Preconditions.assert_class('context', x, String)),
4745
+ :force_new => (x = opts.delete(:force_new); x.nil? ? nil : HttpClient::Preconditions.assert_boolean('force_new', x))
4722
4746
  }.delete_if { |k, v| v.nil? }
4723
4747
  (x = shipping_label_form; x.is_a?(::Io::Flow::V0::Models::ShippingLabelForm) ? x : ::Io::Flow::V0::Models::ShippingLabelForm.from_json(x))
4724
4748
  r = @client.request("/#{CGI.escape(organization)}/shipping_labels").with_query(query).with_json(shipping_label_form.to_json).post
@@ -7765,68 +7789,6 @@ module Io
7765
7789
 
7766
7790
  module Models
7767
7791
 
7768
- # Configurations to support payment authentication done in the user experience
7769
- # e.g. card authentication with 3DS by an issuer ACS.
7770
- class ActionConfiguration
7771
-
7772
- module Types
7773
- THREEDS_TWO_BROWSER_ACTION_CONFIGURATION = 'threeds_two_browser_action_configuration' unless defined?(THREEDS_TWO_BROWSER_ACTION_CONFIGURATION)
7774
- end
7775
-
7776
- attr_reader :discriminator
7777
-
7778
- def initialize(incoming={})
7779
- opts = HttpClient::Helper.symbolize_keys(incoming)
7780
- HttpClient::Preconditions.require_keys(opts, [:discriminator], 'ActionConfiguration')
7781
- @discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
7782
- end
7783
-
7784
- def subtype_to_hash
7785
- raise 'Cannot serialize an instance of action_configuration directly - must use one of the specific types: threeds_two_browser_action_configuration'
7786
- end
7787
-
7788
- def to_hash
7789
- subtype_to_hash.merge(:discriminator => @discriminator)
7790
- end
7791
-
7792
- def ActionConfiguration.from_json(hash)
7793
- HttpClient::Preconditions.assert_class('hash', hash, Hash)
7794
- discriminator = HttpClient::Helper.symbolize_keys(hash)[:discriminator].to_s.strip
7795
- if discriminator.empty?
7796
- raise "Union type[action_configuration] requires a field named 'discriminator'"
7797
- end
7798
- case discriminator
7799
- when Types::THREEDS_TWO_BROWSER_ACTION_CONFIGURATION; ThreedsTwoBrowserActionConfiguration.new(hash)
7800
- else ActionConfigurationUndefinedType.new(:discriminator => discriminator)
7801
- end
7802
- end
7803
-
7804
- end
7805
-
7806
- class ActionConfigurationUndefinedType < ActionConfiguration
7807
-
7808
- attr_reader :name
7809
-
7810
- def initialize(incoming={})
7811
- super(:discriminator => 'undefined_type')
7812
- opts = HttpClient::Helper.symbolize_keys(incoming)
7813
- @name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
7814
- end
7815
-
7816
- def subtype_to_hash
7817
- raise 'Unable to serialize undefined type to json'
7818
- end
7819
-
7820
- def copy(incoming={})
7821
- raise 'Operation not supported for undefined type'
7822
- end
7823
-
7824
- def to_hash
7825
- raise 'Operation not supported for undefined type'
7826
- end
7827
-
7828
- end
7829
-
7830
7792
  class AdyenNativeData
7831
7793
 
7832
7794
  module Types
@@ -8419,6 +8381,68 @@ module Io
8419
8381
 
8420
8382
  end
8421
8383
 
8384
+ # Configurations to support payment authentication done in the browser
8385
+ # experience e.g. card authentication with 3DS by an issuer ACS.
8386
+ class BrowserActionConfiguration
8387
+
8388
+ module Types
8389
+ CARD_BROWSER_ACTION_CONFIGURATION = 'card_browser_action_configuration' unless defined?(CARD_BROWSER_ACTION_CONFIGURATION)
8390
+ end
8391
+
8392
+ attr_reader :discriminator
8393
+
8394
+ def initialize(incoming={})
8395
+ opts = HttpClient::Helper.symbolize_keys(incoming)
8396
+ HttpClient::Preconditions.require_keys(opts, [:discriminator], 'BrowserActionConfiguration')
8397
+ @discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
8398
+ end
8399
+
8400
+ def subtype_to_hash
8401
+ raise 'Cannot serialize an instance of browser_action_configuration directly - must use one of the specific types: card_browser_action_configuration'
8402
+ end
8403
+
8404
+ def to_hash
8405
+ subtype_to_hash.merge(:discriminator => @discriminator)
8406
+ end
8407
+
8408
+ def BrowserActionConfiguration.from_json(hash)
8409
+ HttpClient::Preconditions.assert_class('hash', hash, Hash)
8410
+ discriminator = HttpClient::Helper.symbolize_keys(hash)[:discriminator].to_s.strip
8411
+ if discriminator.empty?
8412
+ raise "Union type[browser_action_configuration] requires a field named 'discriminator'"
8413
+ end
8414
+ case discriminator
8415
+ when Types::CARD_BROWSER_ACTION_CONFIGURATION; CardBrowserActionConfiguration.new(hash)
8416
+ else BrowserActionConfigurationUndefinedType.new(:discriminator => discriminator)
8417
+ end
8418
+ end
8419
+
8420
+ end
8421
+
8422
+ class BrowserActionConfigurationUndefinedType < BrowserActionConfiguration
8423
+
8424
+ attr_reader :name
8425
+
8426
+ def initialize(incoming={})
8427
+ super(:discriminator => 'undefined_type')
8428
+ opts = HttpClient::Helper.symbolize_keys(incoming)
8429
+ @name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
8430
+ end
8431
+
8432
+ def subtype_to_hash
8433
+ raise 'Unable to serialize undefined type to json'
8434
+ end
8435
+
8436
+ def copy(incoming={})
8437
+ raise 'Operation not supported for undefined type'
8438
+ end
8439
+
8440
+ def to_hash
8441
+ raise 'Operation not supported for undefined type'
8442
+ end
8443
+
8444
+ end
8445
+
8422
8446
  class CheckoutTokenForm
8423
8447
 
8424
8448
  module Types
@@ -9095,6 +9119,8 @@ module Io
9095
9119
  EXPERIENCE_UPSERTED = 'experience_upserted' unless defined?(EXPERIENCE_UPSERTED)
9096
9120
  EXPERIENCE_DELETED_V2 = 'experience_deleted_v2' unless defined?(EXPERIENCE_DELETED_V2)
9097
9121
  EXPERIENCE_UPSERTED_V2 = 'experience_upserted_v2' unless defined?(EXPERIENCE_UPSERTED_V2)
9122
+ COUNTRY_STATUS_UPSERTED = 'country_status_upserted' unless defined?(COUNTRY_STATUS_UPSERTED)
9123
+ COUNTRY_STATUS_DELETED = 'country_status_deleted' unless defined?(COUNTRY_STATUS_DELETED)
9098
9124
  EXPERIENCE_PRICE_BOOK_MAPPING_DELETED = 'experience_price_book_mapping_deleted' unless defined?(EXPERIENCE_PRICE_BOOK_MAPPING_DELETED)
9099
9125
  EXPERIENCE_PRICE_BOOK_MAPPING_UPSERTED = 'experience_price_book_mapping_upserted' unless defined?(EXPERIENCE_PRICE_BOOK_MAPPING_UPSERTED)
9100
9126
  EXPERIENCE_LOGISTICS_SETTINGS_UPSERTED = 'experience_logistics_settings_upserted' unless defined?(EXPERIENCE_LOGISTICS_SETTINGS_UPSERTED)
@@ -9209,6 +9235,8 @@ module Io
9209
9235
  RATECARD_DELETED = 'ratecard_deleted' unless defined?(RATECARD_DELETED)
9210
9236
  RETURN_UPSERTED = 'return_upserted' unless defined?(RETURN_UPSERTED)
9211
9237
  RETURN_DELETED = 'return_deleted' unless defined?(RETURN_DELETED)
9238
+ RETURN_UPSERTED_V2 = 'return_upserted_v2' unless defined?(RETURN_UPSERTED_V2)
9239
+ RETURN_DELETED_V2 = 'return_deleted_v2' unless defined?(RETURN_DELETED_V2)
9212
9240
  SHOPIFY_LOCALIZATION_SETTING_UPSERTED = 'shopify_localization_setting_upserted' unless defined?(SHOPIFY_LOCALIZATION_SETTING_UPSERTED)
9213
9241
  SHOPIFY_LOCALIZATION_SETTING_DELETED = 'shopify_localization_setting_deleted' unless defined?(SHOPIFY_LOCALIZATION_SETTING_DELETED)
9214
9242
  TRACKING_LABEL_EVENT_UPSERTED = 'tracking_label_event_upserted' unless defined?(TRACKING_LABEL_EVENT_UPSERTED)
@@ -9223,7 +9251,7 @@ module Io
9223
9251
  end
9224
9252
 
9225
9253
  def subtype_to_hash
9226
- 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, b2b_credit_memo_upserted, b2b_credit_memo_deleted, consumer_invoice_upserted, consumer_invoice_deleted, credit_memo_upserted, credit_memo_deleted, crossdock_shipment_upserted, rate_deleted, rate_upserted, rate_deleted_v3, rate_upserted_v3, customer_upserted, customer_deleted, customer_address_book_contact_upserted, customer_address_book_contact_deleted, email_notification_upserted, email_notification_deleted, 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, order_identifier_upserted_v3, pricing_deleted, pricing_upserted, order_service_change_request, fraud_status_changed, center_upserted, center_deleted, shipping_configuration_upserted, shipping_configuration_deleted, tier_upserted_v2, tier_deleted_v2, shipping_lane_upserted, shipping_lane_deleted, shipping_configuration_item_availability_upserted, shipping_configuration_item_availability_deleted, shipping_configuration_item_shipping_pricing_upserted, shipping_configuration_item_shipping_pricing_deleted, hs6_code_upserted, hs6_code_deleted, hs10_code_upserted, hs10_code_deleted, item_origin_upserted, item_origin_deleted, harmonized_landed_cost_upserted, fully_harmonized_item_upserted, rule_upserted, rule_deleted, snapshot_upserted, snapshot_deleted, label_upserted, label_deleted_v2, label_upserted_v2, 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, order_placed, order_placed_v2, ready_to_fulfill, membership_upserted_v2, membership_deleted_v2, organization_upserted, organization_deleted, organization_upserted_v2, organization_deleted_v2, organization_short_id_upserted, organization_short_id_deleted, organization_default_configurations_upserted, organization_default_configurations_deleted, ecommerce_platform_upserted, ecommerce_platform_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, ratecard_lane_upserted, ratecard_lane_deleted, ratecard_upserted, ratecard_deleted, return_upserted, return_deleted, shopify_localization_setting_upserted, shopify_localization_setting_deleted, tracking_label_event_upserted'
9254
+ 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, b2b_credit_memo_upserted, b2b_credit_memo_deleted, consumer_invoice_upserted, consumer_invoice_deleted, credit_memo_upserted, credit_memo_deleted, crossdock_shipment_upserted, rate_deleted, rate_upserted, rate_deleted_v3, rate_upserted_v3, customer_upserted, customer_deleted, customer_address_book_contact_upserted, customer_address_book_contact_deleted, email_notification_upserted, email_notification_deleted, 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, country_status_upserted, country_status_deleted, 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, order_identifier_upserted_v3, pricing_deleted, pricing_upserted, order_service_change_request, fraud_status_changed, center_upserted, center_deleted, shipping_configuration_upserted, shipping_configuration_deleted, tier_upserted_v2, tier_deleted_v2, shipping_lane_upserted, shipping_lane_deleted, shipping_configuration_item_availability_upserted, shipping_configuration_item_availability_deleted, shipping_configuration_item_shipping_pricing_upserted, shipping_configuration_item_shipping_pricing_deleted, hs6_code_upserted, hs6_code_deleted, hs10_code_upserted, hs10_code_deleted, item_origin_upserted, item_origin_deleted, harmonized_landed_cost_upserted, fully_harmonized_item_upserted, rule_upserted, rule_deleted, snapshot_upserted, snapshot_deleted, label_upserted, label_deleted_v2, label_upserted_v2, 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, order_placed, order_placed_v2, ready_to_fulfill, membership_upserted_v2, membership_deleted_v2, organization_upserted, organization_deleted, organization_upserted_v2, organization_deleted_v2, organization_short_id_upserted, organization_short_id_deleted, organization_default_configurations_upserted, organization_default_configurations_deleted, ecommerce_platform_upserted, ecommerce_platform_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, ratecard_lane_upserted, ratecard_lane_deleted, ratecard_upserted, ratecard_deleted, return_upserted, return_deleted, return_upserted_v2, return_deleted_v2, shopify_localization_setting_upserted, shopify_localization_setting_deleted, tracking_label_event_upserted'
9227
9255
  end
9228
9256
 
9229
9257
  def to_hash
@@ -9282,6 +9310,8 @@ module Io
9282
9310
  when Types::EXPERIENCE_UPSERTED; ExperienceUpserted.new(hash)
9283
9311
  when Types::EXPERIENCE_DELETED_V2; ExperienceDeletedV2.new(hash)
9284
9312
  when Types::EXPERIENCE_UPSERTED_V2; ExperienceUpsertedV2.new(hash)
9313
+ when Types::COUNTRY_STATUS_UPSERTED; CountryStatusUpserted.new(hash)
9314
+ when Types::COUNTRY_STATUS_DELETED; CountryStatusDeleted.new(hash)
9285
9315
  when Types::EXPERIENCE_PRICE_BOOK_MAPPING_DELETED; ExperiencePriceBookMappingDeleted.new(hash)
9286
9316
  when Types::EXPERIENCE_PRICE_BOOK_MAPPING_UPSERTED; ExperiencePriceBookMappingUpserted.new(hash)
9287
9317
  when Types::EXPERIENCE_LOGISTICS_SETTINGS_UPSERTED; ExperienceLogisticsSettingsUpserted.new(hash)
@@ -9393,6 +9423,8 @@ module Io
9393
9423
  when Types::RATECARD_DELETED; RatecardDeleted.new(hash)
9394
9424
  when Types::RETURN_UPSERTED; ReturnUpserted.new(hash)
9395
9425
  when Types::RETURN_DELETED; ReturnDeleted.new(hash)
9426
+ when Types::RETURN_UPSERTED_V2; ReturnUpsertedV2.new(hash)
9427
+ when Types::RETURN_DELETED_V2; ReturnDeletedV2.new(hash)
9396
9428
  when Types::SHOPIFY_LOCALIZATION_SETTING_UPSERTED; ShopifyLocalizationSettingUpserted.new(hash)
9397
9429
  when Types::SHOPIFY_LOCALIZATION_SETTING_DELETED; ShopifyLocalizationSettingDeleted.new(hash)
9398
9430
  when Types::TRACKING_LABEL_EVENT_UPSERTED; TrackingLabelEventUpserted.new(hash)
@@ -10205,6 +10237,68 @@ module Io
10205
10237
 
10206
10238
  end
10207
10239
 
10240
+ # Configurations to support inline payment authentication experiences. Mobile to
10241
+ # be supported at a future date.
10242
+ class InlineActionConfiguration
10243
+
10244
+ module Types
10245
+ BROWSER_INLINE_ACTION_CONFIGURATION = 'browser_inline_action_configuration' unless defined?(BROWSER_INLINE_ACTION_CONFIGURATION)
10246
+ end
10247
+
10248
+ attr_reader :discriminator
10249
+
10250
+ def initialize(incoming={})
10251
+ opts = HttpClient::Helper.symbolize_keys(incoming)
10252
+ HttpClient::Preconditions.require_keys(opts, [:discriminator], 'InlineActionConfiguration')
10253
+ @discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
10254
+ end
10255
+
10256
+ def subtype_to_hash
10257
+ raise 'Cannot serialize an instance of inline_action_configuration directly - must use one of the specific types: browser_inline_action_configuration'
10258
+ end
10259
+
10260
+ def to_hash
10261
+ subtype_to_hash.merge(:discriminator => @discriminator)
10262
+ end
10263
+
10264
+ def InlineActionConfiguration.from_json(hash)
10265
+ HttpClient::Preconditions.assert_class('hash', hash, Hash)
10266
+ discriminator = HttpClient::Helper.symbolize_keys(hash)[:discriminator].to_s.strip
10267
+ if discriminator.empty?
10268
+ raise "Union type[inline_action_configuration] requires a field named 'discriminator'"
10269
+ end
10270
+ case discriminator
10271
+ when Types::BROWSER_INLINE_ACTION_CONFIGURATION; BrowserInlineActionConfiguration.new(hash)
10272
+ else InlineActionConfigurationUndefinedType.new(:discriminator => discriminator)
10273
+ end
10274
+ end
10275
+
10276
+ end
10277
+
10278
+ class InlineActionConfigurationUndefinedType < InlineActionConfiguration
10279
+
10280
+ attr_reader :name
10281
+
10282
+ def initialize(incoming={})
10283
+ super(:discriminator => 'undefined_type')
10284
+ opts = HttpClient::Helper.symbolize_keys(incoming)
10285
+ @name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
10286
+ end
10287
+
10288
+ def subtype_to_hash
10289
+ raise 'Unable to serialize undefined type to json'
10290
+ end
10291
+
10292
+ def copy(incoming={})
10293
+ raise 'Operation not supported for undefined type'
10294
+ end
10295
+
10296
+ def to_hash
10297
+ raise 'Operation not supported for undefined type'
10298
+ end
10299
+
10300
+ end
10301
+
10208
10302
  class InputSpecificationLimitation
10209
10303
 
10210
10304
  module Types
@@ -11665,6 +11759,68 @@ module Io
11665
11759
 
11666
11760
  end
11667
11761
 
11762
+ class ReturnSource
11763
+
11764
+ module Types
11765
+ RETURN_SOURCE_FLOW = 'return_source_flow' unless defined?(RETURN_SOURCE_FLOW)
11766
+ RETURN_SOURCE_EXTERNAL_VENDOR = 'return_source_external_vendor' unless defined?(RETURN_SOURCE_EXTERNAL_VENDOR)
11767
+ end
11768
+
11769
+ attr_reader :discriminator
11770
+
11771
+ def initialize(incoming={})
11772
+ opts = HttpClient::Helper.symbolize_keys(incoming)
11773
+ HttpClient::Preconditions.require_keys(opts, [:discriminator], 'ReturnSource')
11774
+ @discriminator = HttpClient::Preconditions.assert_class('discriminator', opts.delete(:discriminator), String)
11775
+ end
11776
+
11777
+ def subtype_to_hash
11778
+ raise 'Cannot serialize an instance of return_source directly - must use one of the specific types: return_source_flow, return_source_external_vendor'
11779
+ end
11780
+
11781
+ def to_hash
11782
+ subtype_to_hash.merge(:discriminator => @discriminator)
11783
+ end
11784
+
11785
+ def ReturnSource.from_json(hash)
11786
+ HttpClient::Preconditions.assert_class('hash', hash, Hash)
11787
+ discriminator = HttpClient::Helper.symbolize_keys(hash)[:discriminator].to_s.strip
11788
+ if discriminator.empty?
11789
+ raise "Union type[return_source] requires a field named 'discriminator'"
11790
+ end
11791
+ case discriminator
11792
+ when Types::RETURN_SOURCE_FLOW; ReturnSourceFlow.new(hash)
11793
+ when Types::RETURN_SOURCE_EXTERNAL_VENDOR; ReturnSourceExternalVendor.new(hash)
11794
+ else ReturnSourceUndefinedType.new(:discriminator => discriminator)
11795
+ end
11796
+ end
11797
+
11798
+ end
11799
+
11800
+ class ReturnSourceUndefinedType < ReturnSource
11801
+
11802
+ attr_reader :name
11803
+
11804
+ def initialize(incoming={})
11805
+ super(:discriminator => 'undefined_type')
11806
+ opts = HttpClient::Helper.symbolize_keys(incoming)
11807
+ @name = HttpClient::Preconditions.assert_class('name', opts.delete(:discriminator), String)
11808
+ end
11809
+
11810
+ def subtype_to_hash
11811
+ raise 'Unable to serialize undefined type to json'
11812
+ end
11813
+
11814
+ def copy(incoming={})
11815
+ raise 'Operation not supported for undefined type'
11816
+ end
11817
+
11818
+ def to_hash
11819
+ raise 'Operation not supported for undefined type'
11820
+ end
11821
+
11822
+ end
11823
+
11668
11824
  class ServiceFee
11669
11825
 
11670
11826
  module Types
@@ -13015,7 +13171,7 @@ module Io
13015
13171
  end
13016
13172
 
13017
13173
  def AuthorizationDeclineCode.ALL
13018
- @@all ||= [AuthorizationDeclineCode.expired, AuthorizationDeclineCode.invalid_name, AuthorizationDeclineCode.invalid_number, AuthorizationDeclineCode.invalid_expiration, AuthorizationDeclineCode.invalid_address, AuthorizationDeclineCode.invalid_token_type, AuthorizationDeclineCode.invalid_token, AuthorizationDeclineCode.no_account, AuthorizationDeclineCode.avs, AuthorizationDeclineCode.cvv, AuthorizationDeclineCode.fraud, AuthorizationDeclineCode.duplicate, AuthorizationDeclineCode.not_supported, AuthorizationDeclineCode.unknown]
13174
+ @@all ||= [AuthorizationDeclineCode.expired, AuthorizationDeclineCode.invalid_name, AuthorizationDeclineCode.invalid_number, AuthorizationDeclineCode.invalid_expiration, AuthorizationDeclineCode.invalid_address, AuthorizationDeclineCode.invalid_token_type, AuthorizationDeclineCode.invalid_token, AuthorizationDeclineCode.no_account, AuthorizationDeclineCode.avs, AuthorizationDeclineCode.cvv, AuthorizationDeclineCode.fraud, AuthorizationDeclineCode.duplicate, AuthorizationDeclineCode.not_supported, AuthorizationDeclineCode.unknown, AuthorizationDeclineCode.online_payment_error]
13019
13175
  end
13020
13176
 
13021
13177
  # Payment method has expired
@@ -13089,6 +13245,11 @@ module Io
13089
13245
  @@_unknown ||= AuthorizationDeclineCode.new('unknown')
13090
13246
  end
13091
13247
 
13248
+ # Indicates an online payment error
13249
+ def AuthorizationDeclineCode.online_payment_error
13250
+ @@_online_payment_error ||= AuthorizationDeclineCode.new('online_payment_error')
13251
+ end
13252
+
13092
13253
  def to_hash
13093
13254
  value
13094
13255
  end
@@ -13420,6 +13581,48 @@ module Io
13420
13581
 
13421
13582
  end
13422
13583
 
13584
+ class B2bInvoiceType
13585
+
13586
+ attr_reader :value
13587
+
13588
+ def initialize(value)
13589
+ @value = HttpClient::Preconditions.assert_class('value', value, String)
13590
+ end
13591
+
13592
+ # Returns the instance of B2bInvoiceType for this value, creating a new instance for an unknown value
13593
+ def B2bInvoiceType.apply(value)
13594
+ if value.instance_of?(B2bInvoiceType)
13595
+ value
13596
+ else
13597
+ HttpClient::Preconditions.assert_class_or_nil('value', value, String)
13598
+ value.nil? ? nil : (from_string(value) || B2bInvoiceType.new(value))
13599
+ end
13600
+ end
13601
+
13602
+ # Returns the instance of B2bInvoiceType for this value, or nil if not found
13603
+ def B2bInvoiceType.from_string(value)
13604
+ HttpClient::Preconditions.assert_class('value', value, String)
13605
+ B2bInvoiceType.ALL.find { |v| v.value == value }
13606
+ end
13607
+
13608
+ def B2bInvoiceType.ALL
13609
+ @@all ||= [B2bInvoiceType.self_bill_invoice, B2bInvoiceType.invoice]
13610
+ end
13611
+
13612
+ def B2bInvoiceType.self_bill_invoice
13613
+ @@_self_bill_invoice ||= B2bInvoiceType.new('self_bill_invoice')
13614
+ end
13615
+
13616
+ def B2bInvoiceType.invoice
13617
+ @@_invoice ||= B2bInvoiceType.new('invoice')
13618
+ end
13619
+
13620
+ def to_hash
13621
+ value
13622
+ end
13623
+
13624
+ end
13625
+
13423
13626
  class Calendar
13424
13627
 
13425
13628
  attr_reader :value
@@ -15086,7 +15289,7 @@ module Io
15086
15289
  end
15087
15290
 
15088
15291
  def EventType.ALL
15089
- @@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.b2b_credit_memo_upserted, EventType.b2b_credit_memo_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.rate_deleted_v3, EventType.rate_upserted_v3, EventType.customer_upserted, EventType.customer_deleted, EventType.customer_address_book_contact_upserted, EventType.customer_address_book_contact_deleted, EventType.email_notification_upserted, EventType.email_notification_deleted, 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.order_identifier_upserted_v3, EventType.pricing_deleted, EventType.pricing_upserted, EventType.order_service_change_request, EventType.fraud_status_changed, EventType.center_upserted, EventType.center_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.shipping_configuration_item_availability_upserted, EventType.shipping_configuration_item_availability_deleted, EventType.shipping_configuration_item_shipping_pricing_upserted, EventType.shipping_configuration_item_shipping_pricing_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_landed_cost_upserted, EventType.fully_harmonized_item_upserted, EventType.rule_upserted, EventType.rule_deleted, EventType.snapshot_upserted, EventType.snapshot_deleted, EventType.label_upserted, EventType.label_deleted_v2, EventType.label_upserted_v2, 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.order_placed, EventType.order_placed_v2, EventType.ready_to_fulfill, 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.organization_default_configurations_upserted, EventType.organization_default_configurations_deleted, EventType.ecommerce_platform_upserted, EventType.ecommerce_platform_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.ratecard_lane_upserted, EventType.ratecard_lane_deleted, EventType.ratecard_upserted, EventType.ratecard_deleted, EventType.return_upserted, EventType.return_deleted, EventType.shopify_localization_setting_upserted, EventType.shopify_localization_setting_deleted, EventType.tracking_label_event_upserted]
15292
+ @@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.b2b_credit_memo_upserted, EventType.b2b_credit_memo_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.rate_deleted_v3, EventType.rate_upserted_v3, EventType.customer_upserted, EventType.customer_deleted, EventType.customer_address_book_contact_upserted, EventType.customer_address_book_contact_deleted, EventType.email_notification_upserted, EventType.email_notification_deleted, 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.country_status_upserted, EventType.country_status_deleted, 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.order_identifier_upserted_v3, EventType.pricing_deleted, EventType.pricing_upserted, EventType.order_service_change_request, EventType.fraud_status_changed, EventType.center_upserted, EventType.center_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.shipping_configuration_item_availability_upserted, EventType.shipping_configuration_item_availability_deleted, EventType.shipping_configuration_item_shipping_pricing_upserted, EventType.shipping_configuration_item_shipping_pricing_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_landed_cost_upserted, EventType.fully_harmonized_item_upserted, EventType.rule_upserted, EventType.rule_deleted, EventType.snapshot_upserted, EventType.snapshot_deleted, EventType.label_upserted, EventType.label_deleted_v2, EventType.label_upserted_v2, 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.order_placed, EventType.order_placed_v2, EventType.ready_to_fulfill, 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.organization_default_configurations_upserted, EventType.organization_default_configurations_deleted, EventType.ecommerce_platform_upserted, EventType.ecommerce_platform_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.ratecard_lane_upserted, EventType.ratecard_lane_deleted, EventType.ratecard_upserted, EventType.ratecard_deleted, EventType.return_upserted, EventType.return_deleted, EventType.return_upserted_v2, EventType.return_deleted_v2, EventType.shopify_localization_setting_upserted, EventType.shopify_localization_setting_deleted, EventType.tracking_label_event_upserted]
15090
15293
  end
15091
15294
 
15092
15295
  def EventType.attribute_upserted
@@ -15269,6 +15472,14 @@ module Io
15269
15472
  @@_experience_upserted_v2 ||= EventType.new('experience_upserted_v2')
15270
15473
  end
15271
15474
 
15475
+ def EventType.country_status_upserted
15476
+ @@_country_status_upserted ||= EventType.new('country_status_upserted')
15477
+ end
15478
+
15479
+ def EventType.country_status_deleted
15480
+ @@_country_status_deleted ||= EventType.new('country_status_deleted')
15481
+ end
15482
+
15272
15483
  def EventType.experience_price_book_mapping_deleted
15273
15484
  @@_experience_price_book_mapping_deleted ||= EventType.new('experience_price_book_mapping_deleted')
15274
15485
  end
@@ -15713,6 +15924,14 @@ module Io
15713
15924
  @@_return_deleted ||= EventType.new('return_deleted')
15714
15925
  end
15715
15926
 
15927
+ def EventType.return_upserted_v2
15928
+ @@_return_upserted_v2 ||= EventType.new('return_upserted_v2')
15929
+ end
15930
+
15931
+ def EventType.return_deleted_v2
15932
+ @@_return_deleted_v2 ||= EventType.new('return_deleted_v2')
15933
+ end
15934
+
15716
15935
  def EventType.shopify_localization_setting_upserted
15717
15936
  @@_shopify_localization_setting_upserted ||= EventType.new('shopify_localization_setting_upserted')
15718
15937
  end
@@ -15869,6 +16088,48 @@ module Io
15869
16088
 
15870
16089
  end
15871
16090
 
16091
+ class ExperienceCountryStatus
16092
+
16093
+ attr_reader :value
16094
+
16095
+ def initialize(value)
16096
+ @value = HttpClient::Preconditions.assert_class('value', value, String)
16097
+ end
16098
+
16099
+ # Returns the instance of ExperienceCountryStatus for this value, creating a new instance for an unknown value
16100
+ def ExperienceCountryStatus.apply(value)
16101
+ if value.instance_of?(ExperienceCountryStatus)
16102
+ value
16103
+ else
16104
+ HttpClient::Preconditions.assert_class_or_nil('value', value, String)
16105
+ value.nil? ? nil : (from_string(value) || ExperienceCountryStatus.new(value))
16106
+ end
16107
+ end
16108
+
16109
+ # Returns the instance of ExperienceCountryStatus for this value, or nil if not found
16110
+ def ExperienceCountryStatus.from_string(value)
16111
+ HttpClient::Preconditions.assert_class('value', value, String)
16112
+ ExperienceCountryStatus.ALL.find { |v| v.value == value }
16113
+ end
16114
+
16115
+ def ExperienceCountryStatus.ALL
16116
+ @@all ||= [ExperienceCountryStatus.enabled, ExperienceCountryStatus.disabled]
16117
+ end
16118
+
16119
+ def ExperienceCountryStatus.enabled
16120
+ @@_enabled ||= ExperienceCountryStatus.new('enabled')
16121
+ end
16122
+
16123
+ def ExperienceCountryStatus.disabled
16124
+ @@_disabled ||= ExperienceCountryStatus.new('disabled')
16125
+ end
16126
+
16127
+ def to_hash
16128
+ value
16129
+ end
16130
+
16131
+ end
16132
+
15872
16133
  class ExperiencePaymentMethodTag < PaymentMethodTag
15873
16134
 
15874
16135
  attr_reader :value
@@ -19601,6 +19862,112 @@ module Io
19601
19862
 
19602
19863
  end
19603
19864
 
19865
+ class ReturnTrackingStatus
19866
+
19867
+ attr_reader :value
19868
+
19869
+ def initialize(value)
19870
+ @value = HttpClient::Preconditions.assert_class('value', value, String)
19871
+ end
19872
+
19873
+ # Returns the instance of ReturnTrackingStatus for this value, creating a new instance for an unknown value
19874
+ def ReturnTrackingStatus.apply(value)
19875
+ if value.instance_of?(ReturnTrackingStatus)
19876
+ value
19877
+ else
19878
+ HttpClient::Preconditions.assert_class_or_nil('value', value, String)
19879
+ value.nil? ? nil : (from_string(value) || ReturnTrackingStatus.new(value))
19880
+ end
19881
+ end
19882
+
19883
+ # Returns the instance of ReturnTrackingStatus for this value, or nil if not found
19884
+ def ReturnTrackingStatus.from_string(value)
19885
+ HttpClient::Preconditions.assert_class('value', value, String)
19886
+ ReturnTrackingStatus.ALL.find { |v| v.value == value }
19887
+ end
19888
+
19889
+ def ReturnTrackingStatus.ALL
19890
+ @@all ||= [ReturnTrackingStatus.awaiting_customs_clearance, ReturnTrackingStatus.cancel_requested, ReturnTrackingStatus.canceled, ReturnTrackingStatus.collection_attempt_failed, ReturnTrackingStatus.customs_clearance_completed, ReturnTrackingStatus.delivered_to_retailer, ReturnTrackingStatus.in_transit_to_local_hub, ReturnTrackingStatus.in_transit_to_retailer, ReturnTrackingStatus.parcel_added_to_pallet, ReturnTrackingStatus.parcel_delayed, ReturnTrackingStatus.parcel_extracted_from_pallet, ReturnTrackingStatus.parcel_lost, ReturnTrackingStatus.parcel_processed_by_retailer, ReturnTrackingStatus.parcel_under_investigation, ReturnTrackingStatus.processed_by_local_hub, ReturnTrackingStatus.received_at_local_hub, ReturnTrackingStatus.received_by_the_carrier, ReturnTrackingStatus.return_registered_online]
19891
+ end
19892
+
19893
+ def ReturnTrackingStatus.awaiting_customs_clearance
19894
+ @@_awaiting_customs_clearance ||= ReturnTrackingStatus.new('awaiting_customs_clearance')
19895
+ end
19896
+
19897
+ def ReturnTrackingStatus.cancel_requested
19898
+ @@_cancel_requested ||= ReturnTrackingStatus.new('cancel_requested')
19899
+ end
19900
+
19901
+ def ReturnTrackingStatus.canceled
19902
+ @@_canceled ||= ReturnTrackingStatus.new('canceled')
19903
+ end
19904
+
19905
+ def ReturnTrackingStatus.collection_attempt_failed
19906
+ @@_collection_attempt_failed ||= ReturnTrackingStatus.new('collection_attempt_failed')
19907
+ end
19908
+
19909
+ def ReturnTrackingStatus.customs_clearance_completed
19910
+ @@_customs_clearance_completed ||= ReturnTrackingStatus.new('customs_clearance_completed')
19911
+ end
19912
+
19913
+ def ReturnTrackingStatus.delivered_to_retailer
19914
+ @@_delivered_to_retailer ||= ReturnTrackingStatus.new('delivered_to_retailer')
19915
+ end
19916
+
19917
+ def ReturnTrackingStatus.in_transit_to_local_hub
19918
+ @@_in_transit_to_local_hub ||= ReturnTrackingStatus.new('in_transit_to_local_hub')
19919
+ end
19920
+
19921
+ def ReturnTrackingStatus.in_transit_to_retailer
19922
+ @@_in_transit_to_retailer ||= ReturnTrackingStatus.new('in_transit_to_retailer')
19923
+ end
19924
+
19925
+ def ReturnTrackingStatus.parcel_added_to_pallet
19926
+ @@_parcel_added_to_pallet ||= ReturnTrackingStatus.new('parcel_added_to_pallet')
19927
+ end
19928
+
19929
+ def ReturnTrackingStatus.parcel_delayed
19930
+ @@_parcel_delayed ||= ReturnTrackingStatus.new('parcel_delayed')
19931
+ end
19932
+
19933
+ def ReturnTrackingStatus.parcel_extracted_from_pallet
19934
+ @@_parcel_extracted_from_pallet ||= ReturnTrackingStatus.new('parcel_extracted_from_pallet')
19935
+ end
19936
+
19937
+ def ReturnTrackingStatus.parcel_lost
19938
+ @@_parcel_lost ||= ReturnTrackingStatus.new('parcel_lost')
19939
+ end
19940
+
19941
+ def ReturnTrackingStatus.parcel_processed_by_retailer
19942
+ @@_parcel_processed_by_retailer ||= ReturnTrackingStatus.new('parcel_processed_by_retailer')
19943
+ end
19944
+
19945
+ def ReturnTrackingStatus.parcel_under_investigation
19946
+ @@_parcel_under_investigation ||= ReturnTrackingStatus.new('parcel_under_investigation')
19947
+ end
19948
+
19949
+ def ReturnTrackingStatus.processed_by_local_hub
19950
+ @@_processed_by_local_hub ||= ReturnTrackingStatus.new('processed_by_local_hub')
19951
+ end
19952
+
19953
+ def ReturnTrackingStatus.received_at_local_hub
19954
+ @@_received_at_local_hub ||= ReturnTrackingStatus.new('received_at_local_hub')
19955
+ end
19956
+
19957
+ def ReturnTrackingStatus.received_by_the_carrier
19958
+ @@_received_by_the_carrier ||= ReturnTrackingStatus.new('received_by_the_carrier')
19959
+ end
19960
+
19961
+ def ReturnTrackingStatus.return_registered_online
19962
+ @@_return_registered_online ||= ReturnTrackingStatus.new('return_registered_online')
19963
+ end
19964
+
19965
+ def to_hash
19966
+ value
19967
+ end
19968
+
19969
+ end
19970
+
19604
19971
  class ReversalErrorCode
19605
19972
 
19606
19973
  attr_reader :value
@@ -23755,7 +24122,7 @@ module Io
23755
24122
  # our clients
23756
24123
  class B2bCreditMemo
23757
24124
 
23758
- attr_reader :id, :number, :buyer, :seller, :status, :date, :key, :invoice, :lines, :documents, :attributes
24125
+ attr_reader :id, :number, :buyer, :seller, :status, :date, :key, :invoice, :lines, :documents, :attributes, :b2b_invoice_type
23759
24126
 
23760
24127
  def initialize(incoming={})
23761
24128
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -23771,6 +24138,7 @@ module Io
23771
24138
  @lines = HttpClient::Preconditions.assert_class('lines', opts.delete(:lines), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ConsumerInvoiceLine) ? x : ::Io::Flow::V0::Models::ConsumerInvoiceLine.from_json(x)) }
23772
24139
  @documents = HttpClient::Preconditions.assert_class('documents', opts.delete(:documents), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ConsumerInvoiceDocument) ? x : ::Io::Flow::V0::Models::ConsumerInvoiceDocument.new(x)) }
23773
24140
  @attributes = HttpClient::Preconditions.assert_class('attributes', opts.delete(:attributes), Hash).inject({}) { |h, d| h[d[0]] = HttpClient::Preconditions.assert_class('attributes', d[1], String); h }
24141
+ @b2b_invoice_type = (x = (x = opts.delete(:b2b_invoice_type); x.nil? ? "self_bill_invoice" : x); x.is_a?(::Io::Flow::V0::Models::B2bInvoiceType) ? x : ::Io::Flow::V0::Models::B2bInvoiceType.apply(x))
23774
24142
  end
23775
24143
 
23776
24144
  def to_json
@@ -23793,7 +24161,8 @@ module Io
23793
24161
  :invoice => invoice.to_hash,
23794
24162
  :lines => lines.map { |o| o.to_hash },
23795
24163
  :documents => documents.map { |o| o.to_hash },
23796
- :attributes => attributes
24164
+ :attributes => attributes,
24165
+ :b2b_invoice_type => b2b_invoice_type.value
23797
24166
  }
23798
24167
  end
23799
24168
 
@@ -23869,7 +24238,7 @@ module Io
23869
24238
  # (e.g. Flow purchasing inventory to resell to a consumer).
23870
24239
  class B2bInvoice
23871
24240
 
23872
- attr_reader :id, :number, :buyer, :seller, :status, :date, :key, :order, :economic_title_location, :center, :destination, :tax, :lines, :documents, :attributes, :estimated_delivery_date
24241
+ attr_reader :id, :number, :buyer, :seller, :status, :date, :key, :order, :economic_title_location, :center, :destination, :tax, :lines, :documents, :attributes, :estimated_delivery_date, :b2b_invoice_type
23873
24242
 
23874
24243
  def initialize(incoming={})
23875
24244
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -23890,6 +24259,7 @@ module Io
23890
24259
  @documents = HttpClient::Preconditions.assert_class('documents', opts.delete(:documents), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ConsumerInvoiceDocument) ? x : ::Io::Flow::V0::Models::ConsumerInvoiceDocument.new(x)) }
23891
24260
  @attributes = HttpClient::Preconditions.assert_class('attributes', opts.delete(:attributes), Hash).inject({}) { |h, d| h[d[0]] = HttpClient::Preconditions.assert_class('attributes', d[1], String); h }
23892
24261
  @estimated_delivery_date = (x = opts.delete(:estimated_delivery_date); x.nil? ? nil : HttpClient::Preconditions.assert_class('estimated_delivery_date', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
24262
+ @b2b_invoice_type = (x = (x = opts.delete(:b2b_invoice_type); x.nil? ? "self_bill_invoice" : x); x.is_a?(::Io::Flow::V0::Models::B2bInvoiceType) ? x : ::Io::Flow::V0::Models::B2bInvoiceType.apply(x))
23893
24263
  end
23894
24264
 
23895
24265
  def to_json
@@ -23917,7 +24287,8 @@ module Io
23917
24287
  :lines => lines.map { |o| o.to_hash },
23918
24288
  :documents => documents.map { |o| o.to_hash },
23919
24289
  :attributes => attributes,
23920
- :estimated_delivery_date => estimated_delivery_date
24290
+ :estimated_delivery_date => estimated_delivery_date,
24291
+ :b2b_invoice_type => b2b_invoice_type.value
23921
24292
  }
23922
24293
  end
23923
24294
 
@@ -24225,6 +24596,37 @@ module Io
24225
24596
 
24226
24597
  end
24227
24598
 
24599
+ # Information to be passed to the payment processor about how to handle browser
24600
+ # inline authorization activities.
24601
+ class BrowserInlineActionConfiguration < InlineActionConfiguration
24602
+
24603
+ attr_reader :inline_notification_urls, :action_configuration
24604
+
24605
+ def initialize(incoming={})
24606
+ super(:discriminator => InlineActionConfiguration::Types::BROWSER_INLINE_ACTION_CONFIGURATION)
24607
+ opts = HttpClient::Helper.symbolize_keys(incoming)
24608
+ HttpClient::Preconditions.require_keys(opts, [:inline_notification_urls], 'BrowserInlineActionConfiguration')
24609
+ @inline_notification_urls = (x = opts.delete(:inline_notification_urls); x.is_a?(::Io::Flow::V0::Models::PostPaymentRedirectUrls) ? x : ::Io::Flow::V0::Models::PostPaymentRedirectUrls.new(x))
24610
+ @action_configuration = (x = opts.delete(:action_configuration); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::BrowserActionConfiguration) ? x : ::Io::Flow::V0::Models::BrowserActionConfiguration.from_json(x)))
24611
+ end
24612
+
24613
+ def to_json
24614
+ JSON.dump(to_hash)
24615
+ end
24616
+
24617
+ def copy(incoming={})
24618
+ BrowserInlineActionConfiguration.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
24619
+ end
24620
+
24621
+ def subtype_to_hash
24622
+ {
24623
+ :inline_notification_urls => inline_notification_urls.to_hash,
24624
+ :action_configuration => action_configuration.nil? ? nil : action_configuration.to_hash
24625
+ }
24626
+ end
24627
+
24628
+ end
24629
+
24228
24630
  # Capture actually transfers funds. You can capture as many times as you'd like
24229
24631
  # up until the total amount of the authorization has been captured or the
24230
24632
  # authorization otherwise becomes unavailable (e.g. expires).
@@ -24751,6 +25153,33 @@ module Io
24751
25153
 
24752
25154
  end
24753
25155
 
25156
+ # Instructions to the card issuer to render challenges to the user
25157
+ class CardBrowserActionConfiguration < BrowserActionConfiguration
25158
+
25159
+ attr_reader :viewport
25160
+
25161
+ def initialize(incoming={})
25162
+ super(:discriminator => BrowserActionConfiguration::Types::CARD_BROWSER_ACTION_CONFIGURATION)
25163
+ opts = HttpClient::Helper.symbolize_keys(incoming)
25164
+ @viewport = (x = (x = opts.delete(:viewport); x.nil? ? "xxx_small" : x); x.is_a?(::Io::Flow::V0::Models::ThreedsTwoChallengeViewport) ? x : ::Io::Flow::V0::Models::ThreedsTwoChallengeViewport.apply(x))
25165
+ end
25166
+
25167
+ def to_json
25168
+ JSON.dump(to_hash)
25169
+ end
25170
+
25171
+ def copy(incoming={})
25172
+ CardBrowserActionConfiguration.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
25173
+ end
25174
+
25175
+ def subtype_to_hash
25176
+ {
25177
+ :viewport => viewport.value
25178
+ }
25179
+ end
25180
+
25181
+ end
25182
+
24754
25183
  class CardDeleted < Event
24755
25184
 
24756
25185
  attr_reader :event_id, :timestamp, :organization, :id
@@ -24987,7 +25416,7 @@ module Io
24987
25416
  # Creates an authorization for a transaction from a card payment source.
24988
25417
  class CardPaymentSourceAuthorizationForm < AuthorizationForm
24989
25418
 
24990
- attr_reader :key, :card_payment_source_id, :order_number, :amount, :currency, :browser_info, :action_configuration
25419
+ attr_reader :key, :card_payment_source_id, :order_number, :amount, :currency, :browser_info, :inline_action_configuration
24991
25420
 
24992
25421
  def initialize(incoming={})
24993
25422
  super(:discriminator => AuthorizationForm::Types::CARD_PAYMENT_SOURCE_AUTHORIZATION_FORM)
@@ -24999,7 +25428,7 @@ module Io
24999
25428
  @amount = HttpClient::Preconditions.assert_class('amount', HttpClient::Helper.to_big_decimal(opts.delete(:amount)), BigDecimal)
25000
25429
  @currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
25001
25430
  @browser_info = (x = opts.delete(:browser_info); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::BrowserInfo) ? x : ::Io::Flow::V0::Models::BrowserInfo.new(x)))
25002
- @action_configuration = (x = opts.delete(:action_configuration); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ActionConfiguration) ? x : ::Io::Flow::V0::Models::ActionConfiguration.from_json(x)))
25431
+ @inline_action_configuration = (x = opts.delete(:inline_action_configuration); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::InlineActionConfiguration) ? x : ::Io::Flow::V0::Models::InlineActionConfiguration.from_json(x)))
25003
25432
  end
25004
25433
 
25005
25434
  def to_json
@@ -25018,7 +25447,7 @@ module Io
25018
25447
  :amount => amount.to_f.to_s,
25019
25448
  :currency => currency,
25020
25449
  :browser_info => browser_info.nil? ? nil : browser_info.to_hash,
25021
- :action_configuration => action_configuration.nil? ? nil : action_configuration.to_hash
25450
+ :inline_action_configuration => inline_action_configuration.nil? ? nil : inline_action_configuration.to_hash
25022
25451
  }
25023
25452
  end
25024
25453
 
@@ -27561,6 +27990,128 @@ module Io
27561
27990
 
27562
27991
  end
27563
27992
 
27993
+ class CountryStatus
27994
+
27995
+ attr_reader :id, :country, :status
27996
+
27997
+ def initialize(incoming={})
27998
+ opts = HttpClient::Helper.symbolize_keys(incoming)
27999
+ HttpClient::Preconditions.require_keys(opts, [:id, :country, :status], 'CountryStatus')
28000
+ @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
28001
+ @country = HttpClient::Preconditions.assert_class('country', opts.delete(:country), String)
28002
+ @status = (x = opts.delete(:status); x.is_a?(::Io::Flow::V0::Models::ExperienceCountryStatus) ? x : ::Io::Flow::V0::Models::ExperienceCountryStatus.apply(x))
28003
+ end
28004
+
28005
+ def to_json
28006
+ JSON.dump(to_hash)
28007
+ end
28008
+
28009
+ def copy(incoming={})
28010
+ CountryStatus.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
28011
+ end
28012
+
28013
+ def to_hash
28014
+ {
28015
+ :id => id,
28016
+ :country => country,
28017
+ :status => status.value
28018
+ }
28019
+ end
28020
+
28021
+ end
28022
+
28023
+ class CountryStatusDeleted < Event
28024
+
28025
+ attr_reader :event_id, :timestamp, :organization, :country_status
28026
+
28027
+ def initialize(incoming={})
28028
+ super(:discriminator => Event::Types::COUNTRY_STATUS_DELETED)
28029
+ opts = HttpClient::Helper.symbolize_keys(incoming)
28030
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :country_status], 'CountryStatusDeleted')
28031
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
28032
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
28033
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
28034
+ @country_status = (x = opts.delete(:country_status); x.is_a?(::Io::Flow::V0::Models::CountryStatus) ? x : ::Io::Flow::V0::Models::CountryStatus.new(x))
28035
+ end
28036
+
28037
+ def to_json
28038
+ JSON.dump(to_hash)
28039
+ end
28040
+
28041
+ def copy(incoming={})
28042
+ CountryStatusDeleted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
28043
+ end
28044
+
28045
+ def subtype_to_hash
28046
+ {
28047
+ :event_id => event_id,
28048
+ :timestamp => timestamp,
28049
+ :organization => organization,
28050
+ :country_status => country_status.to_hash
28051
+ }
28052
+ end
28053
+
28054
+ end
28055
+
28056
+ class CountryStatusForm
28057
+
28058
+ attr_reader :status
28059
+
28060
+ def initialize(incoming={})
28061
+ opts = HttpClient::Helper.symbolize_keys(incoming)
28062
+ HttpClient::Preconditions.require_keys(opts, [:status], 'CountryStatusForm')
28063
+ @status = (x = opts.delete(:status); x.is_a?(::Io::Flow::V0::Models::ExperienceCountryStatus) ? x : ::Io::Flow::V0::Models::ExperienceCountryStatus.apply(x))
28064
+ end
28065
+
28066
+ def to_json
28067
+ JSON.dump(to_hash)
28068
+ end
28069
+
28070
+ def copy(incoming={})
28071
+ CountryStatusForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
28072
+ end
28073
+
28074
+ def to_hash
28075
+ {
28076
+ :status => status.value
28077
+ }
28078
+ end
28079
+
28080
+ end
28081
+
28082
+ class CountryStatusUpserted < Event
28083
+
28084
+ attr_reader :event_id, :timestamp, :organization, :country_status
28085
+
28086
+ def initialize(incoming={})
28087
+ super(:discriminator => Event::Types::COUNTRY_STATUS_UPSERTED)
28088
+ opts = HttpClient::Helper.symbolize_keys(incoming)
28089
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :country_status], 'CountryStatusUpserted')
28090
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
28091
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
28092
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
28093
+ @country_status = (x = opts.delete(:country_status); x.is_a?(::Io::Flow::V0::Models::CountryStatus) ? x : ::Io::Flow::V0::Models::CountryStatus.new(x))
28094
+ end
28095
+
28096
+ def to_json
28097
+ JSON.dump(to_hash)
28098
+ end
28099
+
28100
+ def copy(incoming={})
28101
+ CountryStatusUpserted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
28102
+ end
28103
+
28104
+ def subtype_to_hash
28105
+ {
28106
+ :event_id => event_id,
28107
+ :timestamp => timestamp,
28108
+ :organization => organization,
28109
+ :country_status => country_status.to_hash
28110
+ }
28111
+ end
28112
+
28113
+ end
28114
+
27564
28115
  # The credit memo represents the details of a refund and the reasons for the
27565
28116
  # issuance of the refund.
27566
28117
  class CreditMemo
@@ -29894,7 +30445,7 @@ module Io
29894
30445
  # you can capture up to the amount of the authorization.
29895
30446
  class DirectAuthorizationForm < AuthorizationForm
29896
30447
 
29897
- attr_reader :token, :amount, :currency, :customer, :key, :cvv, :attributes, :destination, :billing_address, :ip, :options, :redirect_urls, :browser_info, :action_configuration
30448
+ attr_reader :token, :amount, :currency, :customer, :key, :cvv, :attributes, :destination, :billing_address, :ip, :options, :redirect_urls, :browser_info, :inline_action_configuration
29898
30449
 
29899
30450
  def initialize(incoming={})
29900
30451
  super(:discriminator => AuthorizationForm::Types::DIRECT_AUTHORIZATION_FORM)
@@ -29913,7 +30464,7 @@ module Io
29913
30464
  @options = (x = opts.delete(:options); x.nil? ? nil : HttpClient::Preconditions.assert_class('options', x, Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::AuthorizationOption) ? x : ::Io::Flow::V0::Models::AuthorizationOption.apply(x)) })
29914
30465
  @redirect_urls = (x = opts.delete(:redirect_urls); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::PostPaymentRedirectUrls) ? x : ::Io::Flow::V0::Models::PostPaymentRedirectUrls.new(x)))
29915
30466
  @browser_info = (x = opts.delete(:browser_info); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::BrowserInfo) ? x : ::Io::Flow::V0::Models::BrowserInfo.new(x)))
29916
- @action_configuration = (x = opts.delete(:action_configuration); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ActionConfiguration) ? x : ::Io::Flow::V0::Models::ActionConfiguration.from_json(x)))
30467
+ @inline_action_configuration = (x = opts.delete(:inline_action_configuration); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::InlineActionConfiguration) ? x : ::Io::Flow::V0::Models::InlineActionConfiguration.from_json(x)))
29917
30468
  end
29918
30469
 
29919
30470
  def to_json
@@ -29939,7 +30490,7 @@ module Io
29939
30490
  :options => options.nil? ? nil : options.map { |o| o.value },
29940
30491
  :redirect_urls => redirect_urls.nil? ? nil : redirect_urls.to_hash,
29941
30492
  :browser_info => browser_info.nil? ? nil : browser_info.to_hash,
29942
- :action_configuration => action_configuration.nil? ? nil : action_configuration.to_hash
30493
+ :inline_action_configuration => inline_action_configuration.nil? ? nil : inline_action_configuration.to_hash
29943
30494
  }
29944
30495
  end
29945
30496
 
@@ -37711,6 +38262,39 @@ module Io
37711
38262
 
37712
38263
  end
37713
38264
 
38265
+ # Localized item attribute pricing information
38266
+ class LocalItemAttributePricing
38267
+
38268
+ attr_reader :pretax_price, :vat, :duty, :price
38269
+
38270
+ def initialize(incoming={})
38271
+ opts = HttpClient::Helper.symbolize_keys(incoming)
38272
+ HttpClient::Preconditions.require_keys(opts, [:pretax_price, :price], 'LocalItemAttributePricing')
38273
+ @pretax_price = (x = opts.delete(:pretax_price); x.is_a?(::Io::Flow::V0::Models::PriceWithBase) ? x : ::Io::Flow::V0::Models::PriceWithBase.new(x))
38274
+ @vat = (x = opts.delete(:vat); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::LocalizedItemVat) ? x : ::Io::Flow::V0::Models::LocalizedItemVat.new(x)))
38275
+ @duty = (x = opts.delete(:duty); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::LocalizedItemDuty) ? x : ::Io::Flow::V0::Models::LocalizedItemDuty.new(x)))
38276
+ @price = (x = opts.delete(:price); x.is_a?(::Io::Flow::V0::Models::LocalizedItemPrice) ? x : ::Io::Flow::V0::Models::LocalizedItemPrice.new(x))
38277
+ end
38278
+
38279
+ def to_json
38280
+ JSON.dump(to_hash)
38281
+ end
38282
+
38283
+ def copy(incoming={})
38284
+ LocalItemAttributePricing.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
38285
+ end
38286
+
38287
+ def to_hash
38288
+ {
38289
+ :pretax_price => pretax_price.to_hash,
38290
+ :vat => vat.nil? ? nil : vat.to_hash,
38291
+ :duty => duty.nil? ? nil : duty.to_hash,
38292
+ :price => price.to_hash
38293
+ }
38294
+ end
38295
+
38296
+ end
38297
+
37714
38298
  class LocalItemDeleted < Event
37715
38299
 
37716
38300
  attr_reader :event_id, :timestamp, :organization, :local_item
@@ -37747,7 +38331,7 @@ module Io
37747
38331
  # Localized item pricing information
37748
38332
  class LocalItemPricing
37749
38333
 
37750
- attr_reader :price, :vat, :duty, :attributes
38334
+ attr_reader :price, :vat, :duty, :attributes, :price_attributes
37751
38335
 
37752
38336
  def initialize(incoming={})
37753
38337
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -37756,6 +38340,7 @@ module Io
37756
38340
  @vat = (x = opts.delete(:vat); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::LocalizedItemVat) ? x : ::Io::Flow::V0::Models::LocalizedItemVat.new(x)))
37757
38341
  @duty = (x = opts.delete(:duty); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::LocalizedItemDuty) ? x : ::Io::Flow::V0::Models::LocalizedItemDuty.new(x)))
37758
38342
  @attributes = HttpClient::Preconditions.assert_class('attributes', opts.delete(: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 }
38343
+ @price_attributes = (x = opts.delete(:price_attributes); x.nil? ? nil : HttpClient::Preconditions.assert_class('price_attributes', x, Hash).inject({}) { |h, d| h[d[0]] = (x = d[1]; x.is_a?(::Io::Flow::V0::Models::LocalItemAttributePricing) ? x : ::Io::Flow::V0::Models::LocalItemAttributePricing.new(x)); h })
37759
38344
  end
37760
38345
 
37761
38346
  def to_json
@@ -37771,7 +38356,8 @@ module Io
37771
38356
  :price => price.to_hash,
37772
38357
  :vat => vat.nil? ? nil : vat.to_hash,
37773
38358
  :duty => duty.nil? ? nil : duty.to_hash,
37774
- :attributes => attributes.inject({}) { |hash, o| hash[o[0]] = o[1].nil? ? nil : o[1].to_hash; hash }
38359
+ :attributes => attributes.inject({}) { |hash, o| hash[o[0]] = o[1].nil? ? nil : o[1].to_hash; hash },
38360
+ :price_attributes => price_attributes.nil? ? nil : price_attributes.inject({}) { |hash, o| hash[o[0]] = o[1].nil? ? nil : o[1].to_hash; hash }
37775
38361
  }
37776
38362
  end
37777
38363
 
@@ -38942,7 +39528,7 @@ module Io
38942
39528
  # you can capture up to the amount of the authorization
38943
39529
  class MerchantOfRecordAuthorizationForm < AuthorizationForm
38944
39530
 
38945
- attr_reader :token, :order_number, :amount, :currency, :key, :cvv, :attributes, :ip, :options, :redirect_urls, :browser_info, :action_configuration
39531
+ attr_reader :token, :order_number, :amount, :currency, :key, :cvv, :attributes, :ip, :options, :redirect_urls, :browser_info, :inline_action_configuration
38946
39532
 
38947
39533
  def initialize(incoming={})
38948
39534
  super(:discriminator => AuthorizationForm::Types::MERCHANT_OF_RECORD_AUTHORIZATION_FORM)
@@ -38959,7 +39545,7 @@ module Io
38959
39545
  @options = (x = opts.delete(:options); x.nil? ? nil : HttpClient::Preconditions.assert_class('options', x, Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::AuthorizationOption) ? x : ::Io::Flow::V0::Models::AuthorizationOption.apply(x)) })
38960
39546
  @redirect_urls = (x = opts.delete(:redirect_urls); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::PostPaymentRedirectUrls) ? x : ::Io::Flow::V0::Models::PostPaymentRedirectUrls.new(x)))
38961
39547
  @browser_info = (x = opts.delete(:browser_info); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::BrowserInfo) ? x : ::Io::Flow::V0::Models::BrowserInfo.new(x)))
38962
- @action_configuration = (x = opts.delete(:action_configuration); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ActionConfiguration) ? x : ::Io::Flow::V0::Models::ActionConfiguration.from_json(x)))
39548
+ @inline_action_configuration = (x = opts.delete(:inline_action_configuration); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::InlineActionConfiguration) ? x : ::Io::Flow::V0::Models::InlineActionConfiguration.from_json(x)))
38963
39549
  end
38964
39550
 
38965
39551
  def to_json
@@ -38983,7 +39569,7 @@ module Io
38983
39569
  :options => options.nil? ? nil : options.map { |o| o.value },
38984
39570
  :redirect_urls => redirect_urls.nil? ? nil : redirect_urls.to_hash,
38985
39571
  :browser_info => browser_info.nil? ? nil : browser_info.to_hash,
38986
- :action_configuration => action_configuration.nil? ? nil : action_configuration.to_hash
39572
+ :inline_action_configuration => inline_action_configuration.nil? ? nil : inline_action_configuration.to_hash
38987
39573
  }
38988
39574
  end
38989
39575
 
@@ -42680,13 +43266,14 @@ module Io
42680
43266
 
42681
43267
  class OrganizationSummary
42682
43268
 
42683
- attr_reader :id, :name
43269
+ attr_reader :id, :name, :environment
42684
43270
 
42685
43271
  def initialize(incoming={})
42686
43272
  opts = HttpClient::Helper.symbolize_keys(incoming)
42687
- HttpClient::Preconditions.require_keys(opts, [:id, :name], 'OrganizationSummary')
43273
+ HttpClient::Preconditions.require_keys(opts, [:id, :name, :environment], 'OrganizationSummary')
42688
43274
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
42689
43275
  @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
43276
+ @environment = (x = opts.delete(:environment); x.is_a?(::Io::Flow::V0::Models::Environment) ? x : ::Io::Flow::V0::Models::Environment.apply(x))
42690
43277
  end
42691
43278
 
42692
43279
  def to_json
@@ -42700,7 +43287,8 @@ module Io
42700
43287
  def to_hash
42701
43288
  {
42702
43289
  :id => id,
42703
- :name => name
43290
+ :name => name,
43291
+ :environment => environment.value
42704
43292
  }
42705
43293
  end
42706
43294
 
@@ -47988,15 +48576,23 @@ module Io
47988
48576
 
47989
48577
  class Return
47990
48578
 
47991
- attr_reader :id, :key, :items, :labels
48579
+ attr_reader :id, :key, :order, :service, :items, :labels, :origin, :destination, :source, :tracking_status, :tracking_status_timestamp, :carrier_tracking_number
47992
48580
 
47993
48581
  def initialize(incoming={})
47994
48582
  opts = HttpClient::Helper.symbolize_keys(incoming)
47995
- HttpClient::Preconditions.require_keys(opts, [:id, :key, :items, :labels], 'Return')
48583
+ HttpClient::Preconditions.require_keys(opts, [:id, :key, :service, :items, :origin, :destination, :source], 'Return')
47996
48584
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
47997
48585
  @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
48586
+ @order = (x = opts.delete(:order); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ReturnOrderReference) ? x : ::Io::Flow::V0::Models::ReturnOrderReference.new(x)))
48587
+ @service = (x = opts.delete(:service); x.is_a?(::Io::Flow::V0::Models::ServiceSummary) ? x : ::Io::Flow::V0::Models::ServiceSummary.new(x))
47998
48588
  @items = HttpClient::Preconditions.assert_class('items', opts.delete(:items), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ReturnLineItem) ? x : ::Io::Flow::V0::Models::ReturnLineItem.new(x)) }
47999
- @labels = HttpClient::Preconditions.assert_class('labels', opts.delete(:labels), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ShippingLabel) ? x : ::Io::Flow::V0::Models::ShippingLabel.new(x)) }
48589
+ @labels = (x = opts.delete(:labels); x.nil? ? nil : HttpClient::Preconditions.assert_class('labels', x, Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ShippingLabel) ? x : ::Io::Flow::V0::Models::ShippingLabel.new(x)) })
48590
+ @origin = (x = opts.delete(:origin); x.is_a?(::Io::Flow::V0::Models::ShippingAddress) ? x : ::Io::Flow::V0::Models::ShippingAddress.new(x))
48591
+ @destination = (x = opts.delete(:destination); x.is_a?(::Io::Flow::V0::Models::ShippingAddress) ? x : ::Io::Flow::V0::Models::ShippingAddress.new(x))
48592
+ @source = (x = opts.delete(:source); x.is_a?(::Io::Flow::V0::Models::ReturnSource) ? x : ::Io::Flow::V0::Models::ReturnSource.from_json(x))
48593
+ @tracking_status = (x = opts.delete(:tracking_status); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ReturnTrackingStatus) ? x : ::Io::Flow::V0::Models::ReturnTrackingStatus.apply(x)))
48594
+ @tracking_status_timestamp = (x = opts.delete(:tracking_status_timestamp); x.nil? ? nil : HttpClient::Preconditions.assert_class('tracking_status_timestamp', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
48595
+ @carrier_tracking_number = (x = opts.delete(:carrier_tracking_number); x.nil? ? nil : HttpClient::Preconditions.assert_class('carrier_tracking_number', x, String))
48000
48596
  end
48001
48597
 
48002
48598
  def to_json
@@ -48011,8 +48607,16 @@ module Io
48011
48607
  {
48012
48608
  :id => id,
48013
48609
  :key => key,
48610
+ :order => order.nil? ? nil : order.to_hash,
48611
+ :service => service.to_hash,
48014
48612
  :items => items.map { |o| o.to_hash },
48015
- :labels => labels.map { |o| o.to_hash }
48613
+ :labels => labels.nil? ? nil : labels.map { |o| o.to_hash },
48614
+ :origin => origin.to_hash,
48615
+ :destination => destination.to_hash,
48616
+ :source => source.to_hash,
48617
+ :tracking_status => tracking_status.nil? ? nil : tracking_status.value,
48618
+ :tracking_status_timestamp => tracking_status_timestamp,
48619
+ :carrier_tracking_number => carrier_tracking_number
48016
48620
  }
48017
48621
  end
48018
48622
 
@@ -48049,9 +48653,42 @@ module Io
48049
48653
 
48050
48654
  end
48051
48655
 
48656
+ class ReturnDeletedV2 < Event
48657
+
48658
+ attr_reader :event_id, :timestamp, :organization, :return_
48659
+
48660
+ def initialize(incoming={})
48661
+ super(:discriminator => Event::Types::RETURN_DELETED_V2)
48662
+ opts = HttpClient::Helper.symbolize_keys(incoming)
48663
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :return_], 'ReturnDeletedV2')
48664
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
48665
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
48666
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
48667
+ @return_ = (x = opts.delete(:return); x.is_a?(::Io::Flow::V0::Models::Return) ? x : ::Io::Flow::V0::Models::Return.new(x))
48668
+ end
48669
+
48670
+ def to_json
48671
+ JSON.dump(to_hash)
48672
+ end
48673
+
48674
+ def copy(incoming={})
48675
+ ReturnDeletedV2.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
48676
+ end
48677
+
48678
+ def subtype_to_hash
48679
+ {
48680
+ :event_id => event_id,
48681
+ :timestamp => timestamp,
48682
+ :organization => organization,
48683
+ :return => return_.to_hash
48684
+ }
48685
+ end
48686
+
48687
+ end
48688
+
48052
48689
  class ReturnForm
48053
48690
 
48054
- attr_reader :items, :tier_id, :order_number, :service, :destination, :key, :origin, :center_key
48691
+ attr_reader :items, :tier_id, :order_number, :service, :destination, :key, :origin, :center_key, :source, :tracking_status, :tracking_status_timestamp, :carrier_tracking_number
48055
48692
 
48056
48693
  def initialize(incoming={})
48057
48694
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -48064,6 +48701,10 @@ module Io
48064
48701
  @key = (x = opts.delete(:key); x.nil? ? nil : HttpClient::Preconditions.assert_class('key', x, String))
48065
48702
  @origin = (x = opts.delete(:origin); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ShippingAddress) ? x : ::Io::Flow::V0::Models::ShippingAddress.new(x)))
48066
48703
  @center_key = (x = opts.delete(:center_key); x.nil? ? nil : HttpClient::Preconditions.assert_class('center_key', x, String))
48704
+ @source = (x = opts.delete(:source); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ReturnSource) ? x : ::Io::Flow::V0::Models::ReturnSource.from_json(x)))
48705
+ @tracking_status = (x = opts.delete(:tracking_status); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ReturnTrackingStatus) ? x : ::Io::Flow::V0::Models::ReturnTrackingStatus.apply(x)))
48706
+ @tracking_status_timestamp = (x = opts.delete(:tracking_status_timestamp); x.nil? ? nil : HttpClient::Preconditions.assert_class('tracking_status_timestamp', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
48707
+ @carrier_tracking_number = (x = opts.delete(:carrier_tracking_number); x.nil? ? nil : HttpClient::Preconditions.assert_class('carrier_tracking_number', x, String))
48067
48708
  end
48068
48709
 
48069
48710
  def to_json
@@ -48083,7 +48724,11 @@ module Io
48083
48724
  :destination => destination.nil? ? nil : destination.to_hash,
48084
48725
  :key => key,
48085
48726
  :origin => origin.nil? ? nil : origin.to_hash,
48086
- :center_key => center_key
48727
+ :center_key => center_key,
48728
+ :source => source.nil? ? nil : source.to_hash,
48729
+ :tracking_status => tracking_status.nil? ? nil : tracking_status.value,
48730
+ :tracking_status_timestamp => tracking_status_timestamp,
48731
+ :carrier_tracking_number => carrier_tracking_number
48087
48732
  }
48088
48733
  end
48089
48734
 
@@ -48117,7 +48762,7 @@ module Io
48117
48762
 
48118
48763
  class ReturnLineItem
48119
48764
 
48120
- attr_reader :item_number, :order_number, :quantity, :reason, :notes
48765
+ attr_reader :item_number, :order_number, :quantity, :reason, :notes, :attributes
48121
48766
 
48122
48767
  def initialize(incoming={})
48123
48768
  opts = HttpClient::Helper.symbolize_keys(incoming)
@@ -48127,6 +48772,7 @@ module Io
48127
48772
  @quantity = HttpClient::Preconditions.assert_class('quantity', opts.delete(:quantity), Integer)
48128
48773
  @reason = (x = opts.delete(:reason); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ReturnReason) ? x : ::Io::Flow::V0::Models::ReturnReason.new(x)))
48129
48774
  @notes = (x = opts.delete(:notes); x.nil? ? nil : HttpClient::Preconditions.assert_class('notes', x, String))
48775
+ @attributes = (x = opts.delete(:attributes); x.nil? ? nil : HttpClient::Preconditions.assert_class('attributes', x, Hash).inject({}) { |h, d| h[d[0]] = HttpClient::Preconditions.assert_class('attributes', d[1], String); h })
48130
48776
  end
48131
48777
 
48132
48778
  def to_json
@@ -48143,7 +48789,8 @@ module Io
48143
48789
  :order_number => order_number,
48144
48790
  :quantity => quantity,
48145
48791
  :reason => reason.nil? ? nil : reason.to_hash,
48146
- :notes => notes
48792
+ :notes => notes,
48793
+ :attributes => attributes.nil? ? nil : attributes
48147
48794
  }
48148
48795
  end
48149
48796
 
@@ -48204,12 +48851,11 @@ module Io
48204
48851
 
48205
48852
  class ReturnReason
48206
48853
 
48207
- attr_reader :key, :name
48854
+ attr_reader :name
48208
48855
 
48209
48856
  def initialize(incoming={})
48210
48857
  opts = HttpClient::Helper.symbolize_keys(incoming)
48211
- HttpClient::Preconditions.require_keys(opts, [:key, :name], 'ReturnReason')
48212
- @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
48858
+ HttpClient::Preconditions.require_keys(opts, [:name], 'ReturnReason')
48213
48859
  @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
48214
48860
  end
48215
48861
 
@@ -48223,7 +48869,6 @@ module Io
48223
48869
 
48224
48870
  def to_hash
48225
48871
  {
48226
- :key => key,
48227
48872
  :name => name
48228
48873
  }
48229
48874
  end
@@ -48232,11 +48877,10 @@ module Io
48232
48877
 
48233
48878
  class ReturnReasonForm
48234
48879
 
48235
- attr_reader :key, :name
48880
+ attr_reader :name
48236
48881
 
48237
48882
  def initialize(incoming={})
48238
48883
  opts = HttpClient::Helper.symbolize_keys(incoming)
48239
- @key = (x = opts.delete(:key); x.nil? ? nil : HttpClient::Preconditions.assert_class('key', x, String))
48240
48884
  @name = (x = opts.delete(:name); x.nil? ? nil : HttpClient::Preconditions.assert_class('name', x, String))
48241
48885
  end
48242
48886
 
@@ -48250,7 +48894,6 @@ module Io
48250
48894
 
48251
48895
  def to_hash
48252
48896
  {
48253
- :key => key,
48254
48897
  :name => name
48255
48898
  }
48256
48899
  end
@@ -48282,6 +48925,59 @@ module Io
48282
48925
 
48283
48926
  end
48284
48927
 
48928
+ class ReturnSourceExternalVendor < ReturnSource
48929
+
48930
+ attr_reader :key
48931
+
48932
+ def initialize(incoming={})
48933
+ super(:discriminator => ReturnSource::Types::RETURN_SOURCE_EXTERNAL_VENDOR)
48934
+ opts = HttpClient::Helper.symbolize_keys(incoming)
48935
+ HttpClient::Preconditions.require_keys(opts, [:key], 'ReturnSourceExternalVendor')
48936
+ @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
48937
+ end
48938
+
48939
+ def to_json
48940
+ JSON.dump(to_hash)
48941
+ end
48942
+
48943
+ def copy(incoming={})
48944
+ ReturnSourceExternalVendor.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
48945
+ end
48946
+
48947
+ def subtype_to_hash
48948
+ {
48949
+ :key => key
48950
+ }
48951
+ end
48952
+
48953
+ end
48954
+
48955
+ class ReturnSourceFlow < ReturnSource
48956
+
48957
+ attr_reader :attributes
48958
+
48959
+ def initialize(incoming={})
48960
+ super(:discriminator => ReturnSource::Types::RETURN_SOURCE_FLOW)
48961
+ opts = HttpClient::Helper.symbolize_keys(incoming)
48962
+ @attributes = (x = opts.delete(:attributes); x.nil? ? nil : HttpClient::Preconditions.assert_class('attributes', x, Hash).inject({}) { |h, d| h[d[0]] = HttpClient::Preconditions.assert_class('attributes', d[1], String); h })
48963
+ end
48964
+
48965
+ def to_json
48966
+ JSON.dump(to_hash)
48967
+ end
48968
+
48969
+ def copy(incoming={})
48970
+ ReturnSourceFlow.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
48971
+ end
48972
+
48973
+ def subtype_to_hash
48974
+ {
48975
+ :attributes => attributes.nil? ? nil : attributes
48976
+ }
48977
+ end
48978
+
48979
+ end
48980
+
48285
48981
  class ReturnUpserted < Event
48286
48982
 
48287
48983
  attr_reader :event_id, :timestamp, :id, :organization, :destination, :items, :key, :labels, :service, :origin
@@ -48289,7 +48985,7 @@ module Io
48289
48985
  def initialize(incoming={})
48290
48986
  super(:discriminator => Event::Types::RETURN_UPSERTED)
48291
48987
  opts = HttpClient::Helper.symbolize_keys(incoming)
48292
- HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :id, :organization, :destination, :items, :key, :labels, :service, :origin], 'ReturnUpserted')
48988
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :id, :organization, :destination, :items, :key, :service, :origin], 'ReturnUpserted')
48293
48989
  @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
48294
48990
  @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
48295
48991
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
@@ -48297,7 +48993,7 @@ module Io
48297
48993
  @destination = (x = opts.delete(:destination); x.is_a?(::Io::Flow::V0::Models::ShippingAddress) ? x : ::Io::Flow::V0::Models::ShippingAddress.new(x))
48298
48994
  @items = HttpClient::Preconditions.assert_class('items', opts.delete(:items), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ReturnLineItem) ? x : ::Io::Flow::V0::Models::ReturnLineItem.new(x)) }
48299
48995
  @key = HttpClient::Preconditions.assert_class('key', opts.delete(:key), String)
48300
- @labels = HttpClient::Preconditions.assert_class('labels', opts.delete(:labels), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ShippingLabel) ? x : ::Io::Flow::V0::Models::ShippingLabel.new(x)) }
48996
+ @labels = (x = opts.delete(:labels); x.nil? ? nil : HttpClient::Preconditions.assert_class('labels', x, Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ShippingLabel) ? x : ::Io::Flow::V0::Models::ShippingLabel.new(x)) })
48301
48997
  @service = HttpClient::Preconditions.assert_class('service', opts.delete(:service), String)
48302
48998
  @origin = (x = opts.delete(:origin); x.is_a?(::Io::Flow::V0::Models::ShippingAddress) ? x : ::Io::Flow::V0::Models::ShippingAddress.new(x))
48303
48999
  end
@@ -48319,7 +49015,7 @@ module Io
48319
49015
  :destination => destination.to_hash,
48320
49016
  :items => items.map { |o| o.to_hash },
48321
49017
  :key => key,
48322
- :labels => labels.map { |o| o.to_hash },
49018
+ :labels => labels.nil? ? nil : labels.map { |o| o.to_hash },
48323
49019
  :service => service,
48324
49020
  :origin => origin.to_hash
48325
49021
  }
@@ -48327,6 +49023,39 @@ module Io
48327
49023
 
48328
49024
  end
48329
49025
 
49026
+ class ReturnUpsertedV2 < Event
49027
+
49028
+ attr_reader :event_id, :timestamp, :organization, :return_
49029
+
49030
+ def initialize(incoming={})
49031
+ super(:discriminator => Event::Types::RETURN_UPSERTED_V2)
49032
+ opts = HttpClient::Helper.symbolize_keys(incoming)
49033
+ HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :return_], 'ReturnUpsertedV2')
49034
+ @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
49035
+ @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
49036
+ @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
49037
+ @return_ = (x = opts.delete(:return); x.is_a?(::Io::Flow::V0::Models::Return) ? x : ::Io::Flow::V0::Models::Return.new(x))
49038
+ end
49039
+
49040
+ def to_json
49041
+ JSON.dump(to_hash)
49042
+ end
49043
+
49044
+ def copy(incoming={})
49045
+ ReturnUpsertedV2.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
49046
+ end
49047
+
49048
+ def subtype_to_hash
49049
+ {
49050
+ :event_id => event_id,
49051
+ :timestamp => timestamp,
49052
+ :organization => organization,
49053
+ :return => return_.to_hash
49054
+ }
49055
+ end
49056
+
49057
+ end
49058
+
48330
49059
  class ReturnVersion
48331
49060
 
48332
49061
  attr_reader :id, :timestamp, :type, :return_
@@ -53015,33 +53744,6 @@ module Io
53015
53744
 
53016
53745
  end
53017
53746
 
53018
- # Instructions to the card issuer to render challenges to the user
53019
- class ThreedsTwoBrowserActionConfiguration < ActionConfiguration
53020
-
53021
- attr_reader :viewport
53022
-
53023
- def initialize(incoming={})
53024
- super(:discriminator => ActionConfiguration::Types::THREEDS_TWO_BROWSER_ACTION_CONFIGURATION)
53025
- opts = HttpClient::Helper.symbolize_keys(incoming)
53026
- @viewport = (x = (x = opts.delete(:viewport); x.nil? ? "xxx_small" : x); x.is_a?(::Io::Flow::V0::Models::ThreedsTwoChallengeViewport) ? x : ::Io::Flow::V0::Models::ThreedsTwoChallengeViewport.apply(x))
53027
- end
53028
-
53029
- def to_json
53030
- JSON.dump(to_hash)
53031
- end
53032
-
53033
- def copy(incoming={})
53034
- ThreedsTwoBrowserActionConfiguration.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
53035
- end
53036
-
53037
- def subtype_to_hash
53038
- {
53039
- :viewport => viewport.value
53040
- }
53041
- end
53042
-
53043
- end
53044
-
53045
53747
  # Data that must be passed to the 3DS Client to help the issuer ACS render a
53046
53748
  # challenge for the user.
53047
53749
  class ThreedsTwoChallengeRequest < ThreedsChallengeAction