Sha256: 88d875eb198eeff4edea1e78f91babd5c8599f0c1478d4ed3c4e9a423eecaafe
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
require_relative "../examples" RSpec.describe "CustomerManagement service" do include_context "use api" it "creates customer" do created_customer = api.customer_management.signup_customer( customer: { customer_address: { city: "Paris", postal_code: 75_001, line1: "1 rue de Rivoli", country_code: "FR" }, industry: "Entertainment", name: "Test Customer #{random}" }, account: { "@type" => "AdvertiserAccount", :name => "Test Account #{random}", :currency_code => "USD" }, parent_customer_id: Examples.parent_customer_id ) expect(created_customer).to include( customer_id: a_kind_of(String), customer_number: a_kind_of(String), account_id: a_kind_of(String), account_number: a_kind_of(String), create_time: a_kind_of(String) ) puts "You can now fill in examples.rb with customer_id: #{created_customer[:customer_id]} and account_id: #{created_customer[:account_id]}" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bing_ads_ruby_sdk-1.5.0 | spec/examples/1_customer_creation/customer_spec.rb |