Class: Io::Flow::V0::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Defined Under Namespace

Modules: Constants

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, opts = {}) ⇒ Client

Returns a new instance of Client.



36
37
38
39
40
41
42
43
44
45
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 36

def initialize(url, opts={})
  @url = HttpClient::Preconditions.assert_class('url', url, String)
  @base_url = URI(url)
  @authorization = HttpClient::Preconditions.assert_class_or_nil('authorization', opts.delete(:authorization), HttpClient::Authorization)
  @default_headers = HttpClient::Preconditions.assert_class('default_headers', opts.delete(:default_headers) || {}, Hash)
  @http_handler = opts.delete(:http_handler) || HttpClient::DefaultHttpHandler.new

  HttpClient::Preconditions.assert_empty_opts(opts)
  HttpClient::Preconditions.check_state(url.match(/http.+/i), "URL[%s] must start with http" % url)
end

Instance Attribute Details

#urlObject (readonly)

Returns the value of attribute url.



34
35
36
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34

def url
  @url
end

Class Method Details

.at_base_url(opts = {}) ⇒ Object

Creates an instance of the client using the base url specified in the API spec.



48
49
50
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 48

def Client.at_base_url(opts={})
  Client.new(Constants::BASE_URL, opts)
end

Instance Method Details

#abandoned_order_promotionsObject



399
400
401
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 399

def abandoned_order_promotions
  @abandoned_order_promotions ||= ::Io::Flow::V0::Clients::AbandonedOrderPromotions.new(self)
end

#abandoned_order_settingsObject



403
404
405
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 403

def abandoned_order_settings
  @abandoned_order_settings ||= ::Io::Flow::V0::Clients::AbandonedOrderSettings.new(self)
end

#address_configurationsObject



67
68
69
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 67

def address_configurations
  @address_configurations ||= ::Io::Flow::V0::Clients::AddressConfigurations.new(self)
end

#addressesObject



347
348
349
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 347

def addresses
  @addresses ||= ::Io::Flow::V0::Clients::Addresses.new(self)
end

#allocationsObject



71
72
73
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 71

def allocations
  @allocations ||= ::Io::Flow::V0::Clients::Allocations.new(self)
end

#attributesObject



75
76
77
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 75

def attributes
  @attributes ||= ::Io::Flow::V0::Clients::Attributes.new(self)
end

#authorizationsObject



199
200
201
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 199

def authorizations
  @authorizations ||= ::Io::Flow::V0::Clients::Authorizations.new(self)
end

#b2b_credit_memosObject



407
408
409
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 407

def b2b_credit_memos
  @b2b_credit_memos ||= ::Io::Flow::V0::Clients::B2bCreditMemos.new(self)
end

#b2b_invoicesObject



411
412
413
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 411

def b2b_invoices
  @b2b_invoices ||= ::Io::Flow::V0::Clients::B2bInvoices.new(self)
end

#bank_account_formsObject



415
416
417
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 415

def 
  @bank_account_forms ||= ::Io::Flow::V0::Clients::BankAccountForms.new(self)
end

#capturesObject



203
204
205
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 203

def captures
  @captures ||= ::Io::Flow::V0::Clients::Captures.new(self)
end

#card_payment_sourcesObject



211
212
213
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 211

def card_payment_sources
  @card_payment_sources ||= ::Io::Flow::V0::Clients::CardPaymentSources.new(self)
end

#cardsObject



207
208
209
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 207

def cards
  @cards ||= ::Io::Flow::V0::Clients::Cards.new(self)
end

#carrier_servicesObject



363
364
365
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 363

def carrier_services
  @carrier_services ||= ::Io::Flow::V0::Clients::CarrierServices.new(self)
end

#carriersObject



359
360
361
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 359

def carriers
  @carriers ||= ::Io::Flow::V0::Clients::Carriers.new(self)
end

#catalog_price_book_item_documentsObject



419
420
421
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 419

def catalog_price_book_item_documents
  @catalog_price_book_item_documents ||= ::Io::Flow::V0::Clients::CatalogPriceBookItemDocuments.new(self)
end

#catalogsObject



79
80
81
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 79

def catalogs
  @catalogs ||= ::Io::Flow::V0::Clients::Catalogs.new(self)
end

#centersObject



247
248
249
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 247

