gift

package
v3.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateAddonParams

type CreateAddonParams struct {
	Id                string `json:"id,omitempty"`
	Quantity          *int32 `json:"quantity,omitempty"`
	QuantityInDecimal string `json:"quantity_in_decimal,omitempty"`
}

type CreateForItemsGiftReceiverParams

type CreateForItemsGiftReceiverParams struct {
	CustomerId string `json:"customer_id"`
	FirstName  string `json:"first_name"`
	LastName   string `json:"last_name"`
	Email      string `json:"email"`
}

type CreateForItemsGifterParams

type CreateForItemsGifterParams struct {
	CustomerId   string `json:"customer_id"`
	Signature    string `json:"signature"`
	Note         string `json:"note,omitempty"`
	PaymentSrcId string `json:"payment_src_id,omitempty"`
}

type CreateForItemsPaymentIntentParams

type CreateForItemsPaymentIntentParams struct {
	Id                    string                              `json:"id,omitempty"`
	GatewayAccountId      string                              `json:"gateway_account_id,omitempty"`
	GwToken               string                              `json:"gw_token,omitempty"`
	PaymentMethodType     paymentIntentEnum.PaymentMethodType `json:"payment_method_type,omitempty"`
	ReferenceId           string                              `json:"reference_id,omitempty"`
	GwPaymentMethodId     string                              `json:"gw_payment_method_id,omitempty"`
	AdditionalInformation map[string]interface{}              `json:"additional_information,omitempty"`
}

type CreateForItemsRequestParams

type CreateForItemsRequestParams struct {
	ScheduledAt       *int64                                  `json:"scheduled_at,omitempty"`
	AutoClaim         *bool                                   `json:"auto_claim,omitempty"`
	NoExpiry          *bool                                   `json:"no_expiry,omitempty"`
	ClaimExpiryDate   *int64                                  `json:"claim_expiry_date,omitempty"`
	Gifter            *CreateForItemsGifterParams             `json:"gifter,omitempty"`
	GiftReceiver      *CreateForItemsGiftReceiverParams       `json:"gift_receiver,omitempty"`
	CouponIds         []string                                `json:"coupon_ids,omitempty"`
	PaymentIntent     *CreateForItemsPaymentIntentParams      `json:"payment_intent,omitempty"`
	ShippingAddress   *CreateForItemsShippingAddressParams    `json:"shipping_address,omitempty"`
	SubscriptionItems []*CreateForItemsSubscriptionItemParams `json:"subscription_items,omitempty"`
}

type CreateForItemsShippingAddressParams

type CreateForItemsShippingAddressParams struct {
	FirstName        string                `json:"first_name,omitempty"`
	LastName         string                `json:"last_name,omitempty"`
	Email            string                `json:"email,omitempty"`
	Company          string                `json:"company,omitempty"`
	Phone            string                `json:"phone,omitempty"`
	Line1            string                `json:"line1,omitempty"`
	Line2            string                `json:"line2,omitempty"`
	Line3            string                `json:"line3,omitempty"`
	City             string                `json:"city,omitempty"`
	StateCode        string                `json:"state_code,omitempty"`
	State            string                `json:"state,omitempty"`
	Zip              string                `json:"zip,omitempty"`
	Country          string                `json:"country,omitempty"`
	ValidationStatus enum.ValidationStatus `json:"validation_status,omitempty"`
}

type CreateForItemsSubscriptionItemParams

type CreateForItemsSubscriptionItemParams struct {
	ItemPriceId       string `json:"item_price_id,omitempty"`
	Quantity          *int32 `json:"quantity,omitempty"`
	QuantityInDecimal string `json:"quantity_in_decimal,omitempty"`
}

type CreateGiftReceiverParams

type CreateGiftReceiverParams struct {
	CustomerId string `json:"customer_id"`
	FirstName  string `json:"first_name"`
	LastName   string `json:"last_name"`
	Email      string `json:"email"`
}

type CreateGifterParams

type CreateGifterParams struct {
	CustomerId   string `json:"customer_id"`
	Signature    string `json:"signature"`
	Note         string `json:"note,omitempty"`
	PaymentSrcId string `json:"payment_src_id,omitempty"`
}

type CreatePaymentIntentParams

type CreatePaymentIntentParams struct {
	Id                    string                              `json:"id,omitempty"`
	GatewayAccountId      string                              `json:"gateway_account_id,omitempty"`
	GwToken               string                              `json:"gw_token,omitempty"`
	PaymentMethodType     paymentIntentEnum.PaymentMethodType `json:"payment_method_type,omitempty"`
	ReferenceId           string                              `json:"reference_id,omitempty"`
	GwPaymentMethodId     string                              `json:"gw_payment_method_id,omitempty"`
	AdditionalInformation map[string]interface{}              `json:"additional_information,omitempty"`
}

