Documentation
¶
Index ¶
- type CreateAddonParams
- type CreateForItemsGiftReceiverParams
- type CreateForItemsGifterParams
- type CreateForItemsPaymentIntentParams
- type CreateForItemsRequestParams
- type CreateForItemsShippingAddressParams
- type CreateForItemsSubscriptionItemParams
- type CreateGiftReceiverParams
- type CreateGifterParams
- type CreatePaymentIntentParams
- type CreateRequestParams
- type CreateShippingAddressParams
- type CreateSubscriptionParams
- type Gift
- type GiftReceiver
- type GiftTimeline
- type Gifter
- type ListGiftReceiverParams
- type ListGifterParams
- type ListRequestParams
- type UpdateGiftRequestParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateAddonParams ¶
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 CreateGifterParams ¶
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 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 GiftTimeline ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.