def centers
  @centers ||= ::Io::Flow::V0::Clients::Centers.new(self)
end

#channel_authorizationsObject



423
424
425
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 423

def channel_authorizations
  @channel_authorizations ||= ::Io::Flow::V0::Clients::ChannelAuthorizations.new(self)
end

#channel_bank_accountsObject



427
428
429
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 427

def channel_bank_accounts
  @channel_bank_accounts ||= ::Io::Flow::V0::Clients::ChannelBankAccounts.new(self)
end

#channel_default_bank_accountsObject



431
432
433
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 431

def channel_default_bank_accounts
  @channel_default_bank_accounts ||= ::Io::Flow::V0::Clients::ChannelDefaultBankAccounts.new(self)
end

#channel_organization_authorizationsObject



439
440
441
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 439

def channel_organization_authorizations
  @channel_organization_authorizations ||= ::Io::Flow::V0::Clients::ChannelOrganizationAuthorizations.new(self)
end

#channel_organizationsObject



435
436
437
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 435

def channel_organizations
  @channel_organizations ||= ::Io::Flow::V0::Clients::ChannelOrganizations.new(self)
end

#channel_payoutsObject



443
444
445
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 443

def channel_payouts
  @channel_payouts ||= ::Io::Flow::V0::Clients::ChannelPayouts.new(self)
end

#channel_ratesObject



447
448
449
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 447

def channel_rates
  @channel_rates ||= ::Io::Flow::V0::Clients::ChannelRates.new(self)
end

#channel_statementsObject



451
452
453
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 451

def channel_statements
  @channel_statements ||= ::Io::Flow::V0::Clients::ChannelStatements.new(self)
end

#channel_tokensObject



455
456
457
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 455

def channel_tokens
  @channel_tokens ||= ::Io::Flow::V0::Clients::ChannelTokens.new(self)
end

#channel_transactionsObject



459
460
461
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 459

def channel_transactions
  @channel_transactions ||= ::Io::Flow::V0::Clients::ChannelTransactions.new(self)
end

#channel_vies_registrationsObject



463
464
465
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 463

def channel_vies_registrations
  @channel_vies_registrations ||= ::Io::Flow::V0::Clients::ChannelViesRegistrations.new(self)
end

#checkout_attributesObject



83
84
85
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 83

def checkout_attributes
  @checkout_attributes ||= ::Io::Flow::V0::Clients::CheckoutAttributes.new(self)
end

#checkout_item_contentsObject



87
88
89
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 87

def checkout_item_contents
  @checkout_item_contents ||= ::Io::Flow::V0::Clients::CheckoutItemContents.new(self)
end

#checkout_tokensObject



467
468
469
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 467

def checkout_tokens
  @checkout_tokens ||= ::Io::Flow::V0::Clients::CheckoutTokens.new(self)
end

#consumer_invoice_documentsObject



475
476
477
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 475

def consumer_invoice_documents
  @consumer_invoice_documents ||= ::Io::Flow::V0::Clients::ConsumerInvoiceDocuments.new(self)
end

#consumer_invoicesObject



471
472
473
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 471

def consumer_invoices
  @consumer_invoices ||= ::Io::Flow::V0::Clients::ConsumerInvoices.new(self)
end

#countriesObject



367
368
369
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 367

def countries
  @countries ||= ::Io::Flow::V0::Clients::Countries.new(self)
end

#country_defaultsObject



351
352
353
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 351

def country_defaults
  @country_defaults ||= ::Io::Flow::V0::Clients::CountryDefaults.new(self)
end

#country_pickersObject



479
480
481
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 479

def country_pickers
  @country_pickers ||= ::Io::Flow::V0::Clients::CountryPickers.new(self)
end

#credit_memosObject



483
484
485
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 483

def credit_memos
  @credit_memos ||= ::Io::Flow::V0::Clients::CreditMemos.new(self)
end

#credit_paymentsObject



91
92
93
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 91

def credit_payments
  @credit_payments ||= ::Io::Flow::V0::Clients::CreditPayments.new(self)
end

#currenciesObject



371
372
373
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 371

def currencies
  @currencies ||= ::Io::Flow::V0::Clients::Currencies.new(self)
end

#customer_address_bookObject



491
492
493
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 491