type CreateRequestParams

type CreateRequestParams struct {
	ScheduledAt     *int64                       `json:"scheduled_at,omitempty"`
	AutoClaim       *bool                        `json:"auto_claim,omitempty"`
	NoExpiry        *bool                        `json:"no_expiry,omitempty"`
	ClaimExpiryDate *int64                       `json:"claim_expiry_date,omitempty"`
	Gifter          *CreateGifterParams          `json:"gifter,omitempty"`
	GiftReceiver    *CreateGiftReceiverParams    `json:"gift_receiver,omitempty"`
	CouponIds       []string                     `json:"coupon_ids,omitempty"`
	PaymentIntent   *CreatePaymentIntentParams   `json:"payment_intent,omitempty"`
	ShippingAddress *CreateShippingAddressParams `json:"shipping_address,omitempty"`
	Subscription    *CreateSubscriptionParams    `json:"subscription,omitempty"`
	Addons          []*CreateAddonParams         `json:"addons,omitempty"`
}

type CreateShippingAddressParams

type CreateShippingAddressParams struct {
	FirstName        string                `json:"first_name,omitempty"`
	LastName         string                `json:"last_name,omitempty"`
	Email            string                `json:"email,omitempty"`
	Company          string                `json:"company,omitempty"`
	Phone            string                `json:"phone,omitempty"`
	Line1            string                `json:"line1,omitempty"`
	Line2            string                `json:"line2,omitempty"`
	Line3            string                `json:"line3,omitempty"`
	City             string                `json:"city,omitempty"`
	StateCode        string                `json:"state_code,omitempty"`
	State            string                `json:"state,omitempty"`
	Zip              string                `json:"zip,omitempty"`
	Country          string                `json:"country,omitempty"`
	ValidationStatus enum.ValidationStatus `json:"validation_status,omitempty"`
}

type CreateSubscriptionParams

type CreateSubscriptionParams struct {
	PlanId                string `json:"plan_id"`
	PlanQuantity          *int32 `json:"plan_quantity,omitempty"`
	PlanQuantityInDecimal string `json:"plan_quantity_in_decimal,omitempty"`
}

type Gift

type Gift struct {
	Id              string          `json:"id"`
	Status          giftEnum.Status `json:"status"`
	ScheduledAt     int64           `json:"scheduled_at"`
	AutoClaim       bool            `json:"auto_claim"`
	NoExpiry        bool            `json:"no_expiry"`
	ClaimExpiryDate int64           `json:"claim_expiry_date"`
	ResourceVersion int64           `json:"resource_version"`
	UpdatedAt       int64           `json:"updated_at"`
	Gifter          *Gifter         `json:"gifter"`
	GiftReceiver    *GiftReceiver   `json:"gift_receiver"`
	GiftTimelines   []*GiftTimeline `json:"gift_timelines"`
	Object          string          `json:"object"`
}

type GiftReceiver

type GiftReceiver struct {
	CustomerId     string `json:"customer_id"`
	SubscriptionId string `json:"subscription_id"`
	FirstName      string `json:"first_name"`
	LastName       string `json:"last_name"`
	Email          string `json:"email"`
	Object         string `json:"object"`
}

type GiftTimeline

type GiftTimeline struct {
	Status     giftEnum.Status `json:"status"`
	OccurredAt int64           `json:"occurred_at"`
	Object     string          `json:"object"`
}

type Gifter

type Gifter struct {
	CustomerId string `json:"customer_id"`
	InvoiceId  string `json:"invoice_id"`
	Signature  string `json:"signature"`
	Note       string `json:"note"`
	Object     string `json:"object"`
}

type ListGiftReceiverParams

type ListGiftReceiverParams struct {
	Email      *filter.StringFilter `json:"email,omitempty"`
	CustomerId *filter.StringFilter `json:"customer_id,omitempty"`
}

type ListGifterParams

type ListGifterParams struct {
	CustomerId *filter.StringFilter `json:"customer_id,omitempty"`
}

type ListRequestParams

type ListRequestParams struct {
	Limit        *int32                  `json:"limit,omitempty"`
	Offset       string                  `json:"offset,omitempty"`
	Status       *filter.EnumFilter      `json:"status,omitempty"`
	GiftReceiver *ListGiftReceiverParams `json:"gift_receiver,omitempty"`
	Gifter       *ListGifterParams       `json:"gifter,omitempty"`
}

type UpdateGiftRequestParams

type UpdateGiftRequestParams struct {
	ScheduledAt *int64 `json:"scheduled_at"`
	Comment     string `json:"comment,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL