Class: Google::Apis::ContentV2_1::AccountReturnCarrier
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::AccountReturnCarrier
- 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
-
#carrier_account_id ⇒ Fixnum
Output only.
-
#carrier_account_name ⇒ String
Name of the carrier account.
-
#carrier_account_number ⇒ String
Number of the carrier account.
-
#carrier_code ⇒ String
The carrier code enum.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccountReturnCarrier
constructor
A new instance of AccountReturnCarrier.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_id ⇒ Fixnum
Output only. Immutable. The Google-provided unique carrier ID, used to update
the resource.
Corresponds to the JSON property carrierAccountId
934 935 936 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 934 def carrier_account_id @carrier_account_id end |
#carrier_account_name ⇒ String
Name of the carrier account.
Corresponds to the JSON property carrierAccountName
939 940 941 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 939 def carrier_account_name @carrier_account_name end |
#carrier_account_number ⇒ String
Number of the carrier account.
Corresponds to the JSON property carrierAccountNumber
944 945 946 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 944 def carrier_account_number @carrier_account_number end |
#carrier_code ⇒ String
The carrier code enum. Accepts the values FEDEX or UPS.
Corresponds to the JSON property carrierCode
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 |