def customer_address_book
  @customer_address_book ||= ::Io::Flow::V0::Clients::CustomerAddressBook.new(self)
end

#customer_address_book_contactsObject



495
496
497
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 495

def customer_address_book_contacts
  @customer_address_book_contacts ||= ::Io::Flow::V0::Clients::CustomerAddressBookContacts.new(self)
end

#customer_bundlesObject



499
500
501
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 499

def customer_bundles
  @customer_bundles ||= ::Io::Flow::V0::Clients::CustomerBundles.new(self)
end

#customer_purge_settingsObject



503
504
505
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 503

def customer_purge_settings
  @customer_purge_settings ||= ::Io::Flow::V0::Clients::CustomerPurgeSettings.new(self)
end

#customer_tokensObject



507
508
509
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 507

def customer_tokens
  @customer_tokens ||= ::Io::Flow::V0::Clients::CustomerTokens.new(self)
end

#customersObject



487
488
489
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 487

def customers
  @customers ||= ::Io::Flow::V0::Clients::Customers.new(self)
end

#delivery_windowsObject



251
252
253
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 251

def delivery_windows
  @delivery_windows ||= ::Io::Flow::V0::Clients::DeliveryWindows.new(self)
end

#dimension_estimatesObject



255
256
257
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 255

def dimension_estimates
  @dimension_estimates ||= ::Io::Flow::V0::Clients::DimensionEstimates.new(self)
end

#discount_rule_settingsObject



95
96
97
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 95

def discount_rule_settings
  @discount_rule_settings ||= ::Io::Flow::V0::Clients::DiscountRuleSettings.new(self)
end

#documentsObject



511
512
513
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 511

def documents
  @documents ||= ::Io::Flow::V0::Clients::Documents.new(self)
end

#duty_item_approvalsObject



519
520
521
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 519

def duty_item_approvals
  @duty_item_approvals ||= ::Io::Flow::V0::Clients::DutyItemApprovals.new(self)
end

#duty_item_producersObject



523
524
525
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 523

def duty_item_producers
  @duty_item_producers ||= ::Io::Flow::V0::Clients::DutyItemProducers.new(self)
end

#duty_itemsObject



515
516
517
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 515

def duty_items
  @duty_items ||= ::Io::Flow::V0::Clients::DutyItems.new(self)
end

#ecommerce_platformsObject



527
528
529
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 527

def ecommerce_platforms
  @ecommerce_platforms ||= ::Io::Flow::V0::Clients::EcommercePlatforms.new(self)
end

#email_verificationsObject



531
532
533
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 531

def email_verifications
  @email_verifications ||= ::Io::Flow::V0::Clients::EmailVerifications.new(self)
end

#exclusion_rulesObject



535
536
537
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 535

def exclusion_rules
  @exclusion_rules ||= ::Io::Flow::V0::Clients::ExclusionRules.new(self)
end

#experience_checkout_settingsObject



103
104
105
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 103

def experience_checkout_settings
  @experience_checkout_settings ||= ::Io::Flow::V0::Clients::ExperienceCheckoutSettings.new(self)
end

#experience_defaultsObject



107
108
109
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 107

def experience_defaults
  @experience_defaults ||= ::Io::Flow::V0::Clients::ExperienceDefaults.new(self)
end

#experience_logistics_settingsObject



111
112
113
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 111

def experience_logistics_settings
  @experience_logistics_settings ||= ::Io::Flow::V0::Clients::ExperienceLogisticsSettings.new(self)
end

#experience_price_conversionsObject



115
116
117
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 115

def experience_price_conversions
  @experience_price_conversions ||= ::Io::Flow::V0::Clients::ExperiencePriceConversions.new(self)
end

#experience_price_facet_conversionsObject



119
120
121
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 119

def experience_price_facet_conversions
  @experience_price_facet_conversions ||= ::Io::Flow::V0::Clients::ExperiencePriceFacetConversions.new(self)
end

#experiencesObject



99
100
101
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 99

def experiences
  @experiences ||= ::Io::Flow::V0::Clients::Experiences.new(self)
end

#exportsObject



539
540
541
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 539

def exports
  @exports ||= ::Io::Flow::V0::Clients::Exports.new(self)
end

#flow_rolesObject



543
544
545
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 543

