func GetCreditCardPaymentDetailCreditCardTypeEnumStringValues() []string
GetCreditCardPaymentDetailCreditCardTypeEnumStringValues Enumerates the set of values in String for CreditCardPaymentDetailCreditCardTypeEnum
func GetCreditCardTypeEnumStringValues() []string
GetCreditCardTypeEnumStringValues Enumerates the set of values in String for CreditCardTypeEnum
func GetInvoiceInvoiceStatusEnumStringValues() []string
GetInvoiceInvoiceStatusEnumStringValues Enumerates the set of values in String for InvoiceInvoiceStatusEnum
func GetInvoiceInvoiceTypeEnumStringValues() []string
GetInvoiceInvoiceTypeEnumStringValues Enumerates the set of values in String for InvoiceInvoiceTypeEnum
func GetInvoiceSummaryInvoiceStatusEnumStringValues() []string
GetInvoiceSummaryInvoiceStatusEnumStringValues Enumerates the set of values in String for InvoiceSummaryInvoiceStatusEnum
func GetInvoiceSummaryInvoiceTypeEnumStringValues() []string
GetInvoiceSummaryInvoiceTypeEnumStringValues Enumerates the set of values in String for InvoiceSummaryInvoiceTypeEnum
func GetListInvoicesSortByEnumStringValues() []string
GetListInvoicesSortByEnumStringValues Enumerates the set of values in String for ListInvoicesSortByEnum
func GetListInvoicesSortOrderEnumStringValues() []string
GetListInvoicesSortOrderEnumStringValues Enumerates the set of values in String for ListInvoicesSortOrderEnum
func GetListInvoicesStatusEnumStringValues() []string
GetListInvoicesStatusEnumStringValues Enumerates the set of values in String for ListInvoicesStatusEnum
func GetListInvoicesTypeEnumStringValues() []string
GetListInvoicesTypeEnumStringValues Enumerates the set of values in String for ListInvoicesTypeEnum
func GetListSubscriptionsSortByEnumStringValues() []string
GetListSubscriptionsSortByEnumStringValues Enumerates the set of values in String for ListSubscriptionsSortByEnum
func GetListSubscriptionsSortOrderEnumStringValues() []string
GetListSubscriptionsSortOrderEnumStringValues Enumerates the set of values in String for ListSubscriptionsSortOrderEnum
func GetOtherPaymentDetailCreditCardTypeEnumStringValues() []string
GetOtherPaymentDetailCreditCardTypeEnumStringValues Enumerates the set of values in String for OtherPaymentDetailCreditCardTypeEnum
func GetPaymentDetailPaymentMethodEnumStringValues() []string
GetPaymentDetailPaymentMethodEnumStringValues Enumerates the set of values in String for PaymentDetailPaymentMethodEnum
func GetPaymentMethodEnumStringValues() []string
GetPaymentMethodEnumStringValues Enumerates the set of values in String for PaymentMethodEnum
func GetSubscriptionPlanTypeEnumStringValues() []string
GetSubscriptionPlanTypeEnumStringValues Enumerates the set of values in String for SubscriptionPlanTypeEnum
func GetSubscriptionSummaryPlanTypeEnumStringValues() []string
GetSubscriptionSummaryPlanTypeEnumStringValues Enumerates the set of values in String for SubscriptionSummaryPlanTypeEnum
func GetSubscriptionSummaryUpgradeStateDetailsEnumStringValues() []string
GetSubscriptionSummaryUpgradeStateDetailsEnumStringValues Enumerates the set of values in String for SubscriptionSummaryUpgradeStateDetailsEnum
func GetSubscriptionSummaryUpgradeStateEnumStringValues() []string
GetSubscriptionSummaryUpgradeStateEnumStringValues Enumerates the set of values in String for SubscriptionSummaryUpgradeStateEnum
func GetSubscriptionUpgradeStateDetailsEnumStringValues() []string
GetSubscriptionUpgradeStateDetailsEnumStringValues Enumerates the set of values in String for SubscriptionUpgradeStateDetailsEnum
func GetSubscriptionUpgradeStateEnumStringValues() []string
GetSubscriptionUpgradeStateEnumStringValues Enumerates the set of values in String for SubscriptionUpgradeStateEnum
AuthorizeSubscriptionPaymentDetails Request object for a subscription payment authorization
type AuthorizeSubscriptionPaymentDetails struct { Subscription *Subscription `mandatory:"true" json:"subscription"` // Language code LanguageCode *string `mandatory:"true" json:"languageCode"` // User email Email *string `mandatory:"true" json:"email"` }
func (m AuthorizeSubscriptionPaymentDetails) String() string
func (m AuthorizeSubscriptionPaymentDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AuthorizeSubscriptionPaymentReceipt Subscription payment authorization response
type AuthorizeSubscriptionPaymentReceipt struct { // Payment header id HeaderId *string `mandatory:"true" json:"headerId"` // Parameters in a token for Payment Service ApiToken *string `mandatory:"false" json:"apiToken"` // Session token created for Payment Service UserToken *string `mandatory:"false" json:"userToken"` }
func (m AuthorizeSubscriptionPaymentReceipt) String() string
func (m AuthorizeSubscriptionPaymentReceipt) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AuthorizeSubscriptionPaymentRequest wrapper for the AuthorizeSubscriptionPayment operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.2.0/ospgateway/AuthorizeSubscriptionPayment.go.html to see an example of how to use AuthorizeSubscriptionPaymentRequest.
type AuthorizeSubscriptionPaymentRequest struct { // The home region's public name of the logged in user. OspHomeRegion *string `mandatory:"true" contributesTo:"query" name:"ospHomeRegion"` // Subscription id(OCID). SubscriptionId *string `mandatory:"true" contributesTo:"path" name:"subscriptionId"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // subscription payment request. AuthorizeSubscriptionPaymentDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call // for a resource, set the `if-match` parameter to the value of the // etag from a previous GET or POST response for that resource. // The resource will be updated or deleted only if the etag you // provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // For requests that are not idempotent (creates being the main place of interest), THE APIs should take a header // called opc-retry-token to identify the customer desire across requests, to introduce some level of idempotency. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a // particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request AuthorizeSubscriptionPaymentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request AuthorizeSubscriptionPaymentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request AuthorizeSubscriptionPaymentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request AuthorizeSubscriptionPaymentRequest) String() string
func (request AuthorizeSubscriptionPaymentRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
AuthorizeSubscriptionPaymentResponse wrapper for the AuthorizeSubscriptionPayment operation
type AuthorizeSubscriptionPaymentResponse struct { // The underlying http response RawResponse *http.Response // The AuthorizeSubscriptionPaymentReceipt instance AuthorizeSubscriptionPaymentReceipt `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a // particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` }
func (response AuthorizeSubscriptionPaymentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response AuthorizeSubscriptionPaymentResponse) String() string
BillToAddress Address details model
type BillToAddress struct { // Name of the contact person ContactName *string `mandatory:"false" json:"contactName"` // Name of the customer company CompanyName *string `mandatory:"false" json:"companyName"` // Address line 1 AddressLine1 *string `mandatory:"false" json:"addressLine1"` // Address line 2 AddressLine2 *string `mandatory:"false" json:"addressLine2"` // Address line 3 AddressLine3 *string `mandatory:"false" json:"addressLine3"` // Address line 4 AddressLine4 *string `mandatory:"false" json:"addressLine4"` // Street name StreetName *string `mandatory:"false" json:"streetName"` // House no StreetNumber *string `mandatory:"false" json:"streetNumber"` // Name of the city City *string `mandatory:"false" json:"city"` Country *Country `mandatory:"false" json:"country"` // County name County *string `mandatory:"false" json:"county"` // Name of the state State *string `mandatory:"false" json:"state"` // ZIP no PostalCode *string `mandatory:"false" json:"postalCode"` // Name of the province Province *string `mandatory:"false" json:"province"` }
func (m BillToAddress) String() string
func (m BillToAddress) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
BillingAddress Billing address details model.
type BillingAddress struct { // Address identifier. AddressKey *string `mandatory:"false" json:"addressKey"` // Address line 1. Line1 *string `mandatory:"false" json:"line1"` // Address line 2. Line2 *string `mandatory:"false" json:"line2"` // Name of the city. City *string `mandatory:"false" json:"city"` // Country of the address. Country *string `mandatory:"false" json:"country"` // Post code of the address. PostalCode *string `mandatory:"false" json:"postalCode"` // State of the address. State *string `mandatory:"false" json:"state"` // Contact person email address. EmailAddress *string `mandatory:"false" json:"emailAddress"` // Name of the customer company. CompanyName *string `mandatory:"false" json:"companyName"` // First name of the contact person. FirstName *string `mandatory:"false" json:"firstName"` // Last name of the contact person. LastName *string `mandatory:"false" json:"lastName"` }
func (m BillingAddress) String() string
func (m BillingAddress) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
Country Country details model
type Country struct { // Indentifier of the country. This is a DB side unique id which was generated when the entity was created in the table CountryId *float32 `mandatory:"false" json:"countryId"` // Country code in ISO-3166-1 2-letter format CountryCode *string `mandatory:"false" json:"countryCode"` // Name of the country CountryName *string `mandatory:"false" json:"countryName"` // Language identifier LanguageId *float32 `mandatory:"false" json:"languageId"` // Country code in ISO-3166-1 3-letter format Ascii3CountryCode *string `mandatory:"false" json:"ascii3CountryCode"` }
func (m Country) String() string
func (m Country) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreditCardPaymentDetail Credit card Payment related details
type CreditCardPaymentDetail struct { // Paid the invoice on this day TimePaidOn *common.SDKTime `mandatory:"false" json:"timePaidOn"` // example PaidBy *string `mandatory:"false" json:"paidBy"` // Amount that paid AmountPaid *float32 `mandatory:"false" json:"amountPaid"` // Name on the credit card NameOnCard *string `mandatory:"false" json:"nameOnCard"` // Last four digits of the card LastDigits *string `mandatory:"false" json:"lastDigits"` // Expired date of the credit card TimeExpiration *common.SDKTime `mandatory:"false" json:"timeExpiration"` // Credit card type CreditCardType CreditCardPaymentDetailCreditCardTypeEnum `mandatory:"false" json:"creditCardType,omitempty"` }
func (m CreditCardPaymentDetail) GetAmountPaid() *float32
GetAmountPaid returns AmountPaid
func (m CreditCardPaymentDetail) GetPaidBy() *string
GetPaidBy returns PaidBy
func (m CreditCardPaymentDetail) GetTimePaidOn() *common.SDKTime
GetTimePaidOn returns TimePaidOn
func (m CreditCardPaymentDetail) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m CreditCardPaymentDetail) String() string
func (m CreditCardPaymentDetail) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreditCardPaymentDetailCreditCardTypeEnum Enum with underlying type: string
type CreditCardPaymentDetailCreditCardTypeEnum string
Set of constants representing the allowable values for CreditCardPaymentDetailCreditCardTypeEnum
const ( CreditCardPaymentDetailCreditCardTypeVisa CreditCardPaymentDetailCreditCardTypeEnum = "VISA" CreditCardPaymentDetailCreditCardTypeAmex CreditCardPaymentDetailCreditCardTypeEnum = "AMEX" CreditCardPaymentDetailCreditCardTypeMastercard CreditCardPaymentDetailCreditCardTypeEnum = "MASTERCARD" CreditCardPaymentDetailCreditCardTypeDiscover CreditCardPaymentDetailCreditCardTypeEnum = "DISCOVER" CreditCardPaymentDetailCreditCardTypeJcb CreditCardPaymentDetailCreditCardTypeEnum = "JCB" CreditCardPaymentDetailCreditCardTypeDiner CreditCardPaymentDetailCreditCardTypeEnum = "DINER" CreditCardPaymentDetailCreditCardTypeElo CreditCardPaymentDetailCreditCardTypeEnum = "ELO" )
func GetCreditCardPaymentDetailCreditCardTypeEnumValues() []CreditCardPaymentDetailCreditCardTypeEnum
GetCreditCardPaymentDetailCreditCardTypeEnumValues Enumerates the set of values for CreditCardPaymentDetailCreditCardTypeEnum
func GetMappingCreditCardPaymentDetailCreditCardTypeEnum(val string) (CreditCardPaymentDetailCreditCardTypeEnum, bool)
GetMappingCreditCardPaymentDetailCreditCardTypeEnum performs case Insensitive comparison on enum value and return the desired enum
CreditCardPaymentOption Credit card Payment related details
type CreditCardPaymentOption struct { // Wallet instrument internal id. WalletInstrumentId *string `mandatory:"false" json:"walletInstrumentId"` // Wallet transaction id. WalletTransactionId *string `mandatory:"false" json:"walletTransactionId"` // Last four digits of the card. LastDigits *string `mandatory:"false" json:"lastDigits"` // Name on the credit card. NameOnCard *string `mandatory:"false" json:"nameOnCard"` // Expired date of the credit card. TimeExpiration *common.SDKTime `mandatory:"false" json:"timeExpiration"` // Credit card type. CreditCardType CreditCardTypeEnum `mandatory:"false" json:"creditCardType,omitempty"` }
func (m CreditCardPaymentOption) GetWalletInstrumentId() *string
GetWalletInstrumentId returns WalletInstrumentId
func (m CreditCardPaymentOption) GetWalletTransactionId() *string
GetWalletTransactionId returns WalletTransactionId
func (m CreditCardPaymentOption) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m CreditCardPaymentOption) String() string
func (m CreditCardPaymentOption) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
CreditCardTypeEnum Enum with underlying type: string
type CreditCardTypeEnum string
Set of constants representing the allowable values for CreditCardTypeEnum
const ( CreditCardTypeVisa CreditCardTypeEnum = "VISA" CreditCardTypeAmex CreditCardTypeEnum = "AMEX" CreditCardTypeMastercard CreditCardTypeEnum = "MASTERCARD" CreditCardTypeDiscover CreditCardTypeEnum = "DISCOVER" CreditCardTypeJcb CreditCardTypeEnum = "JCB" CreditCardTypeDiner CreditCardTypeEnum = "DINER" CreditCardTypeElo CreditCardTypeEnum = "ELO" )
func GetCreditCardTypeEnumValues() []CreditCardTypeEnum
GetCreditCardTypeEnumValues Enumerates the set of values for CreditCardTypeEnum
func GetMappingCreditCardTypeEnum(val string) (CreditCardTypeEnum, bool)
GetMappingCreditCardTypeEnum performs case Insensitive comparison on enum value and return the desired enum
Currency Currency details model
type Currency struct { // Currency code CurrencyCode *string `mandatory:"false" json:"currencyCode"` // Currency symbol CurrencySymbol *string `mandatory:"false" json:"currencySymbol"` // Name of the currency Name *string `mandatory:"false" json:"name"` // USD conversion rate of the currency UsdConversion *float32 `mandatory:"false" json:"usdConversion"` // Round decimal point RoundDecimalPoint *float32 `mandatory:"false" json:"roundDecimalPoint"` }
func (m Currency) String() string
func (m Currency) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DownloadPdfContentRequest wrapper for the DownloadPdfContent operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.2.0/ospgateway/DownloadPdfContent.go.html to see an example of how to use DownloadPdfContentRequest.
type DownloadPdfContentRequest struct { // The home region's public name of the logged in user. OspHomeRegion *string `mandatory:"true" contributesTo:"query" name:"ospHomeRegion"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The identifier of the invoice. InternalInvoiceId *string `mandatory:"true" contributesTo:"path" name:"internalInvoiceId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a // particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request DownloadPdfContentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request DownloadPdfContentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request DownloadPdfContentRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request DownloadPdfContentRequest) String() string
func (request DownloadPdfContentRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
DownloadPdfContentResponse wrapper for the DownloadPdfContent operation
type DownloadPdfContentResponse struct { // The underlying http response RawResponse *http.Response // The io.ReadCloser instance Content io.ReadCloser `presentIn:"body" encoding:"binary"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a // particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // Set content to download ContentDisposition *string `presentIn:"header" name:"content-disposition"` // Set the content type to download ContentType *string `presentIn:"header" name:"content-type"` // Set the content length to download ContentLength *int `presentIn:"header" name:"content-length"` }
func (response DownloadPdfContentResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response DownloadPdfContentResponse) String() string
GetInvoiceRequest wrapper for the GetInvoice operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.2.0/ospgateway/GetInvoice.go.html to see an example of how to use GetInvoiceRequest.
type GetInvoiceRequest struct { // The home region's public name of the logged in user. OspHomeRegion *string `mandatory:"true" contributesTo:"query" name:"ospHomeRegion"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The identifier of the invoice. InternalInvoiceId *string `mandatory:"true" contributesTo:"path" name:"internalInvoiceId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a // particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetInvoiceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetInvoiceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetInvoiceRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetInvoiceRequest) String() string
func (request GetInvoiceRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetInvoiceResponse wrapper for the GetInvoice operation
type GetInvoiceResponse struct { // The underlying http response RawResponse *http.Response // The Invoice instance Invoice `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a // particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetInvoiceResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetInvoiceResponse) String() string
GetSubscriptionRequest wrapper for the GetSubscription operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.2.0/ospgateway/GetSubscription.go.html to see an example of how to use GetSubscriptionRequest.
type GetSubscriptionRequest struct { // Subscription id(OCID). SubscriptionId *string `mandatory:"true" contributesTo:"path" name:"subscriptionId"` // The home region's public name of the logged in user. OspHomeRegion *string `mandatory:"true" contributesTo:"query" name:"ospHomeRegion"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a // particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request GetSubscriptionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request GetSubscriptionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request GetSubscriptionRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request GetSubscriptionRequest) String() string
func (request GetSubscriptionRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
GetSubscriptionResponse wrapper for the GetSubscription operation
type GetSubscriptionResponse struct { // The underlying http response RawResponse *http.Response // The Subscription instance Subscription `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a // particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response GetSubscriptionResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response GetSubscriptionResponse) String() string
Invoice Invoice details
type Invoice struct { // Invoice identifier which is generated on the on-premise sie. Pls note this is not an OCID InvoiceId *string `mandatory:"true" json:"invoiceId"` // Invoice external reference InvoiceNumber *string `mandatory:"false" json:"invoiceNumber"` // Transaction identifier InternalInvoiceId *string `mandatory:"false" json:"internalInvoiceId"` // Is credit card payment eligible IsCreditCardPayable *bool `mandatory:"false" json:"isCreditCardPayable"` // Date of invoice TimeInvoice *common.SDKTime `mandatory:"false" json:"timeInvoice"` // Tax of invoice amount Tax *float32 `mandatory:"false" json:"tax"` // Total amount of invoice InvoiceAmount *float32 `mandatory:"false" json:"invoiceAmount"` // Balance of invoice InvoiceAmountDue *float32 `mandatory:"false" json:"invoiceAmountDue"` // Invoice amount credit InvoiceAmountCredited *float32 `mandatory:"false" json:"invoiceAmountCredited"` // Invoice amount adjust InvoiceAmountAdjusted *float32 `mandatory:"false" json:"invoiceAmountAdjusted"` // Invoice amount applied InvoiceAmountApplied *float32 `mandatory:"false" json:"invoiceAmountApplied"` Currency *Currency `mandatory:"false" json:"currency"` // Type of invoice InvoiceType InvoiceInvoiceTypeEnum `mandatory:"false" json:"invoiceType,omitempty"` // Due date of invoice TimeInvoiceDue *common.SDKTime `mandatory:"false" json:"timeInvoiceDue"` // Invoice reference number InvoiceRefNumber *string `mandatory:"false" json:"invoiceRefNumber"` // Invoice PO number InvoicePoNumber *string `mandatory:"false" json:"invoicePoNumber"` // Invoice status InvoiceStatus InvoiceInvoiceStatusEnum `mandatory:"false" json:"invoiceStatus,omitempty"` // Preferred Email on the invoice PreferredEmail *string `mandatory:"false" json:"preferredEmail"` // Is emailing pdf allowed IsPdfEmailAvailable *bool `mandatory:"false" json:"isPdfEmailAvailable"` // Is pdf download access allowed IsDisplayDownloadPdf *bool `mandatory:"false" json:"isDisplayDownloadPdf"` // Whether invoice can be payed IsPayable *bool `mandatory:"false" json:"isPayable"` // Payment terms PaymentTerms *string `mandatory:"false" json:"paymentTerms"` LastPaymentDetail PaymentDetail `mandatory:"false" json:"lastPaymentDetail"` BillToAddress *BillToAddress `mandatory:"false" json:"billToAddress"` // List of subscription identifiers SubscriptionIds []string `mandatory:"false" json:"subscriptionIds"` }
func (m Invoice) String() string
func (m *Invoice) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (m Invoice) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
InvoiceCollection Invoice list
type InvoiceCollection struct { // Invoice list elements Items []InvoiceSummary `mandatory:"true" json:"items"` }
func (m InvoiceCollection) String() string
func (m InvoiceCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
InvoiceInvoiceStatusEnum Enum with underlying type: string
type InvoiceInvoiceStatusEnum string
Set of constants representing the allowable values for InvoiceInvoiceStatusEnum
const ( InvoiceInvoiceStatusOpen InvoiceInvoiceStatusEnum = "OPEN" InvoiceInvoiceStatusPastDue InvoiceInvoiceStatusEnum = "PAST_DUE" InvoiceInvoiceStatusPaymentSubmitted InvoiceInvoiceStatusEnum = "PAYMENT_SUBMITTED" InvoiceInvoiceStatusClosed InvoiceInvoiceStatusEnum = "CLOSED" )
func GetInvoiceInvoiceStatusEnumValues() []InvoiceInvoiceStatusEnum
GetInvoiceInvoiceStatusEnumValues Enumerates the set of values for InvoiceInvoiceStatusEnum
func GetMappingInvoiceInvoiceStatusEnum(val string) (InvoiceInvoiceStatusEnum, bool)
GetMappingInvoiceInvoiceStatusEnum performs case Insensitive comparison on enum value and return the desired enum
InvoiceInvoiceTypeEnum Enum with underlying type: string
type InvoiceInvoiceTypeEnum string
Set of constants representing the allowable values for InvoiceInvoiceTypeEnum
const ( InvoiceInvoiceTypeHardware InvoiceInvoiceTypeEnum = "HARDWARE" InvoiceInvoiceTypeSubscription InvoiceInvoiceTypeEnum = "SUBSCRIPTION" InvoiceInvoiceTypeSupport InvoiceInvoiceTypeEnum = "SUPPORT" InvoiceInvoiceTypeLicense InvoiceInvoiceTypeEnum = "LICENSE" InvoiceInvoiceTypeEducation InvoiceInvoiceTypeEnum = "EDUCATION" InvoiceInvoiceTypeConsulting InvoiceInvoiceTypeEnum = "CONSULTING" InvoiceInvoiceTypeService InvoiceInvoiceTypeEnum = "SERVICE" InvoiceInvoiceTypeUsage InvoiceInvoiceTypeEnum = "USAGE" )
func GetInvoiceInvoiceTypeEnumValues() []InvoiceInvoiceTypeEnum
GetInvoiceInvoiceTypeEnumValues Enumerates the set of values for InvoiceInvoiceTypeEnum
func GetMappingInvoiceInvoiceTypeEnum(val string) (InvoiceInvoiceTypeEnum, bool)
GetMappingInvoiceInvoiceTypeEnum performs case Insensitive comparison on enum value and return the desired enum
InvoiceLineCollection Invoice line list
type InvoiceLineCollection struct { // Invoice line list elements Items []InvoiceLineSummary `mandatory:"true" json:"items"` }
func (m InvoiceLineCollection) String() string
func (m InvoiceLineCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
InvoiceLineSummary Product items of the invoice
type InvoiceLineSummary struct { // Product of the item Product *string `mandatory:"true" json:"product"` // Product of the item OrderNo *string `mandatory:"false" json:"orderNo"` // Part number PartNumber *string `mandatory:"false" json:"partNumber"` // Start date TimeStart *common.SDKTime `mandatory:"false" json:"timeStart"` // End date TimeEnd *common.SDKTime `mandatory:"false" json:"timeEnd"` // Quantity of the ordered product Quantity *float32 `mandatory:"false" json:"quantity"` // Unit price of the ordered product NetUnitPrice *float32 `mandatory:"false" json:"netUnitPrice"` // Total price of the ordered product (Net unit price x quantity) TotalPrice *float32 `mandatory:"false" json:"totalPrice"` Currency *Currency `mandatory:"false" json:"currency"` }
func (m InvoiceLineSummary) String() string
func (m InvoiceLineSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
InvoiceServiceClient a client for InvoiceService
type InvoiceServiceClient struct { common.BaseClient // contains filtered or unexported fields }
func NewInvoiceServiceClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client InvoiceServiceClient, err error)
NewInvoiceServiceClientWithConfigurationProvider Creates a new default InvoiceService client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewInvoiceServiceClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client InvoiceServiceClient, err error)
NewInvoiceServiceClientWithOboToken Creates a new default InvoiceService client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
as well as reading the region
func (client *InvoiceServiceClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client InvoiceServiceClient) DownloadPdfContent(ctx context.Context, request DownloadPdfContentRequest) (response DownloadPdfContentResponse, err error)
DownloadPdfContent Returns an invoice in pdf format
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.2.0/ospgateway/DownloadPdfContent.go.html to see an example of how to use DownloadPdfContent API.
func (client InvoiceServiceClient) GetInvoice(ctx context.Context, request GetInvoiceRequest) (response GetInvoiceResponse, err error)
GetInvoice Returns an invoice by invoice id
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.2.0/ospgateway/GetInvoice.go.html to see an example of how to use GetInvoice API.
func (client InvoiceServiceClient) ListInvoiceLines(ctx context.Context, request ListInvoiceLinesRequest) (response ListInvoiceLinesResponse, err error)
ListInvoiceLines Returns the invoice product list by invoice id
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.2.0/ospgateway/ListInvoiceLines.go.html to see an example of how to use ListInvoiceLines API.
func (client InvoiceServiceClient) ListInvoices(ctx context.Context, request ListInvoicesRequest) (response ListInvoicesResponse, err error)
ListInvoices Returns a list of invoices
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.2.0/ospgateway/ListInvoices.go.html to see an example of how to use ListInvoices API.
func (client InvoiceServiceClient) PayInvoice(ctx context.Context, request PayInvoiceRequest) (response PayInvoiceResponse, err error)
PayInvoice Pay an invoice
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.2.0/ospgateway/PayInvoice.go.html to see an example of how to use PayInvoice API.
func (client *InvoiceServiceClient) SetRegion(region string)
SetRegion overrides the region of this client.
InvoiceSummary Invoice list elements
type InvoiceSummary struct { // Invoice identifier InvoiceId *string `mandatory:"true" json:"invoiceId"` // Invoice external reference InvoiceNumber *string `mandatory:"false" json:"invoiceNumber"` // PC invoice identifier InternalInvoiceId *string `mandatory:"false" json:"internalInvoiceId"` // Is credit card payment eligible IsCreditCardPayable *bool `mandatory:"false" json:"isCreditCardPayable"` // Invoice status InvoiceStatus InvoiceSummaryInvoiceStatusEnum `mandatory:"false" json:"invoiceStatus,omitempty"` // Type of invoice InvoiceType InvoiceSummaryInvoiceTypeEnum `mandatory:"false" json:"invoiceType,omitempty"` // Is the invoice has been already payed IsPaid *bool `mandatory:"false" json:"isPaid"` // Whether invoice can be payed IsPayable *bool `mandatory:"false" json:"isPayable"` // Invoice amount InvoiceAmount *float32 `mandatory:"false" json:"invoiceAmount"` // Invoice amount due InvoiceAmountDue *float32 `mandatory:"false" json:"invoiceAmountDue"` // Invoice amount credit InvoiceAmountCredited *float32 `mandatory:"false" json:"invoiceAmountCredited"` // Invoice amount adjust InvoiceAmountAdjusted *float32 `mandatory:"false" json:"invoiceAmountAdjusted"` // Invoice amount applied InvoiceAmountApplied *float32 `mandatory:"false" json:"invoiceAmountApplied"` // Due date of invoice amount TimeInvoiceDue *common.SDKTime `mandatory:"false" json:"timeInvoiceDue"` // Is the last payment failed IsPaymentFailed *bool `mandatory:"false" json:"isPaymentFailed"` // Invoice amount in dispute InvoiceAmountInDispute *float32 `mandatory:"false" json:"invoiceAmountInDispute"` // Invoice reference number InvoiceRefNumber *string `mandatory:"false" json:"invoiceRefNumber"` // Invoice PO number InvoicePoNumber *string `mandatory:"false" json:"invoicePoNumber"` // Date of invoice TimeInvoice *common.SDKTime `mandatory:"false" json:"timeInvoice"` Currency *Currency `mandatory:"false" json:"currency"` // Is emailing pdf allowed IsPdfEmailAvailable *bool `mandatory:"false" json:"isPdfEmailAvailable"` // Is view access allowed IsDisplayViewPdf *bool `mandatory:"false" json:"isDisplayViewPdf"` // Is pdf download access allowed IsDisplayDownloadPdf *bool `mandatory:"false" json:"isDisplayDownloadPdf"` LastPaymentDetail PaymentDetail `mandatory:"false" json:"lastPaymentDetail"` // Name of the bill to customer PartyName *string `mandatory:"false" json:"partyName"` // List of subscription identifiers SubscriptionIds []string `mandatory:"false" json:"subscriptionIds"` }
func (m InvoiceSummary) String() string
func (m *InvoiceSummary) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (m InvoiceSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
InvoiceSummaryInvoiceStatusEnum Enum with underlying type: string
type InvoiceSummaryInvoiceStatusEnum string
Set of constants representing the allowable values for InvoiceSummaryInvoiceStatusEnum
const ( InvoiceSummaryInvoiceStatusOpen InvoiceSummaryInvoiceStatusEnum = "OPEN" InvoiceSummaryInvoiceStatusPastDue InvoiceSummaryInvoiceStatusEnum = "PAST_DUE" InvoiceSummaryInvoiceStatusPaymentSubmitted InvoiceSummaryInvoiceStatusEnum = "PAYMENT_SUBMITTED" InvoiceSummaryInvoiceStatusClosed InvoiceSummaryInvoiceStatusEnum = "CLOSED" )
func GetInvoiceSummaryInvoiceStatusEnumValues() []InvoiceSummaryInvoiceStatusEnum
GetInvoiceSummaryInvoiceStatusEnumValues Enumerates the set of values for InvoiceSummaryInvoiceStatusEnum
func GetMappingInvoiceSummaryInvoiceStatusEnum(val string) (InvoiceSummaryInvoiceStatusEnum, bool)
GetMappingInvoiceSummaryInvoiceStatusEnum performs case Insensitive comparison on enum value and return the desired enum
InvoiceSummaryInvoiceTypeEnum Enum with underlying type: string
type InvoiceSummaryInvoiceTypeEnum string
Set of constants representing the allowable values for InvoiceSummaryInvoiceTypeEnum
const ( InvoiceSummaryInvoiceTypeHardware InvoiceSummaryInvoiceTypeEnum = "HARDWARE" InvoiceSummaryInvoiceTypeSubscription InvoiceSummaryInvoiceTypeEnum = "SUBSCRIPTION" InvoiceSummaryInvoiceTypeSupport InvoiceSummaryInvoiceTypeEnum = "SUPPORT" InvoiceSummaryInvoiceTypeLicense InvoiceSummaryInvoiceTypeEnum = "LICENSE" InvoiceSummaryInvoiceTypeEducation InvoiceSummaryInvoiceTypeEnum = "EDUCATION" InvoiceSummaryInvoiceTypeConsulting InvoiceSummaryInvoiceTypeEnum = "CONSULTING" InvoiceSummaryInvoiceTypeService InvoiceSummaryInvoiceTypeEnum = "SERVICE" InvoiceSummaryInvoiceTypeUsage InvoiceSummaryInvoiceTypeEnum = "USAGE" )
func GetInvoiceSummaryInvoiceTypeEnumValues() []InvoiceSummaryInvoiceTypeEnum
GetInvoiceSummaryInvoiceTypeEnumValues Enumerates the set of values for InvoiceSummaryInvoiceTypeEnum
func GetMappingInvoiceSummaryInvoiceTypeEnum(val string) (InvoiceSummaryInvoiceTypeEnum, bool)
GetMappingInvoiceSummaryInvoiceTypeEnum performs case Insensitive comparison on enum value and return the desired enum
ListInvoiceLinesRequest wrapper for the ListInvoiceLines operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.2.0/ospgateway/ListInvoiceLines.go.html to see an example of how to use ListInvoiceLinesRequest.
type ListInvoiceLinesRequest struct { // The home region's public name of the logged in user. OspHomeRegion *string `mandatory:"true" contributesTo:"query" name:"ospHomeRegion"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The identifier of the invoice. InternalInvoiceId *string `mandatory:"true" contributesTo:"path" name:"internalInvoiceId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a // particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // For list pagination. The value of the opc-next-page response header from the previous "List" call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListInvoiceLinesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListInvoiceLinesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListInvoiceLinesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListInvoiceLinesRequest) String() string
func (request ListInvoiceLinesRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListInvoiceLinesResponse wrapper for the ListInvoiceLines operation
type ListInvoiceLinesResponse struct { // The underlying http response RawResponse *http.Response // A list of InvoiceLineCollection instances InvoiceLineCollection `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a // particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For list pagination. If this header appears in the response, then this // is a partial list of invoices. Include this value as the `page` parameter in a subsequent // GET request to get the next batch of invoices. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // The total number of items that match the query. OpcTotalItems *int `presentIn:"header" name:"opc-total-items"` }
func (response ListInvoiceLinesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListInvoiceLinesResponse) String() string
ListInvoicesRequest wrapper for the ListInvoices operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.2.0/ospgateway/ListInvoices.go.html to see an example of how to use ListInvoicesRequest.
type ListInvoicesRequest struct { // The home region's public name of the logged in user. OspHomeRegion *string `mandatory:"true" contributesTo:"query" name:"ospHomeRegion"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a // particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // The invoice query param (not unique). InvoiceId *string `mandatory:"false" contributesTo:"query" name:"invoiceId"` // A filter to only return resources that match the given type exactly. Type []ListInvoicesTypeEnum `contributesTo:"query" name:"type" omitEmpty:"true" collectionFormat:"multi"` // A filter to only return resources that match the given value. // Looking for partial matches in the following fileds: // Invoice No., Reference No. (plan number), Payment Ref, Total Amount(plan number), Balance Due(plan number) // and Party/Customer Name SearchText *string `mandatory:"false" contributesTo:"query" name:"searchText"` // description: Start time (UTC) of the target invoice date range for which to fetch invoice data (inclusive). TimeInvoiceStart *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeInvoiceStart"` // description: End time (UTC) of the target invoice date range for which to fetch invoice data (exclusive). TimeInvoiceEnd *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timeInvoiceEnd"` // description: Start time (UTC) of the target payment date range for which to fetch invoice data (inclusive). TimePaymentStart *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timePaymentStart"` // description: End time (UTC) of the target payment date range for which to fetch invoice data (exclusive). TimePaymentEnd *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timePaymentEnd"` // A filter to only return resources that match one of the status elements. Status []ListInvoicesStatusEnum `contributesTo:"query" name:"status" omitEmpty:"true" collectionFormat:"multi"` // For list pagination. The value of the opc-next-page response header from the previous "List" call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The field to sort by. Only one field can be selected for sorting. SortBy ListInvoicesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use (ascending or descending). SortOrder ListInvoicesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListInvoicesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListInvoicesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListInvoicesRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListInvoicesRequest) String() string
func (request ListInvoicesRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListInvoicesResponse wrapper for the ListInvoices operation
type ListInvoicesResponse struct { // The underlying http response RawResponse *http.Response // A list of InvoiceCollection instances InvoiceCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a // particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For list pagination. If this header appears in the response, then this // is a partial list of invoices. Include this value as the `page` parameter in a subsequent // GET request to get the next batch of invoices. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // The total number of items that match the query. OpcTotalItems *int `presentIn:"header" name:"opc-total-items"` }
func (response ListInvoicesResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListInvoicesResponse) String() string
ListInvoicesSortByEnum Enum with underlying type: string
type ListInvoicesSortByEnum string
Set of constants representing the allowable values for ListInvoicesSortByEnum
const ( ListInvoicesSortByInvoiceNo ListInvoicesSortByEnum = "INVOICE_NO" ListInvoicesSortByRefNo ListInvoicesSortByEnum = "REF_NO" ListInvoicesSortByStatus ListInvoicesSortByEnum = "STATUS" ListInvoicesSortByType ListInvoicesSortByEnum = "TYPE" ListInvoicesSortByInvoiceDate ListInvoicesSortByEnum = "INVOICE_DATE" ListInvoicesSortByDueDate ListInvoicesSortByEnum = "DUE_DATE" ListInvoicesSortByPaymRef ListInvoicesSortByEnum = "PAYM_REF" ListInvoicesSortByTotalAmount ListInvoicesSortByEnum = "TOTAL_AMOUNT" ListInvoicesSortByBalanceDue ListInvoicesSortByEnum = "BALANCE_DUE" )
func GetListInvoicesSortByEnumValues() []ListInvoicesSortByEnum
GetListInvoicesSortByEnumValues Enumerates the set of values for ListInvoicesSortByEnum
func GetMappingListInvoicesSortByEnum(val string) (ListInvoicesSortByEnum, bool)
GetMappingListInvoicesSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListInvoicesSortOrderEnum Enum with underlying type: string
type ListInvoicesSortOrderEnum string
Set of constants representing the allowable values for ListInvoicesSortOrderEnum
const ( ListInvoicesSortOrderAsc ListInvoicesSortOrderEnum = "ASC" ListInvoicesSortOrderDesc ListInvoicesSortOrderEnum = "DESC" )
func GetListInvoicesSortOrderEnumValues() []ListInvoicesSortOrderEnum
GetListInvoicesSortOrderEnumValues Enumerates the set of values for ListInvoicesSortOrderEnum
func GetMappingListInvoicesSortOrderEnum(val string) (ListInvoicesSortOrderEnum, bool)
GetMappingListInvoicesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
ListInvoicesStatusEnum Enum with underlying type: string
type ListInvoicesStatusEnum string
Set of constants representing the allowable values for ListInvoicesStatusEnum
const ( ListInvoicesStatusOpen ListInvoicesStatusEnum = "OPEN" ListInvoicesStatusPastDue ListInvoicesStatusEnum = "PAST_DUE" ListInvoicesStatusPaymentSubmitted ListInvoicesStatusEnum = "PAYMENT_SUBMITTED" ListInvoicesStatusClosed ListInvoicesStatusEnum = "CLOSED" )
func GetListInvoicesStatusEnumValues() []ListInvoicesStatusEnum
GetListInvoicesStatusEnumValues Enumerates the set of values for ListInvoicesStatusEnum
func GetMappingListInvoicesStatusEnum(val string) (ListInvoicesStatusEnum, bool)
GetMappingListInvoicesStatusEnum performs case Insensitive comparison on enum value and return the desired enum
ListInvoicesTypeEnum Enum with underlying type: string
type ListInvoicesTypeEnum string
Set of constants representing the allowable values for ListInvoicesTypeEnum
const ( ListInvoicesTypeHardware ListInvoicesTypeEnum = "HARDWARE" ListInvoicesTypeSubscription ListInvoicesTypeEnum = "SUBSCRIPTION" ListInvoicesTypeSupport ListInvoicesTypeEnum = "SUPPORT" ListInvoicesTypeLicense ListInvoicesTypeEnum = "LICENSE" ListInvoicesTypeEducation ListInvoicesTypeEnum = "EDUCATION" ListInvoicesTypeConsulting ListInvoicesTypeEnum = "CONSULTING" ListInvoicesTypeService ListInvoicesTypeEnum = "SERVICE" ListInvoicesTypeUsage ListInvoicesTypeEnum = "USAGE" )
func GetListInvoicesTypeEnumValues() []ListInvoicesTypeEnum
GetListInvoicesTypeEnumValues Enumerates the set of values for ListInvoicesTypeEnum
func GetMappingListInvoicesTypeEnum(val string) (ListInvoicesTypeEnum, bool)
GetMappingListInvoicesTypeEnum performs case Insensitive comparison on enum value and return the desired enum
ListSubscriptionsRequest wrapper for the ListSubscriptions operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.2.0/ospgateway/ListSubscriptions.go.html to see an example of how to use ListSubscriptionsRequest.
type ListSubscriptionsRequest struct { // The home region's public name of the logged in user. OspHomeRegion *string `mandatory:"true" contributesTo:"query" name:"ospHomeRegion"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a // particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // For list pagination. The value of the opc-next-page response header from the previous "List" call. Page *string `mandatory:"false" contributesTo:"query" name:"page"` // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` // The field to sort by. Only one field can be selected for sorting. SortBy ListSubscriptionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` // The sort order to use (ascending or descending). SortOrder ListSubscriptionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request ListSubscriptionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request ListSubscriptionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request ListSubscriptionsRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request ListSubscriptionsRequest) String() string
func (request ListSubscriptionsRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
ListSubscriptionsResponse wrapper for the ListSubscriptions operation
type ListSubscriptionsResponse struct { // The underlying http response RawResponse *http.Response // A list of SubscriptionCollection instances SubscriptionCollection `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a // particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For list pagination. If this header appears in the response, then this // is a partial list of invoices. Include this value as the `page` parameter in a subsequent // GET request to get the next batch of invoices. OpcNextPage *string `presentIn:"header" name:"opc-next-page"` // The total number of items that match the query. OpcTotalItems *int `presentIn:"header" name:"opc-total-items"` }
func (response ListSubscriptionsResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response ListSubscriptionsResponse) String() string
ListSubscriptionsSortByEnum Enum with underlying type: string
type ListSubscriptionsSortByEnum string
Set of constants representing the allowable values for ListSubscriptionsSortByEnum
const ( ListSubscriptionsSortByInvoiceNo ListSubscriptionsSortByEnum = "INVOICE_NO" ListSubscriptionsSortByRefNo ListSubscriptionsSortByEnum = "REF_NO" ListSubscriptionsSortByStatus ListSubscriptionsSortByEnum = "STATUS" ListSubscriptionsSortByType ListSubscriptionsSortByEnum = "TYPE" ListSubscriptionsSortByInvoiceDate ListSubscriptionsSortByEnum = "INVOICE_DATE" ListSubscriptionsSortByDueDate ListSubscriptionsSortByEnum = "DUE_DATE" ListSubscriptionsSortByPaymRef ListSubscriptionsSortByEnum = "PAYM_REF" ListSubscriptionsSortByTotalAmount ListSubscriptionsSortByEnum = "TOTAL_AMOUNT" ListSubscriptionsSortByBalanceDue ListSubscriptionsSortByEnum = "BALANCE_DUE" )
func GetListSubscriptionsSortByEnumValues() []ListSubscriptionsSortByEnum
GetListSubscriptionsSortByEnumValues Enumerates the set of values for ListSubscriptionsSortByEnum
func GetMappingListSubscriptionsSortByEnum(val string) (ListSubscriptionsSortByEnum, bool)
GetMappingListSubscriptionsSortByEnum performs case Insensitive comparison on enum value and return the desired enum
ListSubscriptionsSortOrderEnum Enum with underlying type: string
type ListSubscriptionsSortOrderEnum string
Set of constants representing the allowable values for ListSubscriptionsSortOrderEnum
const ( ListSubscriptionsSortOrderAsc ListSubscriptionsSortOrderEnum = "ASC" ListSubscriptionsSortOrderDesc ListSubscriptionsSortOrderEnum = "DESC" )
func GetListSubscriptionsSortOrderEnumValues() []ListSubscriptionsSortOrderEnum
GetListSubscriptionsSortOrderEnumValues Enumerates the set of values for ListSubscriptionsSortOrderEnum
func GetMappingListSubscriptionsSortOrderEnum(val string) (ListSubscriptionsSortOrderEnum, bool)
GetMappingListSubscriptionsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum
MerchantDefinedData Merchant details.
type MerchantDefinedData struct { // Promotion type code. PromoType *string `mandatory:"false" json:"promoType"` // Cloud account name. CloudAccountName *string `mandatory:"false" json:"cloudAccountName"` }
func (m MerchantDefinedData) String() string
func (m MerchantDefinedData) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OtherPaymentDetail Other Payment related details
type OtherPaymentDetail struct { // Paid the invoice on this day TimePaidOn *common.SDKTime `mandatory:"false" json:"timePaidOn"` // example PaidBy *string `mandatory:"false" json:"paidBy"` // Amount that paid AmountPaid *float32 `mandatory:"false" json:"amountPaid"` // Last four routing digits of the card EcheckRouting *string `mandatory:"false" json:"echeckRouting"` // Name on the echeck card NameOnCard *string `mandatory:"false" json:"nameOnCard"` // Last four digits of the card LastDigits *string `mandatory:"false" json:"lastDigits"` // Expired date of the echeck card TimeExpiration *common.SDKTime `mandatory:"false" json:"timeExpiration"` // Echeck card type CreditCardType OtherPaymentDetailCreditCardTypeEnum `mandatory:"false" json:"creditCardType,omitempty"` }
func (m OtherPaymentDetail) GetAmountPaid() *float32
GetAmountPaid returns AmountPaid
func (m OtherPaymentDetail) GetPaidBy() *string
GetPaidBy returns PaidBy
func (m OtherPaymentDetail) GetTimePaidOn() *common.SDKTime
GetTimePaidOn returns TimePaidOn
func (m OtherPaymentDetail) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m OtherPaymentDetail) String() string
func (m OtherPaymentDetail) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
OtherPaymentDetailCreditCardTypeEnum Enum with underlying type: string
type OtherPaymentDetailCreditCardTypeEnum string
Set of constants representing the allowable values for OtherPaymentDetailCreditCardTypeEnum
const ( OtherPaymentDetailCreditCardTypeVisa OtherPaymentDetailCreditCardTypeEnum = "VISA" OtherPaymentDetailCreditCardTypeAmex OtherPaymentDetailCreditCardTypeEnum = "AMEX" OtherPaymentDetailCreditCardTypeMastercard OtherPaymentDetailCreditCardTypeEnum = "MASTERCARD" OtherPaymentDetailCreditCardTypeDiscover OtherPaymentDetailCreditCardTypeEnum = "DISCOVER" OtherPaymentDetailCreditCardTypeJcb OtherPaymentDetailCreditCardTypeEnum = "JCB" OtherPaymentDetailCreditCardTypeDiner OtherPaymentDetailCreditCardTypeEnum = "DINER" OtherPaymentDetailCreditCardTypeElo OtherPaymentDetailCreditCardTypeEnum = "ELO" )
func GetMappingOtherPaymentDetailCreditCardTypeEnum(val string) (OtherPaymentDetailCreditCardTypeEnum, bool)
GetMappingOtherPaymentDetailCreditCardTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetOtherPaymentDetailCreditCardTypeEnumValues() []OtherPaymentDetailCreditCardTypeEnum
GetOtherPaymentDetailCreditCardTypeEnumValues Enumerates the set of values for OtherPaymentDetailCreditCardTypeEnum
PayInvoiceDetails Request object for invoice payment
type PayInvoiceDetails struct { // User email Email *string `mandatory:"true" json:"email"` // Language code LanguageCode *string `mandatory:"false" json:"languageCode"` // Callback URL ReturnUrl *string `mandatory:"false" json:"returnUrl"` }
func (m PayInvoiceDetails) String() string
func (m PayInvoiceDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
PayInvoiceReceipt Invoice payment action response
type PayInvoiceReceipt struct { // Payment header id HeaderId *string `mandatory:"true" json:"headerId"` // Url of the Payment Service Url *string `mandatory:"false" json:"url"` // Token created for Payment Service Token *string `mandatory:"false" json:"token"` }
func (m PayInvoiceReceipt) String() string
func (m PayInvoiceReceipt) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
PayInvoiceRequest wrapper for the PayInvoice operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.2.0/ospgateway/PayInvoice.go.html to see an example of how to use PayInvoiceRequest.
type PayInvoiceRequest struct { // The home region's public name of the logged in user. OspHomeRegion *string `mandatory:"true" contributesTo:"query" name:"ospHomeRegion"` // The identifier of the invoice. InternalInvoiceId *string `mandatory:"true" contributesTo:"path" name:"internalInvoiceId"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Invoice payment request. PayInvoiceDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call // for a resource, set the `if-match` parameter to the value of the // etag from a previous GET or POST response for that resource. // The resource will be updated or deleted only if the etag you // provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // For requests that are not idempotent (creates being the main place of interest), THE APIs should take a header // called opc-retry-token to identify the customer desire across requests, to introduce some level of idempotency. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a // particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request PayInvoiceRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request PayInvoiceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request PayInvoiceRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request PayInvoiceRequest) String() string
func (request PayInvoiceRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
PayInvoiceResponse wrapper for the PayInvoice operation
type PayInvoiceResponse struct { // The underlying http response RawResponse *http.Response // The PayInvoiceReceipt instance PayInvoiceReceipt `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a // particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` }
func (response PayInvoiceResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response PayInvoiceResponse) String() string
PaySubscriptionDetails Request object for paying a subscription
type PaySubscriptionDetails struct { Subscription *Subscription `mandatory:"true" json:"subscription"` // Language code LanguageCode *string `mandatory:"true" json:"languageCode"` // User email Email *string `mandatory:"true" json:"email"` }
func (m PaySubscriptionDetails) String() string
func (m PaySubscriptionDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
PaySubscriptionReceipt Subscription payment action response
type PaySubscriptionReceipt struct { // Payment header id HeaderId *string `mandatory:"true" json:"headerId"` // Parameters in a token for Payment Service ApiToken *string `mandatory:"false" json:"apiToken"` // Session token created for Payment Service UserToken *string `mandatory:"false" json:"userToken"` }
func (m PaySubscriptionReceipt) String() string
func (m PaySubscriptionReceipt) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
PaySubscriptionRequest wrapper for the PaySubscription operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.2.0/ospgateway/PaySubscription.go.html to see an example of how to use PaySubscriptionRequest.
type PaySubscriptionRequest struct { // The home region's public name of the logged in user. OspHomeRegion *string `mandatory:"true" contributesTo:"query" name:"ospHomeRegion"` // Subscription id(OCID). SubscriptionId *string `mandatory:"true" contributesTo:"path" name:"subscriptionId"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // subscription payment request. PaySubscriptionDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call // for a resource, set the `if-match` parameter to the value of the // etag from a previous GET or POST response for that resource. // The resource will be updated or deleted only if the etag you // provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // For requests that are not idempotent (creates being the main place of interest), THE APIs should take a header // called opc-retry-token to identify the customer desire across requests, to introduce some level of idempotency. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a // particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request PaySubscriptionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request PaySubscriptionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request PaySubscriptionRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request PaySubscriptionRequest) String() string
func (request PaySubscriptionRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
PaySubscriptionResponse wrapper for the PaySubscription operation
type PaySubscriptionResponse struct { // The underlying http response RawResponse *http.Response // The PaySubscriptionReceipt instance PaySubscriptionReceipt `presentIn:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a // particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` }
func (response PaySubscriptionResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response PaySubscriptionResponse) String() string
PaymentDetail Payment related details
type PaymentDetail interface { // Paid the invoice on this day GetTimePaidOn() *common.SDKTime // example GetPaidBy() *string // Amount that paid GetAmountPaid() *float32 }
PaymentDetailPaymentMethodEnum Enum with underlying type: string
type PaymentDetailPaymentMethodEnum string
Set of constants representing the allowable values for PaymentDetailPaymentMethodEnum
const ( PaymentDetailPaymentMethodCreditCard PaymentDetailPaymentMethodEnum = "CREDIT_CARD" PaymentDetailPaymentMethodPaypal PaymentDetailPaymentMethodEnum = "PAYPAL" PaymentDetailPaymentMethodOther PaymentDetailPaymentMethodEnum = "OTHER" )
func GetMappingPaymentDetailPaymentMethodEnum(val string) (PaymentDetailPaymentMethodEnum, bool)
GetMappingPaymentDetailPaymentMethodEnum performs case Insensitive comparison on enum value and return the desired enum
func GetPaymentDetailPaymentMethodEnumValues() []PaymentDetailPaymentMethodEnum
GetPaymentDetailPaymentMethodEnumValues Enumerates the set of values for PaymentDetailPaymentMethodEnum
PaymentGateway Payment gateway details.
type PaymentGateway struct { MerchantDefinedData *MerchantDefinedData `mandatory:"false" json:"merchantDefinedData"` }
func (m PaymentGateway) String() string
func (m PaymentGateway) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
PaymentMethodEnum Enum with underlying type: string
type PaymentMethodEnum string
Set of constants representing the allowable values for PaymentMethodEnum
const ( PaymentMethodCreditCard PaymentMethodEnum = "CREDIT_CARD" PaymentMethodPaypal PaymentMethodEnum = "PAYPAL" )
func GetMappingPaymentMethodEnum(val string) (PaymentMethodEnum, bool)
GetMappingPaymentMethodEnum performs case Insensitive comparison on enum value and return the desired enum
func GetPaymentMethodEnumValues() []PaymentMethodEnum
GetPaymentMethodEnumValues Enumerates the set of values for PaymentMethodEnum
PaymentOption Payment option of a subscription.
type PaymentOption interface { // Wallet instrument internal id. GetWalletInstrumentId() *string // Wallet transaction id. GetWalletTransactionId() *string }
PaypalPaymentDetail PayPal Payment related details
type PaypalPaymentDetail struct { // Paid the invoice on this day TimePaidOn *common.SDKTime `mandatory:"false" json:"timePaidOn"` // example PaidBy *string `mandatory:"false" json:"paidBy"` // Amount that paid AmountPaid *float32 `mandatory:"false" json:"amountPaid"` // The id (email address) of the paypal payment PaypalId *string `mandatory:"false" json:"paypalId"` // paypal payment reference PaypalReference *string `mandatory:"false" json:"paypalReference"` }
func (m PaypalPaymentDetail) GetAmountPaid() *float32
GetAmountPaid returns AmountPaid
func (m PaypalPaymentDetail) GetPaidBy() *string
GetPaidBy returns PaidBy
func (m PaypalPaymentDetail) GetTimePaidOn() *common.SDKTime
GetTimePaidOn returns TimePaidOn
func (m PaypalPaymentDetail) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m PaypalPaymentDetail) String() string
func (m PaypalPaymentDetail) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
PaypalPaymentOption PayPal Payment related details
type PaypalPaymentOption struct { // Wallet instrument internal id. WalletInstrumentId *string `mandatory:"false" json:"walletInstrumentId"` // Wallet transaction id. WalletTransactionId *string `mandatory:"false" json:"walletTransactionId"` // The email address of the paypal user. EmailAddress *string `mandatory:"false" json:"emailAddress"` // First name of the paypal user. FirstName *string `mandatory:"false" json:"firstName"` // Last name of the paypal user. LastName *string `mandatory:"false" json:"lastName"` // Agreement id for the paypal account. ExtBillingAgreementId *string `mandatory:"false" json:"extBillingAgreementId"` }
func (m PaypalPaymentOption) GetWalletInstrumentId() *string
GetWalletInstrumentId returns WalletInstrumentId
func (m PaypalPaymentOption) GetWalletTransactionId() *string
GetWalletTransactionId returns WalletTransactionId
func (m PaypalPaymentOption) MarshalJSON() (buff []byte, e error)
MarshalJSON marshals to json representation
func (m PaypalPaymentOption) String() string
func (m PaypalPaymentOption) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
Subscription Subscription details object which extends the SubscriptionSummary
type Subscription struct { // Subscription plan number. SubscriptionPlanNumber *string `mandatory:"true" json:"subscriptionPlanNumber"` // Subscription id identifier (OCID). Id *string `mandatory:"false" json:"id"` // Subscription plan type. PlanType SubscriptionPlanTypeEnum `mandatory:"false" json:"planType,omitempty"` // Start date of the subscription. TimeStart *common.SDKTime `mandatory:"false" json:"timeStart"` // Ship to customer account site address id. ShipToCustAcctSiteId *string `mandatory:"false" json:"shipToCustAcctSiteId"` // Ship to customer account role. ShipToCustAcctRoleId *string `mandatory:"false" json:"shipToCustAcctRoleId"` // Bill to customer Account id. BillToCustAccountId *string `mandatory:"false" json:"billToCustAccountId"` // Payment intension. IsIntentToPay *bool `mandatory:"false" json:"isIntentToPay"` // Currency code CurrencyCode *string `mandatory:"false" json:"currencyCode"` // GSI Subscription external code. GsiOrgCode *string `mandatory:"false" json:"gsiOrgCode"` // Language short code (en, de, hu, etc) LanguageCode *string `mandatory:"false" json:"languageCode"` // GSI organization external identifier. OrganizationId *string `mandatory:"false" json:"organizationId"` // Status of the upgrade. UpgradeState SubscriptionUpgradeStateEnum `mandatory:"false" json:"upgradeState,omitempty"` // This field is used to describe the Upgrade State in case of error (E.g. Upgrade failure caused by interfacing Tax details- TaxError) UpgradeStateDetails SubscriptionUpgradeStateDetailsEnum `mandatory:"false" json:"upgradeStateDetails,omitempty"` TaxInfo *TaxInfo `mandatory:"false" json:"taxInfo"` // Payment option list of a subscription. PaymentOptions []PaymentOption `mandatory:"false" json:"paymentOptions"` PaymentGateway *PaymentGateway `mandatory:"false" json:"paymentGateway"` BillingAddress *BillingAddress `mandatory:"false" json:"billingAddress"` // Date of upgrade/conversion when planType changed from FREE_TIER to PAYG TimePlanUpgrade *common.SDKTime `mandatory:"false" json:"timePlanUpgrade"` }
func (m Subscription) String() string
func (m *Subscription) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (m Subscription) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
SubscriptionCollection Subscription list
type SubscriptionCollection struct { // Subscription list elements Items []SubscriptionSummary `mandatory:"true" json:"items"` }
func (m SubscriptionCollection) String() string
func (m SubscriptionCollection) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
SubscriptionPlanTypeEnum Enum with underlying type: string
type SubscriptionPlanTypeEnum string
Set of constants representing the allowable values for SubscriptionPlanTypeEnum
const ( SubscriptionPlanTypeFreeTier SubscriptionPlanTypeEnum = "FREE_TIER" SubscriptionPlanTypePayg SubscriptionPlanTypeEnum = "PAYG" )
func GetMappingSubscriptionPlanTypeEnum(val string) (SubscriptionPlanTypeEnum, bool)
GetMappingSubscriptionPlanTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetSubscriptionPlanTypeEnumValues() []SubscriptionPlanTypeEnum
GetSubscriptionPlanTypeEnumValues Enumerates the set of values for SubscriptionPlanTypeEnum
SubscriptionServiceClient a client for SubscriptionService
type SubscriptionServiceClient struct { common.BaseClient // contains filtered or unexported fields }
func NewSubscriptionServiceClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client SubscriptionServiceClient, err error)
NewSubscriptionServiceClientWithConfigurationProvider Creates a new default SubscriptionService client with the given configuration provider. the configuration provider will be used for the default signer as well as reading the region
func NewSubscriptionServiceClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client SubscriptionServiceClient, err error)
NewSubscriptionServiceClientWithOboToken Creates a new default SubscriptionService client with the given configuration provider. The obotoken will be added to default headers and signed; the configuration provider will be used for the signer
as well as reading the region
func (client SubscriptionServiceClient) AuthorizeSubscriptionPayment(ctx context.Context, request AuthorizeSubscriptionPaymentRequest) (response AuthorizeSubscriptionPaymentResponse, err error)
AuthorizeSubscriptionPayment PSD2 authorization for subscription payment
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.2.0/ospgateway/AuthorizeSubscriptionPayment.go.html to see an example of how to use AuthorizeSubscriptionPayment API.
func (client *SubscriptionServiceClient) ConfigurationProvider() *common.ConfigurationProvider
ConfigurationProvider the ConfigurationProvider used in this client, or null if none set
func (client SubscriptionServiceClient) GetSubscription(ctx context.Context, request GetSubscriptionRequest) (response GetSubscriptionResponse, err error)
GetSubscription Get the subscription plan.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.2.0/ospgateway/GetSubscription.go.html to see an example of how to use GetSubscription API.
func (client SubscriptionServiceClient) ListSubscriptions(ctx context.Context, request ListSubscriptionsRequest) (response ListSubscriptionsResponse, err error)
ListSubscriptions Get the subscription data for the compartment
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.2.0/ospgateway/ListSubscriptions.go.html to see an example of how to use ListSubscriptions API.
func (client SubscriptionServiceClient) PaySubscription(ctx context.Context, request PaySubscriptionRequest) (response PaySubscriptionResponse, err error)
PaySubscription Pay a subscription
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.2.0/ospgateway/PaySubscription.go.html to see an example of how to use PaySubscription API.
func (client *SubscriptionServiceClient) SetRegion(region string)
SetRegion overrides the region of this client.
func (client SubscriptionServiceClient) UpdateSubscription(ctx context.Context, request UpdateSubscriptionRequest) (response UpdateSubscriptionResponse, err error)
UpdateSubscription Update plan of the subscription.
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.2.0/ospgateway/UpdateSubscription.go.html to see an example of how to use UpdateSubscription API.
SubscriptionSummary Subscription object which contains the common subscription data.
type SubscriptionSummary struct { // Subscription plan number. SubscriptionPlanNumber *string `mandatory:"true" json:"subscriptionPlanNumber"` // Subscription id identifier (OCID). Id *string `mandatory:"false" json:"id"` // Subscription plan type. PlanType SubscriptionSummaryPlanTypeEnum `mandatory:"false" json:"planType,omitempty"` // Start date of the subscription. TimeStart *common.SDKTime `mandatory:"false" json:"timeStart"` // Ship to customer account site address id. ShipToCustAcctSiteId *string `mandatory:"false" json:"shipToCustAcctSiteId"` // Ship to customer account role. ShipToCustAcctRoleId *string `mandatory:"false" json:"shipToCustAcctRoleId"` // Bill to customer Account id. BillToCustAccountId *string `mandatory:"false" json:"billToCustAccountId"` // Payment intension. IsIntentToPay *bool `mandatory:"false" json:"isIntentToPay"` // Currency code CurrencyCode *string `mandatory:"false" json:"currencyCode"` // GSI Subscription external code. GsiOrgCode *string `mandatory:"false" json:"gsiOrgCode"` // Language short code (en, de, hu, etc) LanguageCode *string `mandatory:"false" json:"languageCode"` // GSI organization external identifier. OrganizationId *string `mandatory:"false" json:"organizationId"` // Status of the upgrade. UpgradeState SubscriptionSummaryUpgradeStateEnum `mandatory:"false" json:"upgradeState,omitempty"` // This field is used to describe the Upgrade State in case of error (E.g. Upgrade failure caused by interfacing Tax details- TaxError) UpgradeStateDetails SubscriptionSummaryUpgradeStateDetailsEnum `mandatory:"false" json:"upgradeStateDetails,omitempty"` TaxInfo *TaxInfo `mandatory:"false" json:"taxInfo"` // Payment option list of a subscription. PaymentOptions []PaymentOption `mandatory:"false" json:"paymentOptions"` PaymentGateway *PaymentGateway `mandatory:"false" json:"paymentGateway"` BillingAddress *BillingAddress `mandatory:"false" json:"billingAddress"` // Date of upgrade/conversion when planType changed from FREE_TIER to PAYG TimePlanUpgrade *common.SDKTime `mandatory:"false" json:"timePlanUpgrade"` }
func (m SubscriptionSummary) String() string
func (m *SubscriptionSummary) UnmarshalJSON(data []byte) (e error)
UnmarshalJSON unmarshals from json
func (m SubscriptionSummary) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
SubscriptionSummaryPlanTypeEnum Enum with underlying type: string
type SubscriptionSummaryPlanTypeEnum string
Set of constants representing the allowable values for SubscriptionSummaryPlanTypeEnum
const ( SubscriptionSummaryPlanTypeFreeTier SubscriptionSummaryPlanTypeEnum = "FREE_TIER" SubscriptionSummaryPlanTypePayg SubscriptionSummaryPlanTypeEnum = "PAYG" )
func GetMappingSubscriptionSummaryPlanTypeEnum(val string) (SubscriptionSummaryPlanTypeEnum, bool)
GetMappingSubscriptionSummaryPlanTypeEnum performs case Insensitive comparison on enum value and return the desired enum
func GetSubscriptionSummaryPlanTypeEnumValues() []SubscriptionSummaryPlanTypeEnum
GetSubscriptionSummaryPlanTypeEnumValues Enumerates the set of values for SubscriptionSummaryPlanTypeEnum
SubscriptionSummaryUpgradeStateDetailsEnum Enum with underlying type: string
type SubscriptionSummaryUpgradeStateDetailsEnum string
Set of constants representing the allowable values for SubscriptionSummaryUpgradeStateDetailsEnum
const ( SubscriptionSummaryUpgradeStateDetailsTaxError SubscriptionSummaryUpgradeStateDetailsEnum = "TAX_ERROR" SubscriptionSummaryUpgradeStateDetailsUpgradeError SubscriptionSummaryUpgradeStateDetailsEnum = "UPGRADE_ERROR" )
func GetMappingSubscriptionSummaryUpgradeStateDetailsEnum(val string) (SubscriptionSummaryUpgradeStateDetailsEnum, bool)
GetMappingSubscriptionSummaryUpgradeStateDetailsEnum performs case Insensitive comparison on enum value and return the desired enum
func GetSubscriptionSummaryUpgradeStateDetailsEnumValues() []SubscriptionSummaryUpgradeStateDetailsEnum
GetSubscriptionSummaryUpgradeStateDetailsEnumValues Enumerates the set of values for SubscriptionSummaryUpgradeStateDetailsEnum
SubscriptionSummaryUpgradeStateEnum Enum with underlying type: string
type SubscriptionSummaryUpgradeStateEnum string
Set of constants representing the allowable values for SubscriptionSummaryUpgradeStateEnum
const ( SubscriptionSummaryUpgradeStatePromo SubscriptionSummaryUpgradeStateEnum = "PROMO" SubscriptionSummaryUpgradeStateSubmitted SubscriptionSummaryUpgradeStateEnum = "SUBMITTED" SubscriptionSummaryUpgradeStateError SubscriptionSummaryUpgradeStateEnum = "ERROR" SubscriptionSummaryUpgradeStateUpgraded SubscriptionSummaryUpgradeStateEnum = "UPGRADED" )
func GetMappingSubscriptionSummaryUpgradeStateEnum(val string) (SubscriptionSummaryUpgradeStateEnum, bool)
GetMappingSubscriptionSummaryUpgradeStateEnum performs case Insensitive comparison on enum value and return the desired enum
func GetSubscriptionSummaryUpgradeStateEnumValues() []SubscriptionSummaryUpgradeStateEnum
GetSubscriptionSummaryUpgradeStateEnumValues Enumerates the set of values for SubscriptionSummaryUpgradeStateEnum
SubscriptionUpgradeStateDetailsEnum Enum with underlying type: string
type SubscriptionUpgradeStateDetailsEnum string
Set of constants representing the allowable values for SubscriptionUpgradeStateDetailsEnum
const ( SubscriptionUpgradeStateDetailsTaxError SubscriptionUpgradeStateDetailsEnum = "TAX_ERROR" SubscriptionUpgradeStateDetailsUpgradeError SubscriptionUpgradeStateDetailsEnum = "UPGRADE_ERROR" )
func GetMappingSubscriptionUpgradeStateDetailsEnum(val string) (SubscriptionUpgradeStateDetailsEnum, bool)
GetMappingSubscriptionUpgradeStateDetailsEnum performs case Insensitive comparison on enum value and return the desired enum
func GetSubscriptionUpgradeStateDetailsEnumValues() []SubscriptionUpgradeStateDetailsEnum
GetSubscriptionUpgradeStateDetailsEnumValues Enumerates the set of values for SubscriptionUpgradeStateDetailsEnum
SubscriptionUpgradeStateEnum Enum with underlying type: string
type SubscriptionUpgradeStateEnum string
Set of constants representing the allowable values for SubscriptionUpgradeStateEnum
const ( SubscriptionUpgradeStatePromo SubscriptionUpgradeStateEnum = "PROMO" SubscriptionUpgradeStateSubmitted SubscriptionUpgradeStateEnum = "SUBMITTED" SubscriptionUpgradeStateError SubscriptionUpgradeStateEnum = "ERROR" SubscriptionUpgradeStateUpgraded SubscriptionUpgradeStateEnum = "UPGRADED" )
func GetMappingSubscriptionUpgradeStateEnum(val string) (SubscriptionUpgradeStateEnum, bool)
GetMappingSubscriptionUpgradeStateEnum performs case Insensitive comparison on enum value and return the desired enum
func GetSubscriptionUpgradeStateEnumValues() []SubscriptionUpgradeStateEnum
GetSubscriptionUpgradeStateEnumValues Enumerates the set of values for SubscriptionUpgradeStateEnum
TaxInfo Tax details.
type TaxInfo struct { // Tay payer identifier. TaxPayerId *string `mandatory:"false" json:"taxPayerId"` // Tax registration number. TaxRegNumber *string `mandatory:"false" json:"taxRegNumber"` // Tax exemption reason code. NoTaxReasonCode *string `mandatory:"false" json:"noTaxReasonCode"` // Tax exemption reason description. NoTaxReasonCodeDetails *string `mandatory:"false" json:"noTaxReasonCodeDetails"` // Brazilian companies' CNPJ number. TaxCnpj *string `mandatory:"false" json:"taxCnpj"` }
func (m TaxInfo) String() string
func (m TaxInfo) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateSubscriptionDetails Request object for updating a subscription
type UpdateSubscriptionDetails struct { Subscription *Subscription `mandatory:"true" json:"subscription"` // User email Email *string `mandatory:"true" json:"email"` }
func (m UpdateSubscriptionDetails) String() string
func (m UpdateSubscriptionDetails) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateSubscriptionRequest wrapper for the UpdateSubscription operation
Click https://docs.cloud.oracle.com/en-us/iaas/tools/go-sdk-examples/65.2.0/ospgateway/UpdateSubscription.go.html to see an example of how to use UpdateSubscriptionRequest.
type UpdateSubscriptionRequest struct { // Subscription id(OCID). SubscriptionId *string `mandatory:"true" contributesTo:"path" name:"subscriptionId"` // The home region's public name of the logged in user. OspHomeRegion *string `mandatory:"true" contributesTo:"query" name:"ospHomeRegion"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` // Subscription update request. UpdateSubscriptionDetails `contributesTo:"body"` // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a // particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // For optimistic concurrency control. In the PUT or DELETE call // for a resource, set the `if-match` parameter to the value of the // etag from a previous GET or POST response for that resource. // The resource will be updated or deleted only if the etag you // provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata }
func (request UpdateSubscriptionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool)
BinaryRequestBody implements the OCIRequest interface
func (request UpdateSubscriptionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error)
HTTPRequest implements the OCIRequest interface
func (request UpdateSubscriptionRequest) RetryPolicy() *common.RetryPolicy
RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy.
func (request UpdateSubscriptionRequest) String() string
func (request UpdateSubscriptionRequest) ValidateEnumValue() (bool, error)
ValidateEnumValue returns an error when providing an unsupported enum value This function is being called during constructing API request process Not recommended for calling this function directly
UpdateSubscriptionResponse wrapper for the UpdateSubscription operation
type UpdateSubscriptionResponse struct { // The underlying http response RawResponse *http.Response // The Subscription instance Subscription `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a // particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` }
func (response UpdateSubscriptionResponse) HTTPResponse() *http.Response
HTTPResponse implements the OCIResponse interface
func (response UpdateSubscriptionResponse) String() string