Class: Google::Apis::DfareportingV4::BillingProfile
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV4::BillingProfile
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dfareporting_v4/classes.rb,
lib/google/apis/dfareporting_v4/representations.rb,
lib/google/apis/dfareporting_v4/representations.rb
Overview
Contains properties of a Campaign Manager Billing Profile.
Instance Attribute Summary collapse
-
#consolidated_invoice ⇒ Boolean
(also: #consolidated_invoice?)
Consolidated invoice option for this billing profile.
-
#country_code ⇒ String
Country code of this billing profile.This is a read-only field.
-
#currency_code ⇒ String
Billing currency code in ISO 4217 format.This is a read-only field.
-
#id ⇒ Fixnum
ID of this billing profile.
-
#invoice_level ⇒ String
Invoice level for this billing profile.
-
#is_default ⇒ Boolean
(also: #is_default?)
True if the billing profile is the account default profile.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#name ⇒ String
Name of this billing profile.
-
#payments_account_id ⇒ String
The ID of the payment account the billing profile belongs to.
-
#payments_customer_id ⇒ String
The ID of the payment customer the billing profile belongs to.
-
#purchase_order ⇒ String
Purchase order (PO) for this billing profile.
-
#secondary_payments_customer_id ⇒ String
The ID of the secondary payment customer the billing profile belongs to.
-
#status ⇒ String
Status of this billing profile.This is a read-only field.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BillingProfile
constructor
A new instance of BillingProfile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BillingProfile
Returns a new instance of BillingProfile.
1496 1497 1498 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1496 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consolidated_invoice ⇒ Boolean Also known as: consolidated_invoice?
Consolidated invoice option for this billing profile. Used to get a single,
consolidated invoice across the chosen invoice level.
Corresponds to the JSON property consolidatedInvoice
1423 1424 1425 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1423 def consolidated_invoice @consolidated_invoice end |
#country_code ⇒ String
Country code of this billing profile.This is a read-only field.
Corresponds to the JSON property countryCode
1429 1430 1431 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1429 def country_code @country_code end |
#currency_code ⇒ String
Billing currency code in ISO 4217 format.This is a read-only field.
Corresponds to the JSON property currencyCode
1434 1435 1436 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1434 def currency_code @currency_code end |
#id ⇒ Fixnum
ID of this billing profile. This is a read-only, auto-generated field.
Corresponds to the JSON property id
1439 1440 1441 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1439 def id @id end |
#invoice_level ⇒ String
Invoice level for this billing profile. Used to group fees into separate
invoices by account, advertiser, or campaign.
Corresponds to the JSON property invoiceLevel
1445 1446 1447 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1445 def invoice_level @invoice_level end |
#is_default ⇒ Boolean Also known as: is_default?
True if the billing profile is the account default profile. This is a read-
only field.
Corresponds to the JSON property isDefault
1451 1452 1453 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1451 def is_default @is_default end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
dfareporting#billingProfile".
Corresponds to the JSON property kind
1458 1459 1460 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1458 def kind @kind end |
#name ⇒ String
Name of this billing profile. This is a required field and must be less than
256 characters long and must be unique among billing profile in the same
account.
Corresponds to the JSON property name
1465 1466 1467 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1465 def name @name end |
#payments_account_id ⇒ String
The ID of the payment account the billing profile belongs to. This is a read-
only field.
Corresponds to the JSON property paymentsAccountId
1471 1472 1473 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1471 def payments_account_id @payments_account_id end |
#payments_customer_id ⇒ String
The ID of the payment customer the billing profile belongs to. This is a read-
only field.
Corresponds to the JSON property paymentsCustomerId
1477 1478 1479 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1477 def payments_customer_id @payments_customer_id end |
#purchase_order ⇒ String
Purchase order (PO) for this billing profile. This PO number is used in the
invoices for all of the advertisers in this billing profile.
Corresponds to the JSON property purchaseOrder
1483 1484 1485 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1483 def purchase_order @purchase_order end |
#secondary_payments_customer_id ⇒ String
The ID of the secondary payment customer the billing profile belongs to. This
is a read-only field.
Corresponds to the JSON property secondaryPaymentsCustomerId
1489 1490 1491 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1489 def secondary_payments_customer_id @secondary_payments_customer_id end |
#status ⇒ String
Status of this billing profile.This is a read-only field.
Corresponds to the JSON property status
1494 1495 1496 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1494 def status @status end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 1501 def update!(**args) @consolidated_invoice = args[:consolidated_invoice] if args.key?(:consolidated_invoice) @country_code = args[:country_code] if args.key?(:country_code) @currency_code = args[:currency_code] if args.key?(:currency_code) @id = args[:id] if args.key?(:id) @invoice_level = args[:invoice_level] if args.key?(:invoice_level) @is_default = args[:is_default] if args.key?(:is_default) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @payments_account_id = args[:payments_account_id] if args.key?(:payments_account_id) @payments_customer_id = args[:payments_customer_id] if args.key?(:payments_customer_id) @purchase_order = args[:purchase_order] if args.key?(:purchase_order) @secondary_payments_customer_id = args[:secondary_payments_customer_id] if args.key?(:secondary_payments_customer_id) @status = args[:status] if args.key?(:status) end |