def flow_roles
  @flow_roles ||= ::Io::Flow::V0::Clients::FlowRoles.new(self)
end

#fraud_email_rulesObject



547
548
549
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 547

def fraud_email_rules
  @fraud_email_rules ||= ::Io::Flow::V0::Clients::FraudEmailRules.new(self)
end

#ftp_filesObject



551
552
553
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 551

def ftp_files
  @ftp_files ||= ::Io::Flow::V0::Clients::FtpFiles.new(self)
end

#ftp_foldersObject



555
556
557
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 555

def ftp_folders
  @ftp_folders ||= ::Io::Flow::V0::Clients::FtpFolders.new(self)
end

#ftp_organization_settingsObject



559
560
561
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 559

def ftp_organization_settings
  @ftp_organization_settings ||= ::Io::Flow::V0::Clients::FtpOrganizationSettings.new(self)
end

#fulfillmentsObject



563
564
565
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 563

def fulfillments
  @fulfillments ||= ::Io::Flow::V0::Clients::Fulfillments.new(self)
end

#gateway_authentication_dataObject



215
216
217
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 215

def gateway_authentication_data
  @gateway_authentication_data ||= ::Io::Flow::V0::Clients::GatewayAuthenticationData.new(self)
end

#harmonized_landed_costsObject



187
188
189
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 187

def harmonized_landed_costs
  @harmonized_landed_costs ||= ::Io::Flow::V0::Clients::HarmonizedLandedCosts.new(self)
end

#healthchecksObject



567
568
569
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 567

def healthchecks
  @healthchecks ||= ::Io::Flow::V0::Clients::Healthchecks.new(self)
end

#hs10Object



191
192
193
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 191

def hs10
  @hs10 ||= ::Io::Flow::V0::Clients::Hs10.new(self)
end

#import_templatesObject



575
576
577
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 575

def import_templates
  @import_templates ||= ::Io::Flow::V0::Clients::ImportTemplates.new(self)
end

#importsObject



571
572
573
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 571

def imports
  @imports ||= ::Io::Flow::V0::Clients::Imports.new(self)
end

#inventory_rulesObject



259
260
261
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 259

def inventory_rules
  @inventory_rules ||= ::Io::Flow::V0::Clients::InventoryRules.new(self)
end

#inventory_snapshotsObject



263
264
265
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 263

def inventory_snapshots
  @inventory_snapshots ||= ::Io::Flow::V0::Clients::InventorySnapshots.new(self)
end

#inventory_updatesObject



267
268
269
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 267

def inventory_updates
  @inventory_updates ||= ::Io::Flow::V0::Clients::InventoryUpdates.new(self)
end

#invitationsObject



579
580
581
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 579

def invitations
  @invitations ||= ::Io::Flow::V0::Clients::Invitations.new(self)
end

#item_form_overlaysObject



127
128
129
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 127

def item_form_overlays
  @item_form_overlays ||= ::Io::Flow::V0::Clients::ItemFormOverlays.new(self)
end

#item_query_suggestionsObject



587
588
589
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 587

def item_query_suggestions
  @item_query_suggestions ||= ::Io::Flow::V0::Clients::ItemQuerySuggestions.new(self)
end

#itemsObject



123
124
125
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 123

def items
  @items ||= ::Io::Flow::V0::Clients::Items.new(self)
end

#kube_healthchecksObject



591
592
593
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 591

def kube_healthchecks
  @kube_healthchecks ||= ::Io::Flow::V0::Clients::KubeHealthchecks.new(self)
end

#languagesObject



375
376
377
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 375

def languages
  @languages ||= ::Io::Flow::V0::Clients::Languages.new(self)
end


595
596
597
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 595

def links
  @links ||= ::Io::Flow::V0::Clients::Links.new(self)
end

#localesObject



379
380
381
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 379

def locales
  @locales ||= ::Io::Flow::V0::Clients::Locales.new(self)
end

#manifestsObject



271
272
273
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 271

def manifests
  @manifests ||= ::Io::Flow::V0::Clients::Manifests.new(self)
end

#membershipsObject



599
600
601
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 599

def memberships
  @memberships ||= ::Io::Flow::V0::Clients::Memberships.new(self)
end

#merchant_applicationsObject



603
604
605
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 603

