class Google::Apis::ContentV2_1::AccountReturnCarrier

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

Attributes

carrier_account_id[RW]

Output only. Immutable. The Google-provided unique carrier ID, used to update the resource. Corresponds to the JSON property `carrierAccountId` @return [Fixnum]

carrier_account_name[RW]

Name of the carrier account. Corresponds to the JSON property `carrierAccountName` @return [String]

carrier_account_number[RW]

Number of the carrier account. Corresponds to the JSON property `carrierAccountNumber` @return [String]

carrier_code[RW]

The carrier code enum. Accepts the values FEDEX or UPS. Corresponds to the JSON property `carrierCode` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2_1/classes.rb, line 448
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2_1/classes.rb, line 453
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