Class: Google::Apis::ContentV2_1::AccountReturnCarrier

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb

Overview

The return carrier information. This service is designed for merchants enrolled in the Buy on Google program.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccountReturnCarrier

Returns a new instance of AccountReturnCarrier.



951
952
953
# File 'lib/google/apis/content_v2_1/classes.rb', line 951

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#carrier_account_idFixnum

Output only. Immutable. The Google-provided unique carrier ID, used to update the resource. Corresponds to the JSON property carrierAccountId

Returns:

  • (Fixnum)


934
935
936
# File 'lib/google/apis/content_v2_1/classes.rb', line 934

def 
  @carrier_account_id
end

#carrier_account_nameString

Name of the carrier account. Corresponds to the JSON property carrierAccountName

Returns:

  • (String)


939
940
941
# File 'lib/google/apis/content_v2_1/classes.rb', line 939

def 
  @carrier_account_name
end

#carrier_account_numberString

Number of the carrier account. Corresponds to the JSON property carrierAccountNumber

Returns:

  • (String)


944
945
946
# File 'lib/google/apis/content_v2_1/classes.rb', line 944

def 
  @carrier_account_number
end

#carrier_codeString

The carrier code enum. Accepts the values FEDEX or UPS. Corresponds to the JSON property carrierCode

Returns:

  • (String)


949
950
951
# File 'lib/google/apis/content_v2_1/classes.rb', line 949

def carrier_code
  @carrier_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



956
957
958
959
960
961
# File 'lib/google/apis/content_v2_1/classes.rb', line 956

def update!(**args)
  @carrier_account_id = args[:carrier_account_id] if args.key?(:carrier_account_id)
  @carrier_account_name = args[:carrier_account_name] if args.key?(:carrier_account_name)
  @carrier_account_number = args[:carrier_account_number] if args.key?(:carrier_account_number)
  @carrier_code = args[:carrier_code] if args.key?(:carrier_code)
end