def merchant_applications
  @merchant_applications ||= ::Io::Flow::V0::Clients::MerchantApplications.new(self)
end

#merchant_gift_card_balancesObject



607
608
609
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 607

def merchant_gift_card_balances
  @merchant_gift_card_balances ||= ::Io::Flow::V0::Clients::MerchantGiftCardBalances.new(self)
end

#merchant_gift_card_redemptionsObject



611
612
613
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 611

def merchant_gift_card_redemptions
  @merchant_gift_card_redemptions ||= ::Io::Flow::V0::Clients::MerchantGiftCardRedemptions.new(self)
end

#merchant_gift_card_reversalsObject



615
616
617
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 615

def merchant_gift_card_reversals
  @merchant_gift_card_reversals ||= ::Io::Flow::V0::Clients::MerchantGiftCardReversals.new(self)
end

#order_buildersObject



135
136
137
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 135

def order_builders
  @order_builders ||= ::Io::Flow::V0::Clients::OrderBuilders.new(self)
end

#order_estimatesObject



139
140
141
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 139

def order_estimates
  @order_estimates ||= ::Io::Flow::V0::Clients::OrderEstimates.new(self)
end

#order_identifiersObject



143
144
145
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 143

def order_identifiers
  @order_identifiers ||= ::Io::Flow::V0::Clients::OrderIdentifiers.new(self)
end

#order_number_generatorsObject



147
148
149
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 147

def order_number_generators
  @order_number_generators ||= ::Io::Flow::V0::Clients::OrderNumberGenerators.new(self)
end

#order_promotionsObject



151
152
153
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 151

def order_promotions
  @order_promotions ||= ::Io::Flow::V0::Clients::OrderPromotions.new(self)
end

#order_quotesObject



619
620
621
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 619

def order_quotes
  @order_quotes ||= ::Io::Flow::V0::Clients::OrderQuotes.new(self)
end

#order_summariesObject



155
156
157
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 155

def order_summaries
  @order_summaries ||= ::Io::Flow::V0::Clients::OrderSummaries.new(self)
end

#ordersObject



131
132
133
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 131

def orders
  @orders ||= ::Io::Flow::V0::Clients::Orders.new(self)
end

#organization_authorizationsObject



623
624
625
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 623

def organization_authorizations
  @organization_authorizations ||= ::Io::Flow::V0::Clients::OrganizationAuthorizations.new(self)
end

#organization_bank_accountsObject



627
628
629
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 627

def organization_bank_accounts
  @organization_bank_accounts ||= ::Io::Flow::V0::Clients::OrganizationBankAccounts.new(self)
end

#organization_default_bank_accountsObject



631
632
633
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 631

def organization_default_bank_accounts
  @organization_default_bank_accounts ||= ::Io::Flow::V0::Clients::OrganizationDefaultBankAccounts.new(self)
end

#organization_default_configurationsObject



635
636
637
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 635

def organization_default_configurations
  @organization_default_configurations ||= ::Io::Flow::V0::Clients::OrganizationDefaultConfigurations.new(self)
end

#organization_onboarding_statesObject



639
640
641
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 639

def organization_onboarding_states
  @organization_onboarding_states ||= ::Io::Flow::V0::Clients::OrganizationOnboardingStates.new(self)
end

#organization_payoutsObject



643
644
645
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 643

def organization_payouts
  @organization_payouts ||= ::Io::Flow::V0::Clients::OrganizationPayouts.new(self)
end

#organization_token_v2Object



651
652
653
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 651

def organization_token_v2
  @organization_token_v2 ||= ::Io::Flow::V0::Clients::OrganizationTokenV2.new(self)
end

#organization_tokensObject



647
648
649
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 647

def organization_tokens
  @organization_tokens ||= ::Io::Flow::V0::Clients::OrganizationTokens.new(self)
end

#organizationsObject



159
160
161
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 159

def organizations
  @organizations ||= ::Io::Flow::V0::Clients::Organizations.new(self)
end

#partner_tokensObject



655
656
657
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 655

def partner_tokens
  @partner_tokens ||= ::Io::Flow::V0::Clients::PartnerTokens.new(self)
end

#password_reset_formsObject



659
660
661
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 659

def password_reset_forms
  @password_reset_forms ||= ::Io::Flow::V0::Clients::PasswordResetForms.new(self)
