github.com/plutov/paypal/v4@v4.7.1/const.go (about) 1 package paypal 2 3 type SubscriptionPlanStatus string 4 5 const ( 6 SubscriptionPlanStatusCreated SubscriptionPlanStatus = "CREATED" 7 SubscriptionPlanStatusInactive SubscriptionPlanStatus = "INACTIVE" 8 SubscriptionPlanStatusActive SubscriptionPlanStatus = "ACTIVE" 9 ) 10 11 type BillingPlanStatus string 12 13 const ( 14 BillingPlanStatusActive BillingPlanStatus = "ACTIVE" 15 ) 16 17 type IntervalUnit string 18 19 const ( 20 IntervalUnitDay IntervalUnit = "DAY" 21 IntervalUnitWeek IntervalUnit = "WEEK" 22 IntervalUnitMonth IntervalUnit = "MONTH" 23 IntervalUnitYear IntervalUnit = "YEAR" 24 ) 25 26 type TenureType string 27 28 const ( 29 TenureTypeRegular TenureType = "REGULAR" 30 TenureTypeTrial TenureType = "TRIAL" 31 ) 32 33 type SetupFeeFailureAction string 34 35 const ( 36 SetupFeeFailureActionContinue SetupFeeFailureAction = "CONTINUE" 37 SetupFeeFailureActionCancel SetupFeeFailureAction = "CANCEL" 38 ) 39 40 type ShippingPreference string 41 42 const ( 43 ShippingPreferenceGetFromFile ShippingPreference = "GET_FROM_FILE" 44 ShippingPreferenceNoShipping ShippingPreference = "NO_SHIPPING" 45 ShippingPreferenceSetProvidedAddress ShippingPreference = "SET_PROVIDED_ADDRESS" 46 ) 47 48 type UserAction string 49 50 const ( 51 UserActionContinue UserAction = "CONTINUE" 52 UserActionPayNow UserAction = "PAY_NOW" 53 UserActionSubscribeNow UserAction = "SUBSCRIBE_NOW" 54 ) 55 56 type SubscriptionStatus string 57 58 const ( 59 SubscriptionStatusApprovalPending SubscriptionStatus = "APPROVAL_PENDING" 60 SubscriptionStatusApproved SubscriptionStatus = "APPROVED" 61 SubscriptionStatusActive SubscriptionStatus = "ACTIVE" 62 SubscriptionStatusSuspended SubscriptionStatus = "SUSPENDED" 63 SubscriptionStatusCancelled SubscriptionStatus = "CANCELLED" 64 SubscriptionStatusExpired SubscriptionStatus = "EXPIRED" 65 ) 66 67 //Doc: https://developer.paypal.com/docs/api/subscriptions/v1/#definition-transaction 68 type SubscriptionTransactionStatus string 69 70 const ( 71 SubscriptionCaptureStatusCompleted SubscriptionTransactionStatus = "COMPLETED" 72 SubscriptionCaptureStatusDeclined SubscriptionTransactionStatus = "DECLINED" 73 SubscriptionCaptureStatusPartiallyRefunded SubscriptionTransactionStatus = "PARTIALLY_REFUNDED" 74 SubscriptionCaptureStatusPending SubscriptionTransactionStatus = "PENDING" 75 SubscriptionCaptureStatusRefunded SubscriptionTransactionStatus = "REFUNDED" 76 ) 77 78 type CaptureType string 79 80 const ( 81 CaptureTypeOutstandingBalance CaptureType = "OUTSTANDING_BALANCE" 82 ) 83 84 type ProductType string 85 type ProductCategory string //Doc: https://developer.paypal.com/docs/api/catalog-products/v1/#definition-product_category 86 const ( 87 ProductTypePhysical ProductType = "PHYSICAL" 88 ProductTypeDigital ProductType = "DIGITAL" 89 ProductTypeService ProductType = "SERVICE" 90 91 ProductCategorySoftware ProductCategory = "SOFTWARE" 92 ProductCategorySoftwareComputerAndDataProcessingServices ProductCategory = "COMPUTER_AND_DATA_PROCESSING_SERVICES" 93 ProductCategorySoftwareDigitalGames ProductCategory = "DIGITAL_GAMES" 94 ProductCategorySoftwareGameSoftware ProductCategory = "GAME_SOFTWARE" 95 ProductCategorySoftwareGames ProductCategory = "GAMES" 96 ProductCategorySoftwareGeneral ProductCategory = "GENERAL" 97 ProductCategorySoftwareGraphicAndCommercialDesign ProductCategory = "GRAPHIC_AND_COMMERCIAL_DESIGN" 98 ProductCategorySoftwareOemSoftware ProductCategory = "OEM_SOFTWARE" 99 ProductCategorySoftwareOnlineGaming ProductCategory = "ONLINE_GAMING" 100 ProductCategorySoftwareOnlineGamingCurrency ProductCategory = "ONLINE_GAMING_CURRENCY" 101 ProductCategorySoftwareOnlineServices ProductCategory = "ONLINE_SERVICES" 102 ProductCategorySoftwareOther ProductCategory = "OTHER" 103 ProductCategorySoftwareServices ProductCategory = "SERVICES" 104 ) 105 106 type PayeePreferred string // Doc: https://developer.paypal.com/api/orders/v2/#definition-payment_method 107 const ( 108 PayeePreferredUnrestricted PayeePreferred = "UNRESTRICTED" 109 PayeePreferredImmediatePaymentRequired PayeePreferred = "IMMEDIATE_PAYMENT_REQUIRED" 110 ) 111 112 type StandardEntryClassCode string // Doc: https://developer.paypal.com/api/orders/v2/#definition-payment_method 113 const ( 114 StandardEntryClassCodeTel StandardEntryClassCode="TEL" 115 StandardEntryClassCodeWeb StandardEntryClassCode="WEB" 116 StandardEntryClassCodeCcd StandardEntryClassCode="CCD" 117 StandardEntryClassCodePpd StandardEntryClassCode="PPD" 118 )