end

#payment_method_rulesObject



163
164
165
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 163

def payment_method_rules
  @payment_method_rules ||= ::Io::Flow::V0::Clients::PaymentMethodRules.new(self)
end

#payment_methodsObject



383
384
385
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 383

def payment_methods
  @payment_methods ||= ::Io::Flow::V0::Clients::PaymentMethods.new(self)
end

#payment_payment_methodsObject



663
664
665
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 663

def payment_payment_methods
  @payment_payment_methods ||= ::Io::Flow::V0::Clients::PaymentPaymentMethods.new(self)
end

#payment_request_bundlesObject



671
672
673
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 671

def payment_request_bundles
  @payment_request_bundles ||= ::Io::Flow::V0::Clients::PaymentRequestBundles.new(self)
end

#payment_requestsObject



667
668
669
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 667

def payment_requests
  @payment_requests ||= ::Io::Flow::V0::Clients::PaymentRequests.new(self)
end

#paymentsObject



219
220
221
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 219

def payments
  @payments ||= ::Io::Flow::V0::Clients::Payments.new(self)
end

#permission_checksObject



675
676
677
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 675

def permission_checks
  @permission_checks ||= ::Io::Flow::V0::Clients::PermissionChecks.new(self)
end

#price_book_item_export_optionsObject



679
680
681
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 679

def price_book_item_export_options
  @price_book_item_export_options ||= ::Io::Flow::V0::Clients::PriceBookItemExportOptions.new(self)
end

#price_book_itemsObject



171
172
173
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 171

def price_book_items
  @price_book_items ||= ::Io::Flow::V0::Clients::PriceBookItems.new(self)
end

#price_booksObject



167
168
169
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 167

def price_books
  @price_books ||= ::Io::Flow::V0::Clients::PriceBooks.new(self)
end

#price_rulesObject



583
584
585
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 583

def price_rules
  @price_rules ||= ::Io::Flow::V0::Clients::PriceRules.new(self)
end

#provincesObject



387
388
389
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 387

def provinces
  @provinces ||= ::Io::Flow::V0::Clients::Provinces.new(self)
end

#public_keysObject



223
224
225
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 223

def public_keys
  @public_keys ||= ::Io::Flow::V0::Clients::PublicKeys.new(self)
end

#quotesObject



275
276
277
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 275

def quotes
  @quotes ||= ::Io::Flow::V0::Clients::Quotes.new(self)
end

#ratecard_estimatesObject



283
284
285
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 283

def ratecard_estimates
  @ratecard_estimates ||= ::Io::Flow::V0::Clients::RatecardEstimates.new(self)
end

#ratecard_lanesObject



287
288
289
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 287

def ratecard_lanes
  @ratecard_lanes ||= ::Io::Flow::V0::Clients::RatecardLanes.new(self)
end

#ratecard_ratesObject



291
292
293
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 291

def ratecard_rates
  @ratecard_rates ||= ::Io::Flow::V0::Clients::RatecardRates.new(self)
end

#ratecardsObject



279
280
281
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 279

def ratecards
  @ratecards ||= ::Io::Flow::V0::Clients::Ratecards.new(self)
end

#ratesObject



183
184
185
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 183

def rates
  @rates ||= ::Io::Flow::V0::Clients::Rates.new(self)
end

#refundsObject



227
228
229
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 227

def refunds
  @refunds ||= ::Io::Flow::V0::Clients::Refunds.new(self)
end

#regionsObject



391
392
393
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 391

def regions
  @regions ||= ::Io::Flow::V0::Clients::Regions.new(self)
end

#request(path = nil) ⇒ Object



52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 52

def request(path=nil)
  HttpClient::Preconditions.assert_class_or_nil('path', path, String)
  request = HttpClient::Request.new(@http_handler, @base_url, path.to_s).with_header('User-Agent', Constants::USER_AGENT).with_header('X-Apidoc-Version', Constants::VERSION).with_header('X-Apidoc-Version-Major', Constants::VERSION_MAJOR)

  @default_headers.each do |key, value|
    request = request.with_header(key, value)
  end

  if @authorization
    request = request.with_auth(@authorization)
  end

  request
end

#return_policiesObject



683
684
685
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 683

def return_policies
  @return_policies ||= ::Io::Flow::V0::Clients::ReturnPolicies.new(self)
end

#returnsObject



295
296
297
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 295

def returns
  @returns ||= ::Io::Flow::V0::Clients::Returns.new(self)
end

#reversalsObject



231
232
233
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 231

def reversals
  @reversals ||= ::Io::Flow::V0::Clients::Reversals.new(self)
end

#romanizationsObject



687
688
689
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 687

def romanizations
  @romanizations ||= ::Io::Flow::V0::Clients::Romanizations.new(self)
end

#scheduled_exportsObject



691
692
693
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 691

def scheduled_exports
  @scheduled_exports ||= ::Io::Flow::V0::Clients::ScheduledExports.new(self)
end

#session_authorizationsObject



699
700
701
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 699

def session_authorizations
  @session_authorizations ||= ::Io::Flow::V0::Clients::SessionAuthorizations.new(self)
end

#sessionsObject



695
696
697
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 695

def sessions
  @sessions ||= ::Io::Flow::V0::Clients::Sessions.new(self)
end

#shipping_configuration_copiesObject



303
304
305
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 303

def shipping_configuration_copies
  @shipping_configuration_copies ||= ::Io::Flow::V0::Clients::ShippingConfigurationCopies.new(self)
end

#shipping_configurationsObject



299
300
301
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 299

def shipping_configurations
  @shipping_configurations ||= ::Io::Flow::V0::Clients::ShippingConfigurations.new(self)
end

#shipping_labelsObject



307
308
309
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 307

def shipping_labels
  @shipping_labels ||= ::Io::Flow::V0::Clients::ShippingLabels.new(self)
end

#shipping_notificationsObject



311
312
313
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 311

def shipping_notifications
  @shipping_notifications ||= ::Io::Flow::V0::Clients::ShippingNotifications.new(self)
end

#shopify_cart_conversionsObject



707
708
709
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 707

def shopify_cart_conversions
  @shopify_cart_conversions ||= ::Io::Flow::V0::Clients::ShopifyCartConversions.new(self)
end

#shopify_cartsObject



703
704
705
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 703

def shopify_carts
  @shopify_carts ||= ::Io::Flow::V0::Clients::ShopifyCarts.new(self)
end

#shopify_localization_settingsObject



711
712
713
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 711

def shopify_localization_settings
  @shopify_localization_settings ||= ::Io::Flow::V0::Clients::ShopifyLocalizationSettings.new(self)
end

#shopify_location_flow_center_mappingsObject



715
716
717
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 715

def shopify_location_flow_center_mappings
  @shopify_location_flow_center_mappings ||= ::Io::Flow::V0::Clients::ShopifyLocationFlowCenterMappings.new(self)
end

#shopify_private_appsObject



719
720
721
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 719

def shopify_private_apps
  @shopify_private_apps ||= ::Io::Flow::V0::Clients::ShopifyPrivateApps.new(self)
end

#shopify_sync_statusesObject



723
724
725
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 723

def shopify_sync_statuses
  @shopify_sync_statuses ||= ::Io::Flow::V0::Clients::ShopifySyncStatuses.new(self)
end

#statementsObject



727
728
729
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 727

def statements
  @statements ||= ::Io::Flow::V0::Clients::Statements.new(self)
end

#subcatalog_itemsObject



179
180
181
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 179

def subcatalog_items
  @subcatalog_items ||= ::Io::Flow::V0::Clients::SubcatalogItems.new(self)
end

#subcatalogsObject



175
176
177
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 175

def subcatalogs
  @subcatalogs ||= ::Io::Flow::V0::Clients::Subcatalogs.new(self)
end

#suggestionsObject



731
732
733
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 731

def suggestions
  @suggestions ||= ::Io::Flow::V0::Clients::Suggestions.new(self)
end

#surcharge_settingsObject



315
316
317
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 315

def surcharge_settings
  @surcharge_settings ||= ::Io::Flow::V0::Clients::SurchargeSettings.new(self)
end

#sync_pending_recordsObject



735
736
737
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 735

def sync_pending_records
  @sync_pending_records ||= ::Io::Flow::V0::Clients::SyncPendingRecords.new(self)
end

#sync_record_failuresObject



743
744
745
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 743

def sync_record_failures
  @sync_record_failures ||= ::Io::Flow::V0::Clients::SyncRecordFailures.new(self)
end

#sync_recordsObject



739
740
741
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 739

def sync_records
  @sync_records ||= ::Io::Flow::V0::Clients::SyncRecords.new(self)
end

#sync_streamsObject



747
748
749
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 747

def sync_streams
  @sync_streams ||= ::Io::Flow::V0::Clients::SyncStreams.new(self)
end

#tax_duty_quotesObject



395
396
397
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 395

def tax_duty_quotes
  @tax_duty_quotes ||= ::Io::Flow::V0::Clients::TaxDutyQuotes.new(self)
end

#tax_registrationsObject



195
196
197
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 195

def tax_registrations
  @tax_registrations ||= ::Io::Flow::V0::Clients::TaxRegistrations.new(self)
end

#tax_settingsObject



751
752
753
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 751

def tax_settings
  @tax_settings ||= ::Io::Flow::V0::Clients::TaxSettings.new(self)
end

#tiersObject



319
320
321
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 319

def tiers
  @tiers ||= ::Io::Flow::V0::Clients::Tiers.new(self)
end

#timezonesObject



355
356
357
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 355

def timezones
  @timezones ||= ::Io::Flow::V0::Clients::Timezones.new(self)
end

#token_validationsObject



759
760
761
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 759

def token_validations
  @token_validations ||= ::Io::Flow::V0::Clients::TokenValidations.new(self)
end

#tokensObject



755
756
757
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 755

def tokens
  @tokens ||= ::Io::Flow::V0::Clients::Tokens.new(self)
end

#tracking_eventsObject



327
328
329
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 327

def tracking_events
  @tracking_events ||= ::Io::Flow::V0::Clients::TrackingEvents.new(self)
end

#tracking_labelsObject



331
332
333
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 331

def tracking_labels
  @tracking_labels ||= ::Io::Flow::V0::Clients::TrackingLabels.new(self)
end

#trackingsObject



323
324
325
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 323

def trackings
  @trackings ||= ::Io::Flow::V0::Clients::Trackings.new(self)
end

#trade_agreement_certifiersObject



767
768
769
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 767

def trade_agreement_certifiers
  @trade_agreement_certifiers ||= ::Io::Flow::V0::Clients::TradeAgreementCertifiers.new(self)
end

#trade_agreementsObject



763
764
765
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 763

def trade_agreements
  @trade_agreements ||= ::Io::Flow::V0::Clients::TradeAgreements.new(self)
end

#transactionsObject



771
772
773
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 771

def transactions
  @transactions ||= ::Io::Flow::V0::Clients::Transactions.new(self)
end

#ultimate_beneficiary_ownersObject



775
776
777
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 775

def ultimate_beneficiary_owners
  @ultimate_beneficiary_owners ||= ::Io::Flow::V0::Clients::UltimateBeneficiaryOwners.new(self)
end

#uploadsObject



779
780
781
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 779

def uploads
  @uploads ||= ::Io::Flow::V0::Clients::Uploads.new(self)
end

#usersObject



783
784
785
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 783

def users
  @users ||= ::Io::Flow::V0::Clients::Users.new(self)
end

#virtual_card_capturesObject



239
240
241
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 239

def virtual_card_captures
  @virtual_card_captures ||= ::Io::Flow::V0::Clients::VirtualCardCaptures.new(self)
end

#virtual_card_refundsObject



243
244
245
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 243

def virtual_card_refunds
  @virtual_card_refunds ||= ::Io::Flow::V0::Clients::VirtualCardRefunds.new(self)
end

#virtual_cardsObject



235
236
237
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 235

def virtual_cards
  @virtual_cards ||= ::Io::Flow::V0::Clients::VirtualCards.new(self)
end

#webhook_deliveriesObject



339
340
341
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 339

def webhook_deliveries
  @webhook_deliveries ||= ::Io::Flow::V0::Clients::WebhookDeliveries.new(self)
end

#webhook_settingsObject



343
344
345
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 343

def webhook_settings
  @webhook_settings ||= ::Io::Flow::V0::Clients::WebhookSettings.new(self)
end

#webhooksObject



335
336
337
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 335

def webhooks
  @webhooks ||= ::Io::Flow::V0::Clients::Webhooks.new(self)
end